mf-chsdi3 icon indicating copy to clipboard operation
mf-chsdi3 copied to clipboard

Add "Strassennamen" to swisssearch

Open davidoesch opened this issue 5 years ago • 3 comments

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:

davidoesch avatar Apr 29 '19 06:04 davidoesch

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

mariokeusen avatar Apr 29 '19 08:04 mariokeusen

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

ltclm avatar May 14 '19 18:05 ltclm

maybe in the next viewer @stefan biegger

davidoesch avatar Feb 07 '23 08:02 davidoesch