Improve nearby search

* Use regular expression queries for place types
* Add more place types
* Add relations
* Only return results with a name
This commit is contained in:
2026-02-24 09:58:12 +04:00
parent ff01d54fdd
commit 361a826e4f
2 changed files with 24 additions and 7 deletions

View File

@@ -83,7 +83,7 @@ export default class PlaceDetails extends Component {
}
parts.push(city);
}
// State + Country (if not already covered)
const state = get('addr:state', 'state');
const country = get('addr:country', 'country');
@@ -151,7 +151,7 @@ export default class PlaceDetails extends Component {
if (!id) return null;
return `https://www.google.com/maps/search/?api=1&query=${this.name}&query=${this.place.lat},${this.place.lon}`;
}
get showDescription() {
// If it's a Photon result, the description IS the address.
// Since we are showing the address in the meta section (bottom),