Skip to content

Commit e276918

Browse files
committed
Add square as a fallback for streets (nominatim). Closes #56
1 parent 04e1811 commit e276918

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/field/Locator.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,9 @@ export default {
550550
country: response.address.country,
551551
countryCode: response.address?.country_code,
552552
postcode: response.address.postcode,
553-
address: response.address.road,
553+
address:
554+
response.address.road ||
555+
response.address.square,
554556
osm: response.osm_id,
555557
};
556558
if (this.saveZoom) {

0 commit comments

Comments
 (0)