Skip to content

Commit e4a08eb

Browse files
committed
Add state as last city fallback. Fixes #23
1 parent 1b9b04f commit e4a08eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export default {
333333
'lat': parseFloat(response.lat),
334334
'lon': parseFloat(response.lon),
335335
'number': response.address.house_number,
336-
'city': response.address.city || response.address.town || response.address.village || response.address.county,
336+
'city': response.address.city || response.address.town || response.address.village || response.address.county || response.address.state,
337337
'country': response.address.country,
338338
'postcode': response.address.postcode,
339339
'address': response.address.road,

0 commit comments

Comments
 (0)