]> git.openstreetmap.org Git - nominatim.git/commit
factor out query position
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 15 Jul 2021 12:12:59 +0000 (14:12 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 15 Jul 2021 12:12:59 +0000 (14:12 +0200)
commitec3f6c9c42dd89e71d4edd3cfb2a911453aba58d
treea9fbc091f5506035217371451173c3a7deb267da
parent143ff1446656ee995356c7a7b5eaa624140c70d8
factor out query position

Moves token and phrase position and phrase type into a separate
class that is handed in when assembling the search description.
This drastically reduces the number of parameters for the function
to extend the search descriptions and gives us more flexibility
in the future for more complex positional analysis.
lib-php/Geocode.php
lib-php/SearchDescription.php
lib-php/SearchPosition.php [new file with mode: 0644]