Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: OSRM routing on Android/iOS? #4831

Closed
mbukovy opened this issue Jan 26, 2018 · 4 comments
Closed

Question: OSRM routing on Android/iOS? #4831

mbukovy opened this issue Jan 26, 2018 · 4 comments

Comments

@mbukovy
Copy link

mbukovy commented Jan 26, 2018

Hello,

I need to run OSRM routing offline on Android and iOS.
What we do now: Currently we use osrm-backend build on our server with our own weights (segment-speed-file) to provide (sort of special) routing service online from the app. Everything works fine, but there is a need to do it offline, without internet connection.
What we want: We want to provide routing (route geometry and steps) with our weights completely offline on Android and iOS.

I've searched a bit, found some old threads about it and my best bet for now is the source code of Maps.me app. I'm going to investigate it for sure!
I just want to ask here - has anyone already managed to do this? Can you share some knowledge on how to do this?

@TheMarex
Copy link
Member

This is a significant technical lift if you want to do routing on big datasets like North America. The main problem is two things: Memory usage and file size. To get the datasets to fit on a phone you need to compress and potentially remove a lot of the data that we provide by default. It is definitely doable (we have a prototype for this internally) but it will take some time until we can Incorporate this into mainline.

@mbukovy
Copy link
Author

mbukovy commented Jan 29, 2018

Thank you, for your comment!
I know, it's technically difficult, but this is not a question for now. I want to know now, how to get a route on Android/iOS. Let's have an infinitely powerful phone - how to get a casual osrm routing request on it?
Then I can figure out, how to do it efficiently. I just don't want to develop my own routing engine, when OSRM works flawlessly.

Maybe you can share something with me? We are a very ambitious startup, maybe we could help you as well, when we get it to work :-)

@TheMarex
Copy link
Member

@mbukovy You should be able to compile OSRM on ARM, so you can build libosrm and use that as C++ library on Android.

@daniel-j-h
Copy link
Member

Not actionable on our side. Check out the open old maps.me code base they used to include osrm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants