mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +00:00
feat(places): send a search to Google, once or always
Since 4.3.0 the TREK index and OpenStreetMap answer every search first and Google is only asked when they find nothing, so a list with the wrong place on it never reached Google, whatever key the instance had, and the provider choice only decided who fills the empty case. Two ways to change that, both only where Google holds the key slot. Under a result list that did not come from Google, one quiet line sends the same query to Google Places alone (`provider: 'google'` on the search contract, the MCP search tool takes it too). And beside the key, an admin switch "Search with Google only" hands every search and every suggestion to Google and asks nothing of the index or OpenStreetMap; off by default, read by the search after the keyed provider so an install without a key, or one on Amap or OpenStreetMap, is untouched. The panel says so beside the switch. Both shells share the one rule for when the line is offered (placeSource), and the wiki names both switches.
This commit is contained in:
@@ -166,6 +166,9 @@ const admin: TranslationStrings = {
|
||||
'admin.placesEnrich.title': 'Enriquiment de llocs',
|
||||
'admin.placesEnrich.subtitle':
|
||||
"Mostra imatges i una descripció en afegir un lloc. Wikipedia i OpenStreetMap s'usen sempre; Google s'hi afegeix si Fotos de llocs o Detalls de llocs estan actius.",
|
||||
'admin.placesGoogleOnly.title': 'Cercar només amb Google',
|
||||
'admin.placesGoogleOnly.subtitle': 'Cada cerca i cada suggeriment van a Google Places. Desactivat, responen primer l\'índex de TREK i OpenStreetMap, i Google només es consulta si no troben res.',
|
||||
'admin.placesGoogleOnly.missingKey': 'Cal una clau d\'API de Google Maps. Sense clau, la cerca fa servir l\'índex de TREK i OpenStreetMap, sigui com sigui aquest interruptor.',
|
||||
'admin.transitProvider.title': 'Proveïdor de transport públic',
|
||||
'admin.transitProvider.subtitle': 'Quin servei respon la cerca de transport públic.',
|
||||
'admin.transitProvider.transitous': 'Transitous (gratuït)',
|
||||
|
||||
@@ -87,6 +87,7 @@ const places: TranslationStrings = {
|
||||
'places.reservationNotesPlaceholder': 'Notes de reserva, número de confirmació...',
|
||||
'places.mapsSearchPlaceholder': 'Cerca llocs...',
|
||||
'places.mapsSearchError': 'La cerca de llocs ha fallat.',
|
||||
'places.searchGoogleInstead': 'No és el lloc correcte? Cerca a Google',
|
||||
'places.loadingDetails': 'Carregant els detalls del lloc…',
|
||||
'places.osmHint':
|
||||
"S'està utilitzant la cerca amb OpenStreetMap (sense fotos, horaris ni valoracions). Afegeix una clau API de Google a Configuració per obtenir tots els detalls.",
|
||||
|
||||
Reference in New Issue
Block a user