I have to display path between multiple locations in map in which travelling salesman problem should be solved. i used google direction api but it can handle only 8 way points in reguler account .i have to display path between cities more than 8 ...should i make algorithem for that ?can anyone help in this
Thanks .
Well for this you need to implement the Map Routes Methods. You can make it yourself but there are already classes made for this before. Please check :-
https://github.com/route-me/route-me
Google Maps SDK for iOS and routes
How to draw routes on maps in ios 6?
Hope this helps you otherwise please tell . I can provide you some classes
Related
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Show route between current and desired location on iPhone MapView
I am trying to draw a path between two coordinates on a MapView in iOS, but I can't figure out how. I have the two latitude and longitude points in one view.
How can I draw the path between these two points? I've attached the example with this question. Please help me. Any tutorials and code will be appreciated!
A simple answer is; you can't. At least, not using the built in API methods of iOS.
As far as i've seen so far, you have three alternatives:
Use an external library that offers such functionality - i'm sure there are plenty to be found on GitHub.
Compile the appropriate url and open mobile safari pointing to Google Maps with a directions request.
Use the built in methods of iOS 5/6 to open your route in the native Maps.app
I've used the third method in an app and this works fine but does come with the disadvantage that users will have to leave your application when viewing directions in Maps. It does however remain consistent and not quite as jarring to the user than opening mobile Safari.
If you do find a way to do this inside your own app, i'd be interested in seeing your results.
I am trying to implement a feature to get directions from my custom mapview. The get direction feature is exactly like the one in map app in iphone. I am a bit clueless to start with this feature. Any suggestions will be apppreciated
there are many links available stating the same. You should have look at the same. Like the one given below :
Drawing a route in MapKit in iPhone SDK
To get the routes you need, use Google Directions API. If you are using Three20, you can use extThree20Google extension
i'm developing an iPhone app which embed a mapView made with mkmapkit. I got two coordinates and I'm tracing the direction between these two points.But I need step by step directions
how can get this step by step directions if any one knows please help me .....
here i am attaching screen shot what i need:http://www.myappdemo.com/Screen%20shot.png
thanks for advance
You can use google API for it.
http://maps.googleapis.com/maps/api/directions/xml?origin=Brooklyn,NY&destination=Manhattan,NY&sensor=false
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.
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.