• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Route demarcation in iPhone apps?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks very much for that amazing tutorial. You are a gentleman, and a scholar!

Take care.
Sincerely;
Fayyaz
 
Ranch Hand
Posts: 136
Android Mac Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic