2

I have some latitude, longitude and radius in meters and i need to get all roads names in that radius... The nearest road i can get like this http://maps.googleapis.com/maps/api/directions/json?origin=55.685025%2c21.118995&destination=55.685025%2c21.118995&sensor=false&mode=driving. It would be in routes[0].legs[0].start_location. But is it possible to get all roads in 200 meters?

I also found this Google Maps: Given a point, how to find all points at a given road distance? in which on screen is show situation almost like mine, but the link is broken.

enter image description here

Community
  • 1
  • 1
Kin
  • 4,466
  • 13
  • 54
  • 106

1 Answers1

0

You can use the direction api when a road intersects the circumference. Then you can subdivide the circle into smaller egments and feed it to the direction api. Here is an example:How do I calculate a point on a circle’s circumference?.

Community
  • 1
  • 1
Micromega
  • 12,486
  • 7
  • 35
  • 72