Integrating Google Maps Data API with iPhone and performing search

后端 未结 4 2082
囚心锁ツ
囚心锁ツ 2021-02-08 19:23

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?

相关标签:
4条回答
  • 2021-02-08 19:44

    The Maps Data API doesn't do what you seem to want to do - search for nearby points of interest, rather its a way to save and query your geo data.

    You'll probably want to take a look at the Local Search features of the Google AJAX Search API. This section talks about how to use it as a web service, which you can access from your iPhone app.

    0 讨论(0)
  • 2021-02-08 19:52

    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.

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-08 19:59

    follow these steps to build the library... Rest of it is very easy... then read this

    0 讨论(0)
提交回复
热议问题