Skip to content

Commit

Permalink
Version 0.5 beta
Browse files Browse the repository at this point in the history
Version 0.5 beta
Additional attributes of the stop
Selection of the way for stop point
Set or not remove default values of the attributes
Upgraded the form layout
  • Loading branch information
bwr57 committed Jan 27, 2020
1 parent 41ffa8c commit 6d61f31
Show file tree
Hide file tree
Showing 10 changed files with 531 additions and 257 deletions.
52 changes: 50 additions & 2 deletions Text/en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,58 @@ Bus station
Tram
Railway station
Railway stop
Assign transport type to platform
PublicTransport\u0004Assign transport type to platform
PublicTransport\u0004Shelter
Bench
Cover
Area
Save
Cancel
Cancel
Subway station
Tourism
School transport
Factory
Ref
Platform ref
Layer
Board
Tactile paving
Lit
Bin
Surface
On demand
Timetable
Delay
Realtime
Incorrect
Primitive paving
Contrasted
Unknown
Paved
Asphalt
Concrete
Paving stones
Sett
Unheun cobblestone
Cobblestone
Metal
Wood
Unpaved
Compacted
Fine gravel
Gravel
Pebblestone
Dirt
Grass
Grass paver
Ground
Mud
Sand
Woodchips
Snow
Ice
Salt
Regular
Transport types
Platform attributes
Set default values
50 changes: 49 additions & 1 deletion Text/ru.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,52 @@
В помещении
Полигон
Сохранить
Отмена
Отмена
Станция метро
Туристическая
Школьный транспорт
Служебный транспорт
Идентификатор
Платформа
Уровень
Информация о движении
Тактильное покрытие
Освещение
Урна
Покрытие
По требованию
Расписание
Интервалы между рейсами
В реальном времени
Неточное
Простейшее
Высококонтрастное
Неизвестно
Твердое покрытие
Асфальтобетон
Бетон
Тротуарная плитка
Брусчатка
Художественный булыжник
Булыжник
Металл
Дерево
Нетвердое покрытие
Грейдер
Многослойный гравий
Гравий
Галька
Грязь
Трава
Решетка
Голая почва
Глубокая грязь
Песок
Опилки
Зимник
Зимник по льду
Соль
Обязательная
Останавливающийся транспорт
Свойства платформы
Присваивать значения по умолчанию
Binary file modified data/en.lang
Binary file not shown.
Binary file modified data/ru.lang
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public void parseTags(StopArea stopArea, OsmPrimitive member) {
stopArea.service = getTagValue(member, OSMTags.SERVICE_TAG);
if (OSMTags.LOCAL_NETWORK_TAG_VALUE.equals(stopArea.service))
stopArea.service = OSMTags.COMMUTER_NETWORK_TAG_VALUE;
if (stopArea.onDemand == null)
stopArea.onDemand = getTagValue(member, OSMTags.ON_DEMAND_TAG);
if (compareTag(member, OSMTags.BUS_TAG, OSMTags.YES_TAG_VALUE))
stopArea.isBus = true;
if (compareTag(member, OSMTags.TROLLEYBUS_TAG, OSMTags.YES_TAG_VALUE))
Expand All @@ -58,11 +60,29 @@ && compareTag(member, OSMTags.HIGHWAY_TAG, OSMTags.BUS_STOP_TAG_VALUE))
stopArea.isTram = true;
if (compareTag(member, OSMTags.RAILWAY_TAG, OSMTags.HALT_TAG_VALUE))
stopArea.isTrainStop = true;
if (compareTag(member, OSMTags.RAILWAY_TAG, OSMTags.STATION_TAG_VALUE))
stopArea.isTrainStation = true;
if (compareTag(member, OSMTags.RAILWAY_TAG, OSMTags.STATION_TAG_VALUE)) {
if (compareTag(member, OSMTags.STATION_TAG_VALUE, OSMTags.SUBWAY_TAG_VALUE)) {
stopArea.isSubwayStation = true;
if (compareTag(member, OSMTags.TRAIN_TAG, OSMTags.YES_TAG_VALUE)) {
stopArea.isTrainStation = true;
}
}
else
stopArea.isTrainStation = true;
}
if (compareTag(member, OSMTags.AMENITY_TAG, OSMTags.BUS_STATION_TAG_VALUE)) {
stopArea.isBusStation = true;
}

if(stopArea.ref == null)
stopArea.ref = getTagValue(member, OSMTags.REF_TAG);
if(stopArea.departuresBoard == null)
stopArea.departuresBoard = getTagValue(member, OSMTags.DEPARTURES_BOARD_TAG);
if(stopArea.onDemand == null)
stopArea.onDemand = getTagValue(member, OSMTags.ON_DEMAND_TAG);
if (compareTag(member, OSMTags.PASSENGER_INFORMATION_DISPLAY_TAG, OSMTags.YES_TAG_VALUE))
stopArea.passengerInformationDisplay = true;

if (member == stopArea.selectedObject) {
if (compareTag(member, OSMTags.BENCH_TAG, OSMTags.YES_TAG_VALUE))
stopArea.isBench = true;
Expand All @@ -72,6 +92,19 @@ && compareTag(member, OSMTags.HIGHWAY_TAG, OSMTags.BUS_STOP_TAG_VALUE))
stopArea.isCovered = true;
if (compareTag(member, OSMTags.AREA_TAG, OSMTags.YES_TAG_VALUE))
stopArea.isArea = true;

if(stopArea.localRef == null)
stopArea.localRef = getTagValue(member, OSMTags.LOCAL_REF_TAG);
if(stopArea.layer == null)
stopArea.layer = getTagValue(member, OSMTags.LAYER_TAG);
if (compareTag(member, OSMTags.LIT_TAG, OSMTags.YES_TAG_VALUE))
stopArea.isLit = true;
if (compareTag(member, OSMTags.BIN_TAG, OSMTags.YES_TAG_VALUE))
stopArea.isBin = true;
if(stopArea.surface == null)
stopArea.surface = getTagValue(member, OSMTags.SURFACE_TAG);
if(stopArea.tactilePaving == null)
stopArea.tactilePaving = getTagValue(member, OSMTags.TACTILE_PAVING_TAG);
}
}

Expand Down Expand Up @@ -142,6 +175,8 @@ && compareTag(rel, OSMTags.PUBLIC_TRANSPORT_TAG, OSMTags.STOP_AREA_TAG_VALUE)) {
|| stopArea.isBusStation)) {
stopArea.isBus = true;
}
if(null == stopArea.layer)
stopArea.layer = "0";
}

/**
Expand Down
Loading

0 comments on commit 6d61f31

Please sign in to comment.