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

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2574
Joined: Mon Apr 14, 2014 10:28 am
Contact:

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

Post 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:
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply