I'm using google maps sdk for ios to diplay present location in my iPhone application.how to get nearest places around my present location(just like whats app show location nearest places).
Google maps SDK does not provide you with the places Data. Instead you will have to use the google places API. Check this out : https://developers.google.com/places/documentation/
Related
I'm making an iPhone location based app and I'm having trouble with the last aspect of it. I was wondering if anyone knows how to integrate a search bar that correlates with the map that we can use from MKMapView.
It's literally a search bar above the map that the user can type in an area and it will take them there.
Is this possible?
I've looked around for tutorials but I have only found how to make an app with a map view, annotations and adding callouts.
What you're looking for is geocoding - the process of turning an address in your search bar into a latitude/longitude coordinate, which you can then set the map's position to.
This question has two main answers. This answer shows how to geocode using a Google API, and this answer shows how to geocode using an Apple API.
If you're using MapKit (which uses Apple maps as of iOS 6.0), then you should probably use the Apple API (you are not supposed to use Google Maps APIs with non-Google maps).
If you're using the new Google Maps SDK for iOS, you might want to use the Google API for geocoding. Although note that the answer I've linked to is using the Google API with MapKit (as it was written back when MapKit was using Google Maps), so you would need to modify it a bit.
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.
I want to use to UIWebView to display google maps mobile website for my app. However; I need the current user location to be passed into the webview so that it may show a route. What steps must I take in order to not only pass the current location to the google maps url but also pass what I want it to route(for example, Costco)?
Second, my app is going to be a paid app and I was wondering if it is even possible to use google maps due to this? The app does not only have gps but other sections as well that I created myself.
Thank you so much
I think you dont want to show google-maps in an UIWebView. You should use either the MapKit-Framework or any other maps-framework like for instance route-me.
In both framework it is possible to draw polylines (links: MapKit, route-me) (which represents a route) and any other stuff like pins and a bubble with a circle around it which indicates the current location (links: MapKit, route-me (should be somewhere in the sample-programs)).
In an iPhone application I'm developing I need to get GPS coordinates to perform some actions based on the values received. Users should have two possibilities of giving the location:
automatically from iPhone build-in GPS
by finding a specific point on a map (Google Maps)
I know how to user CLLocationManager to get current position coordinates and I know how to add Google Maps using JS API. What I would like to know if how can I get coordinates for a specific point on a map that user clicks. Is that possible with UIWebView or is there any other way of getting the values I need?
I'd suggest using MapKit framework (introduced in SDK 3.0) that uses google maps services. MKMapView and other classes will provide all functionality you want without the need to mess with java-script:
Displaying google maps
Showing and tracking user location
Easy converting between view coordinates and geo coordinates (see convertPoint:toCoordinateFromView: and convertCoordinate:toPointToView: functions)
Creating and showing custom map markers
Reverse geocoding
etc. :)
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