NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

4
1

I'm adding an offline routing functionality to an Android app, and wondering if there are any standalone libraries I can use to convert OSM map files into some topological object graph. I know there are bunch of open source apps that do this, but wondering if there's any packaged library that does that.

The routing is very app-dependent, so I'm not looking for a routing library, but just rather a simpler way to read in OSM data than having to parse it from XML by myself.

asked 27 Jun '13, 01:23

k0zyr's gravatar image

k0zyr
61123
accept rate: 0%

edited 27 Jun '13, 01:51


There is something called Libosmscout but I am not sure whether it is usable on android devices.

All known solutions should be collected at Frameworks, Routing and Android

Maybe you should have a closer look at Graphhopper

permanent link

answered 27 Jun '13, 17:21

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

(27 Jun '13, 19:54) andy mackey
1

libosmscout has support for android but you will need to use the NDK. You can find good tutorials on the net for this. But i would still suggest using Graphhopper.

(07 Oct '14, 12:04) Nirab Pudasaini

I think Graphhopper is the library you are looking for. This wiki will help you get started. Also you can subscribe to the mailing list.

With graphhopper you can use a command line tool to convert the OSM files into graph files. You can load these graph files to your android device and then use the graphhopper library to get routes. This Project has matured a lot and is gaining lot of features day by day.

permanent link

answered 18 Aug '13, 06:30

Nirab%20Pudasaini's gravatar image

Nirab Pudasaini
55621514
accept rate: 40%

edited 07 Oct '14, 12:09

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×710
×181
×106
×11

question asked: 27 Jun '13, 01:23

question was seen: 6,869 times

last updated: 07 Oct '14, 12:09

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum