eklem / geo-search-helper

Helper functions for geographical search, filtering and sorting
MIT License
2 stars 0 forks source link

HTML Demo #8

Open eklem opened 1 year ago

eklem commented 1 year ago

Just from/to lat/lon -> distance calculation.

eklem commented 1 year ago

Use geographical center of all the countries of the world. Then use matcher on names as search.

eklem commented 1 year ago

Functions needed:

Index data

Search data

eklem commented 1 year ago

Skip the indexing and searching. Just use the user's position and sort the countries of the world according to that position. Then do one that shows all results, and one that shows results within a given distance.

Will fit well with the documentation illustrations.

eklem commented 1 year ago

Ok, it needs search-index as part of the demo. So index stuff if not already, and then create a matcher for that content.

Two different maps, based on the two different methods of map boundaries:

eklem commented 1 year ago

Search part of demo. Just needs to show if any documents are indexed or not and an index-button.

Screenshot 2023-07-01 at 09 50 16
eklem commented 1 year ago

With indexing + mobile version

Screenshot 2023-07-01 at 12 12 29 Screenshot 2023-07-01 at 12 12 38
eklem commented 1 year ago

Use ArrowJS - https://www.arrow-js.com/docs/ as "framework"

eklem commented 11 months ago

To make this easier, skip the map, just use the search engine and sort + cutoff the list.

eklem commented 11 months ago
eklem commented 11 months ago

Leafletjs marker seems to have what I need. Add one that is current position and add the others with different color and maybe a number. Set them all to marker.dragging.disable();.

eklem commented 1 month ago

Move example code to geo-search-example