Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Google Maps Data API with iPhone and performing search

Has anyone integrated Google's Maps Data API available here, with iPhone application. If so can you please share the skeleton code to get an head start in my application?

I want to search some nearby places (for user information e.g. park, theatre, etc.) with respect to current location using Google Maps Data API.

like image 313
Ameya Avatar asked Aug 02 '10 07:08

Ameya


2 Answers

I just published some simple iOS classes that use Google's Local Search API to get location information about places in a map region via a name or address search. There are detailed instructions here, and the GitHub repository is here.

Hopefully, this information will make it very easy for new developers to use the Google Local API in an iPhone app to get the latitude & longitude of businesses & other places.

like image 135
Victor Van Hee Avatar answered Oct 13 '22 23:10

Victor Van Hee


I suspect this code is what you're after.

NSString *url =[[NSString alloc] initWithFormat:@"http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q='%@'&sll=%f,%f&rsz=large&start=0",query, location.latitude, location.longitude];

You may also want to review https://github.com/twoism/gkit

like image 23
johndpope Avatar answered Oct 13 '22 23:10

johndpope