trufi-association / trufi-core

Trufi - A Flutter app for Public Transportation
https://www.trufi-association.org
GNU General Public License v3.0
95 stars 45 forks source link

Photon search for places (not only reverse geocoding) #632

Open amenk opened 2 years ago

amenk commented 2 years ago

Is your feature request related to a problem? Please describe.

The documentation implies that photon can be used to search places.

In fact it looks in the code that is only is used for reverse geocoding.

https://github.com/trufi-association/trufi-core/blob/a5e9e0a76b24cc0254cf3c48e7130650f6178509/lib/base/pages/saved_places/repository/search_location/default_search_location.dart#L53

Describe the solution you'd like

I would be nice to work without search.json optionally and use only photon.

Describe alternatives you've considered Local search :-)

Additional context This might be in use already in the bike-app ?

amenk commented 2 years ago

I discussed this in a call with @SamuelRioTz - the outcome was, that Photon search is currently only used for reverse geocoding, also the local search supports some feature like intersection-search which are not supported in Photon.

It should be not so hard to use Photon also for normal search, so this is a feature request. (low prio for us, as we got the local search working already)