working with google

kustg

Member
Licensed User
I played around a few weeks before with google apis, so i would like to share my small knowledge.
For testing you can copy the url's in your webbrowser.

First of all search in google for „google api“. Very usefull is static maps. With this function you can download a map specialisied by gps-coord or by address.


We can go further with „Directions“. This api provides a simple routing-planner. The request contains two adresses/gps-coord and google responses with an xml/jason -file.
If you like, someone can combine it with the flite-library, so the commands are spoken.

Eg:
http://maps.google.com/maps/api/dir...trasse 7, hildesheim&language=de&sensor=false

Sometime you need to know an adress, specialized by gps. So ask the geocoding- api (not offical documented). This api can change an adress into coordinats and vice versa.

Eg http://maps.google.com/maps/api/geocode/xml?latlng=52.13732,9.96680&sensor=false
and vice versa:
http://maps.google.com/maps/api/geocode/xml?address=Lueneburger strasse 7, hildesheim&sensor=false

google sends a xml/jason file.



And last but not least google weather( not offical documented): google answers on your request a xml/json file. The request can be made by adress or coordinates, but be carefull, they are multitplicated with 1000000.
www.google.com/ig/api?weather=longitude*1000000,latitude*1000000&hl=de
eg:
http://www.google.com/ig/api?weather=,,,52150133,9948435&hl=de

hl means homelanguage, default is english. You can also use an adress instead of coord.
http://www.google.com/ig/api?weather=31141-Germany&hl=de

the weather icons can be downloaded. The url is in the file. <icondata=...>
eg:
http://www.google.com/ig/images/weather/mostly_sunny.gif
 
Last edited:
Top