I want to highlight a specific street by name. I can do this with the start and end coordinates of a street. I don't want to pass in coordinates but the street name. Google Maps will return the street coordinates but I need both start and end coordinates.
request = {
origin: "streetname",
destination: "streetname",
travelMode: google.maps.TravelMode.DRIVING
};
In this example it will return the same coordinates for origin and destination.
Any suggestions? Thanks.
The Google Maps API v3 doesn't do that. You need to find a different data source or manually determine the coordinates.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.