Page 1 of 1
Draw route on the map
Posted: Thu Jun 02, 2016 8:39 am
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
Good on Map & Guide Internet
Thank you
VladimĂr
Re: Draw route on the map
Posted: Tue Jun 07, 2016 8:47 am
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.
![2016-06-07 10_42_06-117,0814.png (56.38 KiB) Viewed 5340 times The image shows the distance between LOCATION COORDINATE and MATCH COORDINATE. If necessary you can paint this airline connection.](./download/file.php?id=270&t=1&sid=65d93d02008925a7888c51d6191dc8be)
- The image shows the distance between LOCATION COORDINATE and MATCH COORDINATE. If necessary you can paint this airline connection.
Best regards Bernd
Re: Draw route on the map
Posted: Tue Jun 07, 2016 9:19 am
by Bernd Welter
And here is a little example, the yellow cross is the input coordinate.
The red line is your goal.
![anbindung.gif (25.99 KiB) Viewed 5338 times 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.](./download/file.php?id=271&t=1&sid=65d93d02008925a7888c51d6191dc8be)
- 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.