mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-26 13:27:52 +03:00
32 lines
585 B
Plaintext
32 lines
585 B
Plaintext
@startuml
|
|
skinparam monochrome true
|
|
|
|
start
|
|
|
|
if (has 'addr:street'?) then (yes)
|
|
if (street with that name\n nearby?) then (yes)
|
|
:**Use closest street**
|
|
**with same name**;
|
|
kill
|
|
else (no)
|
|
:** Use closest**\n**street**;
|
|
kill
|
|
endif
|
|
elseif (has 'addr:place'?) then (yes)
|
|
if (place with that name\n nearby?) then (yes)
|
|
:**Use closest place**
|
|
**with same name**;
|
|
kill
|
|
else (no)
|
|
:add addr:place to address;
|
|
:**Use closest place**\n**rank 16 to 25**;
|
|
kill
|
|
endif
|
|
else (otherwise)
|
|
:**Use closest**\n**street**;
|
|
kill
|
|
endif
|
|
|
|
|
|
@enduml
|