Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Strassennamen" to swisssearch #3173

Open
7 tasks
davidoesch opened this issue Apr 29, 2019 · 3 comments
Open
7 tasks

Add "Strassennamen" to swisssearch #3173

davidoesch opened this issue Apr 29, 2019 · 3 comments
Assignees

Comments

@davidoesch
Copy link
Contributor

davidoesch commented Apr 29, 2019

as Service user of swisssearch and Viewer map.geo.admin.ch

I want to search for a road (not address) of ch.swisstopo.amtliches-strassenverzeichnis of

because I want to find roads and show its extent (highlight)

accpetance criteria

  • search result: always show first the road , then the address
  • highlight the road on mouseover and activation of the result
  • updates are in sync with ch.swisstopo.amtliches-strassenverzeichnis

Deliverables:

  • swissssearch add an origin for roads, add in default search
  • highlight of results

out of scope:

  • differentiate bewtween validated and non validated

How to Demo:

  • service : swisssearch
  • search : map viewer

Backlog:

@mariokeusen
Copy link
Contributor

This will partly be solved with the name csv table for swisssearch which is available together with the full update of SMR10 [1]
[1] \v0t0010a.adr.admin.ch\gdwh\raster\SMR10_LV95\DOCS > SMR10_LV95_NameExport_CH62_2019-04-17.csv

@ltclm
Copy link
Contributor

ltclm commented May 14, 2019

highlight the road on mouseover and activation of the result

this is not possible with swissearch, that's only possible with layer/feature search. which is already the case when you add the layer and do a layer/feature search. But even there you have to click on the result before the feature geometry is highlighted.

swisssearch is not linked to any chsdi model and cannot deliver a feature id for the highlight, we can only add a centroid coordinate to the sphinx index, just like it's implemented for the other origins.

so the following can be done:

  • use layer/feature search for object highlight.
  • add new origin roads to swisssearch but you only have the centroid of the feature

search result: always show first the road , then the address

that's doable. the current origin order:

rank -> origin
--------------
1 -> zipcode
2 -> gg25
3 -> district
4 -> kantone
5 -> gazetteer (swissnames objektart = 'Ort')
6 -> gazetteer (swissnames objektart != 'Ort')
7 -> address
8 -> gazetteer (haltestellen)
10 -> parcel

will be changed to

rank -> origin
--------------
1 -> zipcode
2 -> gg25
3 -> district
4 -> kantone
5 -> gazetteer (swissnames objektart = 'Ort')
6 -> gazetteer (swissnames objektart != 'Ort')
7 -> road
8 -> address
9 -> gazetteer (haltestellen)
10 -> parcel

updates are in sync with ch.swisstopo.amtliches-strassenverzeichnis

that's doable, sphinx update trigger will be the table deploy of stopo.vd.streetnames

@danduk82 danduk82 removed their assignment Feb 14, 2020
@davidoesch
Copy link
Contributor Author

maybe in the next viewer @Stefan biegger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants