OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2018-07-06 20:55:34

Registered: 2018-07-05
Posts: 16

Looking for a way to get the country code with an overpass-api request

Hello everyone,

I am working for a little project, a map that shows markets, farmshops and vending machines in middle europe. You can find the (german) map on , we are planing to translate the map to other languages in the future. The map uses opening_hours.js to find out if a feature is open or closed. This only works with opening hours that do not contain holidays.

We experimented with the Nominatim api. It is possible to get the country id for one node from there, but not for all 7000 nodes in the map at once. If we use this we have to send a request everytime someone opens a popup, wich is okay, but not ideal cause we are planing to at a "open right now" feature that hides al closed points in the map.

Is there a native way query for the country code of a feature in the overpass api?

Are there any other ways to include the information in the data? We are using a Script to import the data, we could easily add the information there.

Thanks for any help,

Last edited by sterfanrg (2018-07-06 20:57:07)


Board footer

Powered by FluxBB