Integrating Google Maps Data API with iPhone and performing search

后端 未结 4 2150
囚心锁ツ
囚心锁ツ 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:56

    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

提交回复
热议问题