geoadmin / ol3

OpenLayers 3
http://ol3js.org/
Other
11 stars 6 forks source link

Search lv03 #144

Open M2xAy opened 7 years ago

M2xAy commented 7 years ago

Grüezi / Hallo, How can I search lv03 cordinates with api

For example this return me null result: https://api3.geo.admin.ch/rest/services/api/SearchServer?searchText=xxxxx,yyyy&type=locations

Best regards

gjn commented 6 years ago

Hi

reverse geocoding is not possible with our search service.

What exactly is it you want to do?

Gilbert

On 13.07.2017 16:02, M2xAy wrote:

Grüezi / Hallo, How can I search lv03 cordinates with api

For example this return me null result: https://api3.geo.admin.ch/rest/services/api/SearchServer?searchText=xxxxx,yyyy&type=locations

Best regards

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

*

Links:

[1] https://github.com/geoadmin/ol3/issues/144 [2] https://github.com/notifications/unsubscribe-auth/ACdAHZSrr7jlTj3P6PReAtFStlu7iL1pks5sNiNfgaJpZM4OXCan

M2xAy commented 6 years ago

Salü Gilbert, thank you for your answer.

I want search Location/s with lv03 Cordinates or with open adresses like Bahnofstrasse 4 if lv03 does not match results, then I will search with open adress. and I wanna this implement with your Services e.g js and rest But I found now other solution ,w with URL, it is not really beautiful solution thats way I am happy If i can implement with api

gjn commented 6 years ago

Hi

reverse engineering can be done with the identify service [1], using the adress dataset/layer [2]. You can specify a point with a precision or a geometry.

If you want to find coordinates for an address, the search service that you described previously should work.

2 remarks:

Gilbert

[1] https://api3.geo.admin.ch/services/sdiservices.html#identify-features [2] ch.bfs.gebaeude_wohnungs_register

On 13.07.2017 17:24, M2xAy wrote:

Salü Gilbert, thank you for your answer.

I want search Location/s with lv03 Cordinates or with open adresses like Bahnofstrasse 4 if lv03 does not match results, then I will search with open adress. and I wanna this implement with your Services e.g js and rest But I found now other solution ,w with URL, it is not really beautiful solution thats way I am happy If i can implement with api

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

*

Links:

[1] https://github.com/geoadmin/ol3/issues/144#issuecomment-315111920 [2] https://github.com/notifications/unsubscribe-auth/ACdAHQd7NNdbLkAqqW9dO-Y-i-fsY4Obks5sNjaygaJpZM4OXCan

M2xAy commented 6 years ago

Hi Gilbert, thank you very much for your answer.

I solved my Problem with this, I know ist not beautiful but I can accept this.

<iframe src="//map.geo.admin.ch/embed.html?swisssearch=@Model.xxx@Model.xxx@Model.xxx@Model.xxx@Model..xxx[0].aaa@Model.xxx.xxx[0].xxxlimit: 1" frameborder='0' style="width:100%;height:400px"></iframe>

gjn commented 6 years ago

Hi

I don't understand what you did there - and I would be surprised if it worked as you intent.

Gilbert

On 21.07.2017 11:22, M2xAy wrote:

Hi Gilbert, thank you very much for your answer.

I solved my Problem with this, I know ist not beautiful but I can accept this.

<iframe src="//map.geo.admin.ch/embed.html?swisssearch=@Model.xxx@Model.xxx@Model.xxx@Model.xxx@Model.Gemeinde.xxx[0].PLZ @Model.Gemeinde.xxx[0].Ort limit: 1" frameborder='0' style="width:100%;height:400px">

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

*

Links:

[1] https://github.com/geoadmin/ol3/issues/144#issuecomment-316951892 [2] https://github.com/notifications/unsubscribe-auth/ACdAHVnHO7ikct6rUDQMceGdUjWFaPcpks5sQG3qgaJpZM4OXCan

M2xAy commented 6 years ago

Hi Gilbert,

it works :) I replaced my model properties with xxxx, i dont want they are public.