Page 1 of 1

xRoute2: how to gather magnetic via points (geodecimal) from a BCR (mercator)

Posted: Tue Aug 29, 2023 7:58 am
by Bernd Welter
Cheers,

these days a partner asked me how he can gather meaningful (x,y) geodecimal coordinates from a PTV xServer2 request which is based on geodecimal coordinates. He requires them to feed some external navigation system for some guided navigation. As you may know we return a so-called BCR text aka RouteResponse.guidedNavigationRoute
[CLIENT]
ROUTENAME=xServer 2 - guided navigation route export
MAP_VERSION=unknown

[COORDINATES]
STATION1=937170,6270123
STATION2=935947,6270123

[VISITED]
STATION1=0
STATION2=0

[Station2Segmentcenters]
Point1=937193,6270115,151
Point2=937133,6270058,238
Point3=936612,6269767,241
Point4=936508,6269690,237
Point5=936035,6269565,6
This text contains the desired coordinates but these are based on PTV Mercator - no matter what the underlying route request's coordinate format is.
So here's what you need to know to transform them into geodecimal: