Does iPhone sdk supports route between two places on Map? I have searched many times. But not able to find any reference. Even on apple iphone development forums, there is no such thing available.
I have done this functionality using google map url. In which I have to pass source and destination latitude & longitude. I am getting the map but it is not as much good as like the iphone google map.
Can anyone help me out to do this functionality? I need to display map route between two places and also want description of the exact path to reach the destination.
No, the API has no means to do routing. You can do overlays if you can figure out the route, but that's obviously a lot more work.
Related
Until iOS6, it was possible to use Google Maps API with optimize waypoints parameter for showing an optimized route between many locations. The route on map was shown on UIWebView or in Safari. With iOS6 everything has changed: Apple Map Kit now uses Apple maps, so its illegal to use Google Maps API in it. Currently, MKMapItem allows to call and pass MKLaunchOptionsDirectionsModeKey. However, currently it allows to use only two locations. Is there any workaround for that?
Their is a open source class files RegexkitLite that use to find path between two places
follow this documentation for implementation.
please go through this it solve your problem.
[
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)).
I would like to know if it is possible to pass an address from an SQlite data base to GPS or Google maps and have it show on a map at the press of a button. If anyone is aware of a tuturial that could help me that would be appriciated.
I would also like to get current location and show local places on map, also populated from the same database. Thanks in advance.
In order to translate address to lat/long coordinate you will have to use the Google directions API since apple is not supporting forward geocoding.
You can take a look at this API - pretty straight forward:
http://code.google.com/apis/maps/documentation/directions/
for iOS 4.x and below you will need to use the Google API but in iOS 5 Apple has implemented a really nice foreword geocoding API.
In my application i have a MkMapview and now it shows current location. i have to bookmark some other locations and show that locations even if there is no Wi-Fi connection. How to bookmark that locations and how to display the offline maps? how to save map to cache? is it possible?
Thanks,
As far as I know, there is no public available API for caching the map images used by MKMapView. You might also be in violation of Googles terms and conditions by doing this.
However, Google have provided a static map API where you can grab a static portion of a map as an image file and possible cache this for later display. But again, check Google's T&C.
There are a number of other map services available through the GData API, but they are somewhat more complex to use. This SO question, shows a few hints on how to use these API's.
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