mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-06-20 01:44:42 +02:00
update on labourage
This commit is contained in:
parent
248140d78a
commit
c6e05463b1
3 changed files with 82 additions and 29 deletions
|
@ -290,6 +290,24 @@ out center tags;';
|
|||
}
|
||||
|
||||
|
||||
public function find_main_tag($tags) {
|
||||
if(isset($tags['amenity']) && $tags['amenity'] != '') {
|
||||
return $tags['amenity'];
|
||||
}
|
||||
if(isset($tags['shop']) && $tags['shop'] != '') {
|
||||
return $tags['shop'];
|
||||
}
|
||||
if(isset($tags['tourism']) && $tags['tourism'] != '') {
|
||||
return $tags['tourism'];
|
||||
}
|
||||
if(isset($tags['healthcare']) && $tags['healthcare'] != '') {
|
||||
return $tags['healthcare'];
|
||||
}
|
||||
if(isset($tags['office']) && $tags['office'] != '') {
|
||||
return $tags['office'];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public function migrate_tags($osm_object_data) {
|
||||
|
||||
// migrer email vers contact:email
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue