Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Offline Map With Routing - iOS

I'm working with a project its related to Offline map application.Because of that I searched for offline map which shows the defined area. I used MapBox for offline mapping. I can add annotation on this map and draw lines.

But my requirement is offline map with routing. I was fed up to find a offline routing library or offline routing engine to embedded to Xcode.

Appreciate if any of you have any clue or sample project/code to implement this

Note : This question is related to my one. No one replied to this as well

Thanks.

like image 365
Gayan Avatar asked Oct 16 '12 06:10

Gayan


People also ask

Can I plan a route on iPhone Maps?

Yes, Apple Maps does have this feature. The route is optimized to move from your starting point to the next location. It can plan a path between two stops. It currently does not support routes that have multiple destinations or points.

Can I draw a route on Apple Maps?

In the Maps app on your Mac, click a location on the map, such as an intersection, landmark, or business. In the place card, do one of the following: Click Create Route, then enter the destination in the To field (or click the Swap Directions button , then enter the starting point in the From field).


1 Answers

Offline implies no internet, the iPhone is still able in most cases to get the users current location from the GPS. That means that you can be quite confidant that you can find out the current location of the user whilst offline.

The problem with offline routing is that the Phone is dumb, it only remembers the x amount of MB of data in terms of tiles to display.

Routing is something completely different, it takes a point A and B and works out the shortest, fastest, cheapest or all of those between A and B.

This takes a lot more then tiles to accomplish, after all if you think in terms of MVC, tiles are just the dump views, they don't know much about what's around them except what's inside of them. It would be the "controller" who would calculate routes, and for that you would need to be in possession of all the data spanning the desired area for routing.

For each mapping service you will find a different route, maybe not in terms of actual path, but in estimated time, effort etc, what this means is that if you have your own maps (offline in a database), it's up to you to use that data, so you should make your own routing algorithm which I'm sure isn't what you want to do.

So what are your options? At the moment this just isn't possible in the scope you want. Even if you had an offline maps database, you still need a routing algorithm.

like image 167
Daniel Avatar answered Oct 05 '22 23:10

Daniel