Reverse Geocoding

135 views
Skip to first unread message

Claudio Siegenthaler

unread,
Feb 14, 2024, 12:42:46 PM2/14/24
to GeoAdminCh API
Hi There!

is it possible to reverse encode locations over the api? I could not find an example or something in the documentation...

somehow like:

and then receive address/location information about the place: gemeinde, kanton, street, etc...

Best,
Claudio 

rob...@redo2oo.ch

unread,
Feb 14, 2024, 3:48:04 PM2/14/24
to geoadm...@googlegroups.com, Claudio Siegenthaler
I once had something like this for several 100 000 points.
If I remember correctly, it is some 15 years ago, I used google maps for it ...

robert
--
You received this message because you are subscribed to the Google Groups "GeoAdminCh API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/3bc74754-4eec-49f0-8d0f-7c705a2d0de4n%40googlegroups.com.


GeoAdminCh API

unread,
Feb 15, 2024, 2:45:21 AM2/15/24
to GeoAdminCh API

Claudio Siegenthaler

unread,
Feb 15, 2024, 5:19:24 AM2/15/24
to GeoAdminCh API
Hi Jurgen,

yes thanks, basically this is it. playing around with your example, I post here an option for lv95 and wgs84, in case someone can re-use it:

wgs84: https://api3.geo.admin.ch/rest/services/api/MapServer/identify?geometryType=esriGeometryPoint&returnGeometry=false&sr=4326&geometry=7.456901075,46.946662916&imageDisplay=0,0,0&mapExtent=0,0,0,0&tolerance=0&layers=all:ch.swisstopo-vd.geometa-gemeinde
lv95: https://api3.geo.admin.ch/rest/services/api/MapServer/identify?geometryType=esriGeometryPoint&geometry=2601390.822,1199508.775&imageDisplay=100,100,100&mapExtent=0,0,100,100&tolerance=5&layers=all:ch.swisstopo-vd.geometa-gemeinde&returnGeometry=false&sr=2056

in the lv95 example I used the tolerance parameter together with imageDisplay and mapExtent to sharpen the results

in case streetnames, zipcodes and housenumbers are necessary, consider using the layer all:ch.bfs.gebaeude_wohnungs_register (like Jurgen did) instead of all:ch.swisstopo-vd.geometa-gemeinde

Thanks and Best Regards,
Claudio

Reply all
Reply to author
Forward
0 new messages