https://github.com/joeyklee/tinysearch-geocoder-demo
A tiny demo using tinysearch to create a geocoder search in browser
https://github.com/joeyklee/tinysearch-geocoder-demo
Last synced: 2 months ago
JSON representation
A tiny demo using tinysearch to create a geocoder search in browser
- Host: GitHub
- URL: https://github.com/joeyklee/tinysearch-geocoder-demo
- Owner: joeyklee
- Created: 2024-03-27T23:27:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-28T00:43:25.000Z (about 1 year ago)
- Last Synced: 2025-02-08T15:22:45.493Z (4 months ago)
- Language: JavaScript
- Homepage: https://joeyklee.github.io/tinysearch-geocoder-demo/
- Size: 5.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README

A tiny, quick and dirty demo using [tinysearch](https://github.com/tinysearch/tinysearch/tree/master) to create a geocoder a place name search tool using wasm for city level search in the browser
We could optimize this to be smaller, but for now this loads ~5.5mb of data into the browser and takes about 12ms to load the wasm file and 80ms to load the page.
Search results against 47K cities - ~30-50ms
Demo adpated from the `wasm_output` of https://github.com/tinysearch/tinysearch?tab=readme-ov-file#usage
## Data
* derived from https://simplemaps.com/data/world-cities --> 47,000 city entries!## Links to:
* geojson.io## run it locally
```
python3 -m http.server
```