Google Maps API - Getting Street Coordinates

后端 未结 3 2007
Happy的楠姐
Happy的楠姐 2020-11-30 07:48

Google Maps API has any way to get the street coordinates of an location?

Is simple: I just want to get the nearest street coordinate. To got this i nee

3条回答
  •  我在风中等你
    2020-11-30 08:29

    You may use the directionService.

    Pass the given address(or location) as origin and destination to directionsService.route() and use the travelMode DRIVING . The response should contain the nearest street.

    Demo: http://jsfiddle.net/doktormolle/W3VGN/

提交回复
热议问题