aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 49e0b7d5a7d12bee37b36758e13d23bcd9013888 (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
# 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
[] 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

![alt text](image.png)