blob: 78708376a63d5a06520031e235e0135ef14bf300 (
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
25
26
27
28
29
30
31
32
|
# 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
- [x] Init map all one function
- [x] City of London is missing
- [] Replace null values for lat,lon with real data
- [] Don't return \_highlightResult?
- [x] Run search on first load
- [] bundle all remove markers, query and result render into one function
- [] maxmapspace and initialrectbounds are the wrong way around
- [] Sort out generatemap arguments

|