iPhone core location, maps navigation
I've searched quite a lot and didn't find the answer, is it possible to have a map view which will navigate to specific locations?
Like integrated iPhone map application...
I want to have 3-4 addresses and when y开发者_Go百科ou click on one it will show directions on map how to get there, can it be done?
No, I dont...I can google just like you :)
It looks pretty simple though - you just need to build your direction requests:
http://maps.googleapis.com/maps/api/directions/output?parameters
for example:
http://maps.googleapis.com/maps/api/directions/json?origin=Boston,MA&destination=Concord,MA&waypoints=Charlestown,MA|Lexington,MA&sensor=false
and you get back a response in this structure, and you just need to parse the JSON object:
http://maps.googleapis.com/maps/api/directions/json?origin=Chicago,IL&destination=Los+Angeles,CA&waypoints=Joplin,MO|Oklahoma+City,OK&sensor=false
Hope that helps.
精彩评论