Open-EO / openeo-web-editor

An interactive and easy to use web-based editor for the OpenEO API.
https://editor.openeo.org
Apache License 2.0
12 stars 17 forks source link

Feature request: bounding box from address/city for load_collection #298

Closed clausmichele closed 1 year ago

clausmichele commented 1 year ago

It would be cool to have the possibility to select a bounding box (or geoJSON polygon) typing the name of a city instead of zooming in and selecting manually. OpenStreetMaps would allow us to do that, with a query like: https://nominatim.openstreetmap.org/search?q=Trento&format=json&polygon=1&addressdetails=1

not sure how to handle results that return multiple items. Maybe we could show the "display_name" field and let the user choose from the proposed ones.

m-mohr commented 1 year ago

Yeah, I also would like to get that. For the openEO Web Editor this could be an option, but for the openEO Platform Editor we would likely need a commercial license.

m-mohr commented 1 year ago

Potential plugin to use: https://github.com/jonataswalker/ol-geocoder - but seems unmaintained and as such doesn't support OL7: https://github.com/jonataswalker/ol-geocoder/pull/259

Maintained fork: https://github.com/kirtan-desai/ol-geocoder

clausmichele commented 1 year ago

Something like this was already available in the openEO Android app, was that using google?

m-mohr commented 1 year ago

I guess they had a paid subscription for Solenix...

clausmichele commented 1 year ago

It seems they were using OSM: https://github.com/Open-EO/openeo-demonstrator-mobile-app/search?q=location But again, as you said we can't use it for openEO Platform since it's commercial I guess. Here there are some commercial alternatives listed: https://help.openstreetmap.org/questions/77653/switch-to-commercial-nominatim-service-by-simply-exchanging-api-url-in-my-program

m-mohr commented 1 year ago

Geocoding has been implemented and is available on editor.openeo.org, please let me know what you think @clausmichele.

image

For openEO Platform we may consider https://rapidapi.com/GeocodeSupport/api/forward-reverse-geocoding/pricing later.

clausmichele commented 1 year ago

Wonderful! It works fine! You're too efficient Matthias 🥇