I just discovered two new features offered by version 2 of the Google Maps API, geotagging from a postal address and boxes of information among multiple tabs.
Geolocation from a mailing address
I had already proposed a solution to find the location a place from its mailing address in one of the first posts of this blog. The two potential problems with the method described was:
- the obligation to separate each component of the address (street, city and country)
- using a free service provided continuity
One of the easiest ways to get the coordinates of an address is to send an HTTP request with the following format:
http://maps.google.com/maps/geo?q=adresse+recherchee&output = csv & key = abcdefgWhere:
- q = : enter the desired address in URL format. Example: square + concord + paris + France
- output = : response format. It may be mentioned xml, kml, json or csv if required. Csv format is the easiest to treat because it returns only four numbers separated by commas in income.
- key =: key Google Maps your
Several tabs in the box details
I presented how quickly add information bubble on the map using GoogleMaps marker.openInfoWindowHtml (bubble); .
To add a dialog box with several tab just use marker.openInfoWindowTabsHtml (Infotab) having previously defined Infotab like this:
Infotab var = [
new GInfoWindowTab ("Title Tab 1", "Content tab 1"), new
GInfoWindowTab ("Title Tab 2", "Content Tab 2")
]
0 comments:
Post a Comment