algolia / demo-geo-search

Demo code illustrating the geo search features of Algolia
https://preview.algolia.com/geo-search/
MIT License
40 stars 23 forks source link

Geo-Search Demo

This is a sample project implementing a geo-search based website with Google Maps and Algolia.

Geo search You can also try the live demo or follow the in-depth guide.

Features

Usage

We've included some credentials in the code allowing you to test the demo without any Algolia account. If you want to replicate this demo using your own Algolia credentials, you can use the npm run import script to send the data and configure the indices. You can also have a look at the data sent to the index by looking at the ./data/record.json file.

Usage:

bundle install
npm run import YourApplicationID YourAPIKey YourIndexName

Then, you'll need to replace the demo credentials with your own:

Tutorial

Follow this tutorial to learn how this implementation works and how it has been built using the Algolia's Javascript API client and its helper.

Data Set

We've used a list of 3,282 airports from OpenFlight.org.

Run and develop locally

To hack and develop on this current repository:

git clone git@github.com:algolia/demo-geo-search.git
cd ./demo-geo-search
npm install
npm run dev