Jurisdiction for POIs

When exporting POIs from Overpass, is it possible for Overpass to return the local authority area in which the POI is found, if this is not already tagged on the POI?

Thanks.

I suspect it would require a sophisticated query. The problem being that someone might have mis-spelled a name of the object, the jurisdiction or one object is in two jurisdictions or there is a ‘crack’ between two jurisdictions.

You could search each council area one-by-one with a query like:
highway=motorway in “Belfast City”

Example of problem with council / district names:

  • Newry, Mourne & Down
  • Newry, Mourne & Down District Council
  • Newry, Mourne & Down District / Iúir, Mhúrn agus an Dúin
  • Newry, Mourne and Down
  • Newry, Mourne and Down District Council
    Overpass will treat each of these differently.

Some names might be in languages other than English.

Also check what * admin_level =* is used for each jurisdiction, e.g. councils in Northern Ireland are * admin_level = 7, but that isn’t used anywhere else in the UK except London.

1 Like

Thanks. Happily I think all GB councils are properly coded in the map thanks to very careful work by Colin Smale.

So hopefully downloading one council at a time will sort it.

There are a couple of examples on the Overpass by example page that might be a starting point if you want to do something like this:

As both of them require post processing and are probably really heavy on the server I think it’s probably going to end up being something that’s better done after download rather than trying to get Overpass to do it for you.[1]


  1. Either that or someone will eventually turn up with a PostPass query that’ll do it almost instantly. ↩︎

1 Like

Thanks. It suits my workflow anyway to download one jurisdiction at a time, so will do that.