Geolocation/autocompletion, embrace both :) #706
Replies: 2 comments 2 replies
-
If you run your own instance, you could compile your own version of Photon with the following lines commented out: This will give you a version of Photon that will insist on exact matches. We could make this configurable but the question is, if you really want that. For example, I imagine that you would still be happy if Nominatim found 'Rue de la Matin' even when you search for 'Rue du Matin'. So what most people really want is to use spelling correction "wisely" not turn it off completely. There are two kinds of fuzzy matching that Nominatim does: leaving out whole words and correcting single letters. If you run your own instance, you could play with a Photon version that only does the letter correction. Change minimumShoudMatch to always be 100% in this line: |
Beta Was this translation helpful? Give feedback.
-
Hi lonvia, is there a way to quickly check photon 0.4.1 result for https://photon.komoot.io/api?q=Avenue%20des%20bons%20l%C3%A9gumes,%201050%20Ixelles,%20Belgique ? I started using photon over nominatim because it give better results for localisation and I have the impression photon might have given me no result for |
Beta Was this translation helpful? Give feedback.
-
Hi there, I would like to use photon for geolocation (works pretty good) but can't get rid of it's autocompletion oriented focus ...
For street layer,
Street of nowhere, 1050 Ixelles, Belgique
-> gives 0 result (which is good :) )Avenue of nowhere, 1050 Ixelles, Belgique
-> gives me 10 results, which may be good for autocompletion but completely irrelevant for geolocation ... -> and I can't get rid of this ...https://photon.komoot.io/api?layer=street&q=Avenue%20of%20nowhere,%201050%20Ixelles,%20Belgique
Beta Was this translation helpful? Give feedback.
All reactions