Skip to content

💧 Check if a coordinate is on water via an HTTP API

Notifications You must be signed in to change notification settings

dillonstreator/is-on-water

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-on-water

💧 Check whether a geographic coordinate is on water (seas, lakes, and rivers) with 1m precision. Exposed via an HTTP API allowing for single coordinate (GET /api/is-on-water?lat=${lat}&lon=${lon}) and batches (POST /api/is-on-water with array of coordinate objects) lookups.

Deploy on Railway

Installation

git clone https://github.com/dillonstreator/is-on-water

cd is-on-water

yarn install

## run in development with hot-reload
yarn dev

## OR build and run
yarn build && yarn start

It is expected that a Redis instance is running. You can specify the redis connection url with the environment variable REDIS_URL. You can also use the docker-compose.yaml to spin up a Redis instance with docker-compose up.

About

💧 Check if a coordinate is on water via an HTTP API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published