-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Google] Administrative level 1 is defined twice #1173
Comments
A PR (#1174) is ready that should solve this issue! {
"results" : [
{
"address_components" : [
...
{
"long_name" : "Wayaux",
"short_name" : "Wayaux",
"types" : [ "political", "sublocality", "sublocality_level_1" ]
},
{
"long_name" : "Les Bons Villers",
"short_name" : "Les Bons Villers",
"types" : [ "political", "sublocality", "sublocality_level_1" ]
},,
...
],
"formatted_address" : "Rue de Pont-à-Migneloux, 6210 Les Bons Villers, Belgique",
...
}
],
"status" : "OK"
} In this case, it will combine the 2 |
Nice, thank you |
hey guys Just try to reverse these coordinates:
It will throw Because the address JSON contains: {
"long_name" : "NDDM Ward No - 26",
"short_name" : "NDDM Ward No - 26",
"types" :
[
"administrative_area_level_3",
"political"
]
},
{
"long_name" : "North 24 Parganas",
"short_name" : "North 24 Parganas",
"types" :
[
"administrative_area_level_3",
"political"
]
}, And your fix doesn't help. Because the exception is thrown before UPD in my local fork I've just removed this exception: lumiform/geocoder-php-common@2ce26bd It causes that the duplicate levels are ignored. |
Hello, this fix remove double administrative area if they are the same. But I found an address on which Google give 2 different level 1 sublocality:
I this case, the geocoder give me the same error Administrative level 1 is defined twice
How can I solve this issue?
The text was updated successfully, but these errors were encountered: