blob: d18358cea1d58a8a55f4f68f2fabefd703914990 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# London pub search
Better search for every pub within the M25.
Current searches for pubs in the UK are a bit rubbish. This takes inspiration from this [original Algolia project](https://preview.algolia.com/geo-search/).
## Process
1. Search for all pubs within the M25 and add to an Algolia index, get lat and long at the same time
2. Google sucked at this, so used Wyre api
3. Uploaded to Algolia
4. Limite the map to London using restriction
5. Draw a rectangle
6. Listen to rectangle resize events
7. Query Algolia with the bounds
8. Limit response fields, we only really need the geoloc
9. Remove all markers when looking the markers
10. Debounce the query
## To do:
[x] Get all pubs using an API [] Init map all one function [] City of London is missing [] Replace null values for lat,lon with real data [] Change search client to just [] Don't return \_highlightResult? [] Run search on first load [] Clear listeners [] remove duplication of search requests when selecting shape [] shape construction should probably be in data controller [] bundle all remove markers, query and result render into one function

|