Draw route on the map

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
VPlachy
Posts: 21
Joined: Fri Nov 27, 2015 10:44 am
Location: Czech Republic
Contact:

Draw route on the map

Post by VPlachy »

Hello
When planning a route for transit point, which lies off the road does not draw on a map the route. In Map & Guide Internet is route draw Ok. Why is it like this? Any wrong setting?

Wrong
Image


Good on Map & Guide Internet
Image


Thank you
Vladimír
Vladimír Plachý, DiS.
Developer windows applications
D&Comm s.r.o. - Czech Republic
User avatar
Bernd Welter
Site Admin
Posts: 2592
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Draw route on the map

Post by Bernd Welter »

Hello Vlad,

how about this approach:
  • Use the RoutingOption.GENERATE_EXTWAYPOINTS=TRUE
  • This will extend the response and tell you the LOCATION coordinate and the so-called MATCH coordinate for each waypoint.
  • With this additional information you can paint the missing connection between input coordinates and the routing polygon.
The image shows the distance between LOCATION COORDINATE and MATCH COORDINATE. If necessary you can paint this airline connection.
The image shows the distance between LOCATION COORDINATE and MATCH COORDINATE. If necessary you can paint this airline connection.
Best regards Bernd
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:
User avatar
Bernd Welter
Site Admin
Posts: 2592
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Draw route on the map

Post by Bernd Welter »

And here is a little example, the yellow cross is the input coordinate.
The red line is your goal.
Little proof: the blue line is the polygon returned by the server.<br />The red line is the overlay of POLYGON and LINKING DISTANCE. Looks fine in my eyes.
Little proof: the blue line is the polygon returned by the server.
The red line is the overlay of POLYGON and LINKING DISTANCE. Looks fine in my eyes.
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