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

Add new tags #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ public List<Tag> getTags(IndoorObject o) {
List<Tag> tagList = new ArrayList<>();

switch (o) {
case LIBRARY:
tagList.add(new Tag("indoor", "room"));
tagList.add(new Tag("amenity", "library"));
return tagList;
case TERMINAL:
tagList.add(new Tag("information", "terminal"));
tagList.add(new Tag("tourism", "information"));
return tagList;
case CAFE:
tagList.add(new Tag("indoor", "room"));
tagList.add(new Tag("amenity", "cafe"));
return tagList;
case CONCRETE_WALL:
tagList.add(new Tag("indoor", "wall"));
tagList.add(new Tag("material", "concrete"));
Expand Down Expand Up @@ -66,7 +78,10 @@ public List<Tag> getTags(IndoorObject o) {
case STEPS:
tagList.add(new Tag("highway", "steps"));
return tagList;
case CORRIDOR:
case WALL:
tagList.add(new Tag("indoor", "wall"));
return tagList;
case CORRIDOR:
tagList.add(new Tag("indoor", "corridor"));
return tagList;
case BENCH:
Expand All @@ -89,7 +104,8 @@ public List<Tag> getTags(IndoorObject o) {
* @author egru
*/
public enum IndoorObject {
CONCRETE_WALL, GLASS_WALL, ROOM, TOILET_MALE, TOILET_FEMALE, ELEVATOR, DOOR_PRIVATE, DOOR_PUBLIC, ENTRANCE,
ENTRANCE_EXIT_ONLY, ACCESS_PRIVATE, ACCESS_PUBLIC, STEPS, CORRIDOR, BENCH, AREA, NONE
ROOM, CORRIDOR, AREA, LIBRARY, TERMINAL, CAFE, TOILET_MALE, TOILET_FEMALE,
DOOR_PRIVATE, DOOR_PUBLIC, ENTRANCE, ENTRANCE_EXIT_ONLY, ACCESS_PRIVATE, ACCESS_PUBLIC,
STEPS, ELEVATOR, WALL, CONCRETE_WALL, GLASS_WALL, BENCH, NONE
}
}