mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
7f2a63e7f7
Adds a provider for the project's own place index and puts it in front of the existing ones for search, autocomplete, details and the explore pills. It needs no key, has no quota, and what it returns may be stored, which is true of neither of the two providers it sits in front of. Nothing about the Google path changes. Every call site falls through to exactly what it did before when the index has no answer or the service is unreachable, so a working search keeps working. Two details worth knowing while reading: - Details for a place from the index also resolve its OpenStreetMap record by name and coordinate, because the index has no opening hours yet and never has cuisine or a menu link. Without that the hours a user saw while adding a place vanished from its card afterwards. - The explore pills keep reporting source 'openstreetmap'. It is a typed contract the client switches on, and the places are the same places. TREK_PLACES_URL points at a different instance; unset means the public one.