File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Route demarcation in iPhone apps?

 
Fayyazuddin Syed
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much for that amazing tutorial. You are a gentleman, and a scholar!

Take care.
Sincerely;
Fayyaz
 
Pratik Goswami
Ranch Hand
Posts: 136
Android Chrome Mac
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic