-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
205 lines (193 loc) Β· 6.46 KB
/
index.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="theme-color" content="#000000" />
<link rel="manifest" href="./manifest.webmanifest" />
<link rel="shortcut icon" href="./favicon.png" />
<link rel="stylesheet" href="./src/index.scss" />
<title>Airbnb GeoSearch with Typesense</title>
<meta
name="description"
content="Browse and search through a snapshot of Airbnb listings in popular cities around the world."
/>
<meta
name="keywords"
content="airbnb, geosearch, search, search engine, typesense"
/>
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://airbnb-geosearch.typesense.org" />
<meta
property="og:title"
content="Instantly Search Airbnb listings with Typesense"
/>
<meta
name="og:description"
content="Instantly Search and Browse AirBNB listings by features and keywords with Typesense."
/>
<meta property="og:image" content="./images/opengraph_banner.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:title"
content="Instantly Search Airbnb listings with Typesense"
/>
<meta
name="twitter:description"
content="Instantly Search and Browse AirBNB listings by features and keywords with Typesense."
/>
<meta name="twitter:image" content="./images/opengraph_banner.png" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-116415641-11"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-116415641-11');
</script>
</head>
<body>
<div class="row no-gutters w-100 m-0">
<div class="col-sm-8 px-0">
<div id="map"></div>
</div>
<div class="col-sm px-0">
<div id="geosearch-ui" class="container-fluid overflow-auto px-4">
<div class="row mt-4">
<div class="col-sm">
<h1 class="mb-1">
GeoSearch<br />
1M Airbnb Listings
</h1>
<div class="mt-3">
Powered by
<a
href="https://github.com/typesense/typesense"
target="_blank"
alt="Typesense"
class="ms-1"
>
<img src="images/typesense.svg" width="114" height="25" />
</a>
</div>
<div class="text-muted mt-2">
<a
href="#"
role="button"
data-bs-toggle="modal"
data-bs-target="#aboutModal"
>About</a
>
β’
<a
href="https://github.com/typesense/showcase-airbnb-geosearch"
target="_blank"
>Source Code</a
>
</div>
<div id="stats" class="mt-sm-4 mt-3"></div>
<h5 class="mt-4 mt-sm-5">Price</h5>
<div id="price-slider" class="px-3 pb-1"></div>
<h5 class="mt-4 mt-sm-5">Property Type</h5>
<div id="property-type-refinement"></div>
<h5 class="mt-4 mt-sm-5">Amenities</h5>
<div id="amenities-refinement"></div>
<h5 class="mt-4 mt-sm-5">Beds</h5>
<div id="beds-refinement" class="mb-5"></div>
</div>
</div>
</div>
</div>
</div>
<!-- About Modal -->
<div
id="aboutModal"
class="modal fade"
tabindex="-1"
aria-labelledby="aboutLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-lg">
<div class="modal-content text-dark">
<div class="modal-header">
<h5 class="modal-title font-weight-normal" id="aboutLabel">
About
</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<p>
This browsing experience is powered by
<a href="https://typesense.org" target="_blank">Typesense</a>
which is a fast,
<a href="https://github.com/typesense/typesense" target="_blank"
>open source</a
>
typo-tolerant search-engine. It is an open source alternative to
Algolia and an easier-to-use alternative to ElasticSearch.
</p>
<p>
The data is from
<a href="http://insideairbnb.com/" target="_blank"
>insideairbnb.com/</a
>
and is indexed in Typesense.
</p>
<p>Some technical details:</p>
<ul>
<li>
The app was built using the
<a
href="https://github.com/typesense/typesense-instantsearch-adapter"
target="_blank"
>
Typesense Adapter for InstantSearch.js</a
>
and is hosted on Cloudflare Pages.
</li>
<li>
The search backend is powered by a geo-distributed 3-node
Typesense cluster running on
<a href="https://cloud.typesense.org" target="_blank"
>Typesense Cloud</a
>, with nodes in Oregon, Frankfurt and Mumbai.
</li>
<li>
Here is the source-code:
<a
href="https://github.com/typesense/showcase-airbnb-geosearch"
target="_blank"
>https://github.com/typesense/showcase-airbnb-geosearch</a
>
</li>
</ul>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-primary"
data-bs-dismiss="modal"
>
Close
</button>
</div>
</div>
</div>
</div>
<script type="module" src="./src/app.js"></script>
</body>
</html>