wood burning stoves 2.0*
The moose likes iOS and the fly likes Route demarcation in iPhone apps? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » iOS
Bookmark "Route demarcation in iPhone apps?" Watch "Route demarcation in iPhone apps?" New topic
Author

Route demarcation in iPhone apps?

Fayyazuddin Syed
Greenhorn

Joined: May 14, 2006
Posts: 10
I am currently learning to use the MapKit API in developing iPhone apps, and I want to know if it is possible to show a path from point A to point B on a map application on the iPhone? I am working on a basic app right that shows the user the closest specialty restaurants to the user, and would like to be able to show the user the shortest route. Is this possible?

Thanks in advance.
Sincerely;
Fayyaz
Brandon Trebitowski
author
Greenhorn

Joined: Sep 13, 2010
Posts: 3
Fayyazuddin,

The routing you see in the maps app comes from the Google Maps API on the web.

Check out this great tutorial on it here:

http://blog.kadirpekel.com/2010/05/30/drawing_routes_onto_mkmapview_using_unofficial_google_maps_directions_api/

I have downloaded and played with the sample app and it seems to do exactly what you need.

Another option would be to simply open up the path in the Maps app.



Cheers!
Fayyazuddin Syed
Greenhorn

Joined: May 14, 2006
Posts: 10
Thanks very much for that amazing tutorial. You are a gentleman, and a scholar!

Take care.
Sincerely;
Fayyaz
Pratik Goswami
Ranch Hand

Joined: Mar 02, 2009
Posts: 136

Fayyazuddin Syed wrote:I am currently learning to use the MapKit API in developing iPhone apps, and I want to know if it is possible to show a path from point A to point B on a map application on the iPhone? I am working on a basic app right that shows the user the closest specialty restaurants to the user, and would like to be able to show the user the shortest route. Is this possible?


As well there are other third party libraries are available for map.
You can use RouteMe, CloudMade for different Map tiles, if you are interested.

Thanks
Pratik Goswami


iOS * Android Developer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Route demarcation in iPhone apps?