# Finding features in irregular regions with OpenStreetMapX.jl

**URL:** https://discourse.julialang.org/t/finding-features-in-irregular-regions-with-openstreetmapx-jl/84099
**Category:** New to Julia
**Tags:** package, openstreetmapx, osm
**Created:** [July 12, 2022, 11:21am UTC](https://discourse.julialang.org/t/finding-features-in-irregular-regions-with-openstreetmapx-jl/84099 "2022-07-12T11:21:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![healyp](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@healyp](https://discourse.julialang.org/u/healyp)
#### Post date: [July 12, 2022, 11:21am UTC](https://discourse.julialang.org/t/finding-features-in-irregular-regions-with-openstreetmapx-jl/84099/1 "2022-07-12T11:21:45Z")

</div>

Is there a way to restrict the boundary of OpenStreetMapX.jl to irregular polygonal regions? For example, I would like to find all the public water fountains in the 11eme arrondissement of Paris. Can this be done?

Many thanks.

---

<div class="post-metadata">

### Author: ![ImreSamu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/imresamu/32/20677_2.png) [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)
#### Post date: [July 14, 2022, 9:11am UTC](https://discourse.julialang.org/t/finding-features-in-irregular-regions-with-openstreetmapx-jl/84099/2 "2022-07-14T09:11:00Z")

</div>

for me - the simplest solution for small osm data:

- go [https://overpass-turbo.eu/](https://overpass-turbo.eu/)
- Wizard:
  - `amenity=fountain in "11e arrondissement de Paris"`
    - [https://overpass-turbo.eu/s/1k6g](https://overpass-turbo.eu/s/1k6g)

- Export → GeoJSON or Osm

As I see the Overpass-API is not yet supported:

- [overpassquery · Issue #4 · pszufe/OpenStreetMapX.jl · GitHub](https://github.com/pszufe/OpenStreetMapX.jl/issues/4)

for an extra large extract - I am using [osmium tool](https://docs.osmcode.org/osmium/latest/index.html) with multiple steps.

- `osmium extract --polygon POLYGON-FILE [OPTIONS] OSM-FILE`
  - extract OSM data with “11e arrondissement de Paris”` polygon

- `osmium tags-filter [OPTIONS] OSM-FILE FILTER-EXPRESSION …`
  - filter `amenity=fountain`

OSM tagging:

- wiki: [Key:fountain - OpenStreetMap Wiki](https://wiki.openstreetmap.org/wiki/Key:fountain)
- taginfo: [fountain | Keys | OpenStreetMap Taginfo](https://taginfo.openstreetmap.org/keys/fountain)

for a “public” water fountain …

- you have filtered out the ‘access=’ [access | Keys | OpenStreetMap Taginfo](https://taginfo.openstreetmap.org/keys/access) values.

---

<div class="post-metadata">

### Author: ![ImreSamu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/imresamu/32/20677_2.png) [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)
#### Post date: [July 14, 2022, 9:18am UTC](https://discourse.julialang.org/t/finding-features-in-irregular-regions-with-openstreetmapx-jl/84099/3 "2022-07-14T09:18:14Z")

</div>

Alternative - with Julia \<-\> Python packages

- [GitHub - mvexel/overpass-api-python-wrapper: Python bindings for the OpenStreetMap Overpass API](https://github.com/mvexel/overpass-api-python-wrapper)
  - `pip install overpass`

- [GitHub - DinoTools/python-overpy: Python Wrapper to access the Overpass API](https://github.com/DinoTools/python-overpy)
  - `pip install overpy`

---

<div class="post-metadata">

### Author: ![healyp](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@healyp](https://discourse.julialang.org/u/healyp)
#### Post date: [July 14, 2022, 9:33am UTC](https://discourse.julialang.org/t/finding-features-in-irregular-regions-with-openstreetmapx-jl/84099/4 "2022-07-14T09:33:59Z")

</div>

Brill. That gives me a lot to work with. TVM.
