Page 1 of 1

Google Maps API - Route location apparently incorrect?

Posted: Sun Jun 24, 2018 7:55 pm
by Tom5305
Can anyone with a copy of CR's original ECML modern and Google Maps API tell me if they find the route is way off its co-ordinates please?
Was hoping to add the line from Doncaster to Goole and maybe beyond but the map is not corresponding with the route. I have inserted the
lat & long for Doncaster station into the compass on the TS world editor and Google maps shows the aerial view of Doncaster but sat over
the Newark station location! If I go to Doncaster station location in world editor Google maps shows roads and fields which I cannot identify
as even being part of South Yorkshire!
Any suggestions would be much appreciated.
Thanks
Tom
Doncaster

Re: Google Maps API - Route location apparently incorrect?

Posted: Sun Jun 24, 2018 8:40 pm
by SkylineBoy
Just checked and it's pretty much bang on in terms of the correct location. Is this a clone of the route ?

Re: Google Maps API - Route location apparently incorrect?

Posted: Sun Jun 24, 2018 9:08 pm
by Tom5305
SkylineBoy wrote:Just checked and it's pretty much bang on in terms of the correct location. Is this a clone of the route ?
Yes I cloned it but wondered if that was the problem? Have checked original route and yes that shows it as you say!
Does this mean that a clone copy is not workable would you know?
Thansk
Tom

Re: Google Maps API - Route location apparently incorrect?

Posted: Sun Jun 24, 2018 9:29 pm
by brysonman46
Tom5305 wrote:
SkylineBoy wrote:Just checked and it's pretty much bang on in terms of the correct location. Is this a clone of the route ?
Yes I cloned it but wondered if that was the problem? Have checked original route and yes that shows it as you say!
Does this mean that a clone copy is not workable would you know?
Thansk
Tom
Cloning from in Game quite often changes the route origin in RouteProperties.xml. To correct this you have 2 options:
1. Use the original version, then edit the Route GUID in the lines
<DevString d:type="cDeltaString">5594cc47-57f5-4237-a0a1-7a003e6a693c</DevString>
putting the new set of numbers in place of the original

2. Copy the route origin from the original to the clone, using the lines
<Origin>
<sGeoPosition>
<Lat d:type="sFloat64" d:alt_encoding="32772D211FB44A40" d:precision="string">53.4072</Lat>
<Long d:type="sFloat64" d:alt_encoding="6F47382D78D107C0" d:precision="string">-2.97728</Long>
</sGeoPosition>
</Origin>
<MapOffset>
<sMapCoords>
<Easting d:type="sFloat64" d:alt_encoding="EC51B81E859A9740" d:precision="string">1510.63</Easting>
<Northing d:type="sFloat64" d:alt_encoding="00000080E0925641" d:precision="string">5.91757e+006</Northing>
</sMapCoords>
</MapOffset>

Note that the numbers shown are from another route! Method 1 is easier and quicker

The secret is, however, to clone using RWTools

Nick

Re: Google Maps API - Route location apparently incorrect?

Posted: Sun Jun 24, 2018 9:38 pm
by Tom5305
Thanks Nick - don't know why I didn't think of RW Tools! Will have a dabble tomorrow and see how it goes.
Tom