mdauner / closest-location-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Closest Locations API

This Express API has one endpoint /closest-locations, which expects a list of location names. It returns a list of closest locations for each location. More info can be found in the documentation

Demo

The API is deployed on Heroku:

Requirements

For development, only Node.js needs to be installed in your environment.

Install

$ git clone https://github.com/mdauner/closest-location-backend.git
$ cd closest-location-backend
$ yarn install

Set OpenCage Geocoder API Key

$ export OPENCAGE_API_KEY=*your-api-key*

Start & watch

$ yarn dev

Build API documention

$ yarn apidoc

About


Languages

Language:JavaScript 100.0%