Question

How can I user Google Map's API to get the directions and location for a variable.

Basically:

Say the variable is "harvard university", how can I get the location of it on a map, and directions/street view for that location and display it, like if you do a google search for "harvard university" on the right it comes up with the location, directions etc, how can I embed that into my website?

Thanks, I have tried to be as clear as possible. This is an example showing what I need to get and embed

Was it helpful?

Solution

Geocoding won't work for most business names. Try the Places Library: http://code.google.com/apis/maps/documentation/javascript/places.html

OTHER TIPS

Look into geocoding (The process of converting an address into geographical coordinates) Google geocoding API

Edit: Spelling

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top