views:

91

answers:

2

when you go to maps.google.com and search for "cupcakes" for example, you get the results displayed on a map, and on the left there is a list of results.

I want the user of my application (iPhone and Web) to be able to enter a search term, then it searches on google and provides a list (much like the list on the left in maps.google.com), the user can then select a location from the list.

The list would need to be in XML format or something similar that can be parsed on the iPhone. It needs to include the Name of the location, a description (if provided) and its address/coordinates.

Is this possible, and if so, how can it be done?

A: 

Google provides a number of map services where you can search for locations, etc. Especially their Geocoding API may be of interest. If you use their services you are however required to show these results on Google Maps.

An alternative to Google is to use one of the free GeoNames services. They have a more relaxed set of conditions.

Claus Broch
If I offered the option to choose between a map and a list (especially for the iPhone), would this be acceptable? There would be a button that switches between the two.
Zac Altman
Alternatively: Is there a size limit? I could use the API to fetch a list of places, then have a small icon...It just really not intuitive using a map --- Is there another service that includes POI?
Zac Altman
I'll suggest you ready Googles and GeoNames terms and conditions carefully and make your own conclusions. I can not guide you in legal matters, only give you a couple things to be aware of.
Claus Broch
A: 

You'll probably want to use the Google AJAX Search APIs, which has a different set of terms from the Geocoder. The Geocoder is for taking an address and returning a lat/long, not for things like local search. Specifically, you'll want to use local search feature. Check out the section on "Flash and other Non-Javascript Environments" for info on how to access this though a RESTful interface (for the iPhone).

Ossama