Google Places APIs for my iPhone application - iphone

I am developing an iPhone application in which I am using Google Places APIs. I am finding user's current location using GPS. And I want to display places around user's current location. I am able to find places around users but in JSON data which is returned by Google APIs do not include images of places.
How can I get images of places using Google places APIs?
Thanks in advance.

check this cool project built for exactly the same reason - iOS5-Google-Places. More here as a blog post. It also has has search built in.
Application will determine location. Issue Google Places API request
containing the LAT and LNG and TYPES (types are configurable) and will
return JSON results into an object to display in UITableView.
This should solve your requirements.
Just in case this is not baking your cake, then you need to roll up your own iOS Google Places wrapper using a UIWebView and Google Places APIs.

Related

Panoramio pictures on iOS without Google Maps

I'm developing a little iOS App which shows POIs on a standard MKMapKit map (from Apple). When the user select a POI, the app send a request to Panoramio to get a photo from the latitude and the longitude, like that :
http://www.panoramio.com/map/get_panoramas.php?order=popularity&set=public&from=0&to=2&minx=XXXXXXXX&miny=XXXXXXXX... etc...
The problem is that I saw today on the Panoramio ToS :
http://www.panoramio.com/api/terms.html
Section 2: API Client restrictions
You may not use the API in API Clients using map technology other than Google Maps or any photo-sharing sites.
I'm not using Google Maps API for iOS so the question is : can I use the standard MKMapKit from Apple AND show photos from Panoramio in the same app ?
If not, is there an alternative solution to get photos from GPS coordinates ?
Thanks
First off, I AM NOT A LAWYER AND THIS IS NOT LEGAL ADVICE.
Disclaimer aside, use apple's CoreLocation classes to generate latitude/longitude information, and you never touch mapping software.
Geolocation and mapping are two complimentary functions that don't necessarily interact.
From what I read there, I don't see a problem with retrieving your location via the CoreLocation framework, and subsequently using that info to request map information from Panoramio.
Good luck!

google api for searching different places round me in iphone

Hai friends I am new to Iphone programing ,in my project i want search different places like hospitals ,heathers ,fire stations ,and I just give the place and radius as inputs to URL ,so this which is the best API.or give me the url.
You could give Google Places a go.
If you are not able (or willing) to comply with Google's terms you may consider using GeoNames instead.

How to implement google maps in my iPhone application

I am totally confused with google maps and maps of iPhone...
i have read that iPhone uses google maps.....and also spent some time on it....
But it never display the items like location pictures, balloons etc.
EDIT
THIS is photo for of browser
and following is same place for iPhone maps
second one did not show the annotation added by people.....
(this is what i was asking for ballons or other pictures which people adds to location on oogle maps)
I want to display all those in my application....
what should i do...
if you suggests implement Google maps API, then please suggest a working link...or provide some sample code if possible.....if anybody has done it...then please mail me at yogeshkumau#gmail.com
waiting for answer......
Points of Interests(location, pictures and baloons) that you are talking about can be shown in your maps, if you acquire the license for Google maps premier api. In that case you'd have to use dynamic maps by using google's web services. However if you want to implement it using MapKit framework on iOS devices, you'd have to draw your custom POIs using core graphics.
Apple has a special agreement with Google to use their maps on their platform. The internet is packed with examples of usage of MKMapView along with annotations (pins, there're no baloons on iPhone).

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.
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.
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
follow these steps to build the library... Rest of it is very easy... then read this
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.

Integrating google map in iphone app

I am going to develop an app based on google map. In that locations will be displayed with markers or points near current location (point of interest). I have lattitude, longitude of different places and I am also able to find the distance from current location. I just want some help working on google map. Displaying places by latitude, longitude using markers.
I have the MAP View app of google map api. Please suggest me some tutorials or URL/source code which uses marked places and all that.
you should check these tutorials 1, 2, 3
If you're talking about the Google Maps Ajax APIs (for display in a web app), then the Google documentation has copious code examples and explanatory documentation.
If you mean the Google-based maps that are available to native iPhone applications, then please refer to the documentation for MapKit.
This may be helpful iphone-google-maps-component