Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps API - Getting Street Coordinates

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 need, for example, all coordinates that compose a street.

Are there something like this?

like image 905
richardaum Avatar asked Aug 06 '12 20:08

richardaum


People also ask

How do I find GPS coordinates from a street address?

Open the Google Maps website and enter the address details in the search box. The map should center on the address you entered. Right-click on the location. Using your mouse right-click on the address pin marker.

Is Street View available in Google Maps free API?

The Maps JavaScript API provides a Street View service for obtaining and manipulating the imagery used in Google Maps Street View. This Street View service is supported natively within the browser.


1 Answers

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/

like image 137
Dr.Molle Avatar answered Sep 23 '22 01:09

Dr.Molle