Compare commits

...

2 Commits

Author SHA1 Message Date
d9645d1a8c Fix search result subheadings
Should be address for non-nearby results
2026-02-23 20:28:03 +04:00
688e8eda8d Add more place types 2026-02-23 20:16:24 +04:00
2 changed files with 9 additions and 3 deletions

View File

@@ -190,6 +190,8 @@ export default class PlacesSidebar extends Component {
<div class="place-type">
{{#if (eq place.source "osm")}}
{{humanizeOsmTag place.type}}
{{else if (eq place.source "photon")}}
{{place.description}}
{{else}}
{{#if place.osmTags}}
{{humanizeOsmTag (getPlaceType place.osmTags)}}

View File

@@ -41,13 +41,17 @@ export function getPlaceType(tags) {
tags.shop ||
tags.tourism ||
tags.leisure ||
tags.historic ||
tags.office ||
tags.craft ||
tags.historic ||
tags.place ||
tags.building ||
tags.landuse ||
tags.natural;
tags.place ||
tags.natural ||
tags.public_transport ||
tags.aeroway ||
tags.border_type ||
tags.admin_title;
return humanizeOsmTag(rawType);
}