Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
35 stars 35 forks source link

Unable to add new tags #149

Open penguin242 opened 6 years ago

penguin242 commented 6 years ago

Hi, since short the plugin is unable to add the country and or city tags. It stays in simulation mode.

Is there any way to debug this? tags

xbgmsharp commented 6 years ago

Hello,

The free hosting service I used to hosted the reverse lookup proxy closed. I need to find a new hosting for this services. Until then all reverse lookup Will failed unless you setup your own. I need a nodeJS server with mongodb if anyone have a good option.

penguin242 commented 6 years ago

What service do you need and how can we set it up on our own?

penguin242 commented 6 years ago

This link is still working https://nominatim.openstreetmap.org/reverse?format=xml&lat=51.082333&lon=10.366229&zoom=12

penguin242 commented 6 years ago

I've got it working again.

ins admin_tag.php I used following

$osm_url = "https://nominatim.openstreetmap.org/reverse?format=json&lat=". $image['latitude'] ."&lon=". $image['longitude'] ."&zoom=12";

replaced if (isset($response) and isset($response['success']) and isset($response['success'][0]) and isset($response['success'][0]['result']) and isset($response['success'][0]['result']['address']) and is_array($response['success'][0]['result']['address']))

by if (isset($response))

and remarked this line

$response['address'] = $response['success'][0]['result']['address'];

xbgmsharp commented 6 years ago

You can use the nominatim openstreetmap, but you have a request limit, therefor i setup a reverse proxy, https://github.com/xbgmsharp/nodejs-nominatim. I need to have a look at a new (free) hosting for a nodeJS server with mongodb.

Arnie97 commented 4 years ago

Maybe CloudNode or Kuber?