]> git.openstreetmap.org Git - nominatim.git/blob - docs/develop/parenting-flow.plantuml
work around strange query planning behaviour
[nominatim.git] / docs / develop / parenting-flow.plantuml
1 @startuml
2 skinparam monochrome true
3
4 start
5
6 if (has 'addr:street'?) then (yes)
7   if (street with that name\n nearby?) then (yes)
8     :**Use closest street**
9      **with same name**;
10      kill
11   else (no)
12     :** Use closest**\n**street**;
13      kill
14   endif
15 elseif (has 'addr:place'?) then (yes)
16   if (place with that name\n nearby?) then (yes)
17     :**Use closest place**
18      **with same name**;
19      kill
20   else (no)
21     :add addr:place to address;
22     :**Use closest place**\n**rank 16 to 25**;
23      kill
24   endif
25 else (otherwise)
26  :**Use closest**\n**street**;
27  kill
28 endif
29
30
31 @enduml