Search Service for Coordinates in LV95 and WGS84

150 views
Skip to first unread message

Nadja Bernhard

unread,
Jul 27, 2022, 5:41:31 AM7/27/22
to GeoAdminCh API
Hi everyone
We use the https://api3.geo.admin.ch/ among other things for location search queries together with the ArcGIS API for Javascript 4.x. This works wonderfully for the location-types specified at https://api3.geo.admin.ch/services/sdiservices.html#search. Thanks for the cool service!
Additionally, we would like to search for coordinates in a similar way (LV03, LV95, WGS84). At first glance this is an easy task, after all the coordinates are already there. However, the coordinate query should also work, regardless of the notation and minor mishaps. https://map.geo.admin.ch/ can handle a variety of coordinate formats*.
Of course, we would like to use this robust search query. Does this option also exist with the present API? If so, where can I find the documentation for the syntax of the get-requests?

Thank you for your answer.
Best
Nadja Bernhard

*LV95
2'828'850.0, 1'139'750.0 (floating point, with comma and apostrophe)    
2828850 1139750 (integer, without comma and without apostrophe)
1'139'750.0 2'828'850.0 (coordinates the wrong way round)
all possible combinations thereof

WGS84
46.68202, 9.28503 (decimal degrees, with comma)
45.5 8.5 (decimal degrees, without decimal point)    
8.5 45.9 (decimal degree, upside down)
46°32′52.962″N 7°46′27.751″E (degrees minute second, without comma )
46°32 7°46 (degrees minute, with distance and without minute sign)
Other possible combinations

David...@swisstopo.ch

unread,
Jul 28, 2022, 4:10:37 AM7/28/22
to geoadm...@googlegroups.com

Hi Nadja

 

If you want to have those feature in a front end as in https://help.geo.admin.ch/?ids=24  you need to program this in your front end….

--
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/c2d89897-1172-44ce-a25b-6583c8162271n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages