Plot direction on map from collection of latitude and longitude

Balasaheb Molawade 136 Reputation points
2021-04-06T14:01:15.623+00:00

Hi

We have collection of Latitude and longitude, say suppose users location history. We have almost 200-300 records and we want to plot route from those records. That has latitude and longitude but not proper direction so we want to generate direction from those points. Is there any way to do that. We are using Bingmap V8 API.

Waiting for your reply.

Thanks!

Balasaheb

Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
253 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. IoTGirl 2,976 Reputation points Microsoft Employee
    2021-04-06T22:55:21.3+00:00

    Are you expecting all those points on one route? Were they collected from a drive? Maybe the Snap to road API is what you need?

    Note: If you know the order of the points, you can pass a GeoXML file with the points to create a line as shown in https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk/geoxmlreadfromurl