filter photon search by street if query is an address (first basic version)
publié le , mis à jour⚙️ Ceci est une proposition de changement de code.
Rendez-vous sur sa page Coderberg pour l'osculter.
work on issue #1230
this is a first version:
- we look for street keywords in the query : rue, avenue, boulevard, ...
- if match, we add
layer=streetto the photon query
It solves the bug when housenumber is missing in OSM, since it forces the search in street names
But it is not fully satisfactory since other places with "avenue" in their names won't be found, for example this hairdresser "11e avenue", because the search will be made only in streets.