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