This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to read .osm file into my android studio?

0

I parsed my .osm file using this command --keep = -keep-nodes=highway --keep-ways= so i can just get the roads that the car can pass. Is this right? The program i used is osmfilter. Now i want to read the .osm file into my android studio so i could make a Marker in osmdroid. How do i do that? Marker uses geopoints

asked 04 Dec '16, 12:40

Marisannn's gravatar image

Marisannn
21234
accept rate: 0%

edited 05 Dec '16, 08:23

1

Assuming that "read the .osm file into my android studio" means "read the .osm file into an app that I have created using Android Studio", you'd read it in just the same way that your app reads other resources - you'd find somewhere to host it, and have your app download it from there.

If you haven't read them already I'd suggest that you read https://wiki.openstreetmap.org/wiki/Develop , https://wiki.openstreetmap.org/wiki/Elements and https://wiki.openstreetmap.org/wiki/Highway .

(06 Dec '16, 21:37) SomeoneElse ♦

Source code available on GitHub .