Fetch place details from OSM API, support relations

* Much faster
* Has more place details, which allows us to locate relations, in
  addition to nodes and ways
This commit is contained in:
2026-02-20 12:34:48 +04:00
parent bcf8ca4255
commit 2aa59f9384
5 changed files with 242 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ export default class PlaceDetails extends Component {
const lat = this.place.lat;
const lon = this.place.lon;
if (!lat || !lon) return '';
return `${lat}, ${lon}`;
return `${Number(lat).toFixed(6)}, ${Number(lon).toFixed(6)}`;
}
get osmUrl() {