Plot Multiple marker in map using List

Hi Akash,

  • I am not getting actual distance between two lat-long. Probably because you are not coding correctly. How do we know what you coded? The method you use may be calculating the straight-line distance between two locations, not how you would drive there and it might be calculating in meters or miles. We don’t know what you are doing.

  • You used Haversine and ‘same problem’. What Haversine algorithm and how did you implement it?

  • to calculate driving distance following a route if you don’t want a straight-line distance between points; try

    1. HOW TO: Use the Navigate control
    2. Use the Google Directions api. Use it with a Google Map API key .

– Steve

1 Like