Skip to content
Snippets Groups Projects
Commit c0c448b1 authored by Misha Lavrenchuk's avatar Misha Lavrenchuk Committed by Italo Mairo
Browse files

Issue #3370552 by ReINFaTe: setAddressFieldFromGeojson should use admin level code instead of name

parent a37da607
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ class DumperPluginManager extends GeocoderPluginManagerBase {
// Define an administrative_area line1 from adminLevels name, if existing.
$administrative_area = '';
if (!empty($geojson_array['properties']['adminLevels'])) {
$administrative_area = array_shift($geojson_array['properties']['adminLevels'])['name'];
$administrative_area = array_shift($geojson_array['properties']['adminLevels'])['code'];
}
// Define the address line1, adding a street number to it, if existing.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment