Skip to content

Commit

Permalink
fix(location): fix Photon location type display. ref #517
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Apr 28, 2024
1 parent f0eeef7 commit c2277e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function getLocationCategory(locationObject) {
// examples: shop, amenity, building
// Photon
if (locationObject.properties) {
return locationObject.properties.osm_key
return locationObject.properties.type
}
// Nominatim or OP
return locationObject.type || locationObject.osm_type
Expand Down

0 comments on commit c2277e1

Please sign in to comment.