Andy Townsend <ajt1...@gmail.com> wrote:

> Straying from the point slightly, but what would be really, really nice
> would be a worked example of a way of obtaining wikidata information
> as part of map data processing

There might be another option. Given a hstore database or wikidata column it
would be very easy to build a query_wikidata psql function which will query
wikidata like this:

select query_wikidata(tags->'wikidata') from planet_osm_point where ...;

This would be only a few lines of pl/pgsql wrapper code using pgcurl:
https://github.com/Ormod/pgcurl

Regards

Sven

-- 
"Software is like sex; it's better when it's free"
                                      (Linus Torvalds)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web

_______________________________________________
Tagging mailing list
Tagging@openstreetmap.org
https://lists.openstreetmap.org/listinfo/tagging

Reply via email to