4

I am trying to get Walking route distance between two locations using Rails Geocoder, but it taking the latitude and longitude values and giving the distance between them which doesn't suit in my application. I need to get the distance between two locations when I walk or travel in a car between the 2 points.

source: 733 River St, Boston, MA, 02136 ----> [42.264, -71.1028]

Destination: 830 Boylston Street, Chestnut Hill, MA, 02467 ---> ["42.3260327", "-71.14839090000001"]

Current Result: 4.878450592226187 miles(distance)

As per google maps the distance is 8.4 miles which I am expecting.

Sergio Tulentsev
  • 226,338
  • 43
  • 373
  • 367
verma
  • 57
  • 4

0 Answers0