0

I pull Lat/Long from a SQL database and map that data as markers and it's been working fine. Now I need to calculate the length (sum of the distance between each marker) of all those markers. Anyone know of a way to complete this in Google maps?

Edit: failed to say that I'm using MS-SQL and ASP.NET and I'm pulling dozen to a couple hundred markers and plotting them; not just two (start to finish).

Thanks Jim

JimP
  • 37
  • 2
  • 6
  • possible duplicate of [Calculate distance between two points in google maps V3](http://stackoverflow.com/questions/1502590/calculate-distance-between-two-points-in-google-maps-v3) – putvande Aug 14 '13 at 20:37
  • See answer to this [question](http://stackoverflow.com/questions/13787468/need-to-show-places-on-map-from-database-based-on-longitude-and-latitude/13788462#13788462) Using PDO instead of deprecated mysql_ functions – david strachan Aug 14 '13 at 20:55
  • Sorry I failed to say that I'm using MS-SQL and ASP.NET. – JimP Aug 14 '13 at 20:59
  • To get the total path, sum the distance between all the points... – geocodezip Aug 14 '13 at 21:10

0 Answers0