I am a newbie to java openstreetmap. How can i create different levels of an indoor building? For ex. by adding new layers or something else? I've tried indoorHelper, and i guess i handled the creating different levels but don't know how to access these different levels. I see some indoor mapping apps, there are buttons for switching levels like -1,0,1, how buttons know these levels and switch between them. Are there any functions like getLevel()?

To sum up what is your way to create levels and access them ?

asked 23 Nov, 20:10

baranacikgoz's gravatar image

baranacikgoz
51114
accept rate: 100%

I've left an answer at the corresponding StackOverflow question: https://stackoverflow.com/a/70109278/1391631

(25 Nov, 10:16) Tordanik

OpenStreetMap is a database of geospatial information. Levels/floors are modeled with attributes of geometry primitives in the data (the level tag to be concrete). How attributes are made available to applications depends completely on what framework you are using so can't be answered without further context.

But very roughly you can determine from attributes on the building outline the min and max level and then simply only display objects with the correct level tag, for more information see

https://wiki.openstreetmap.org/wiki/Simple_Indoor_Tagging

permanent link

answered 24 Nov, 09:07

SimonPoole's gravatar image

SimonPoole ♦
42.9k13313677
accept rate: 19%

edited 24 Nov, 09:08

@SimonPoole thans for answer. Assume that i am using mapsforge or leaflet as frameworks, any advice ?

(24 Nov, 10:00) baranacikgoz

No advice really, in the case of leaflet you will need to use an API like Overpass or use a database to retrieve the level relevant data. This is what I believe for example https://openlevelup.net/?l=0#20/47.45100/8.55930 does.

(24 Nov, 10:17) SimonPoole ♦
Your answer
toggle preview

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:

×67
×39
×26
×11
×11

question asked: 23 Nov, 20:10

question was seen: 458 times

last updated: 25 Nov, 10:16

powered by OSQA