Taraal/LocationBot

New feature : calculate the distance between two points

Opened this issue · 1 comments

When a user set >= 2 points, send him the distance between the start point and the last point.

There are several ways to do this :

  • simply calculate the distance as the crow flies between the two locs, which is quite easy
  • take only the first and last points and calculate the true (on-the-road) distance between these two
  • include all the in-between locs in the true distance calculations, which is already done by Maps.

I vote for the second one, which can be done by generating another URL using only the two locs and scraping the distance calculated by Google.