Skip to content

A simple Javascript/Node library to find the closest point of my current location given a set of point.

Notifications You must be signed in to change notification settings

jbpin/geo-trouvetou

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geo-trouvetou

A simple Javascript/Node library to find the closest point of my current location given a set of point.

How to use it

See example app attached for a real example

var geo = require("geotrouvetou")

var tree = new geo.GeoTrouvetou();

tree.addPoint(new geo.GeoPoint(45.508670,-73.553993));

tree.findClosest(new geo.GeoPoint(40.714353,-74.005973));

Installation

npm install geotrouvetou

feel free to send me a pull request and to share this project

About

A simple Javascript/Node library to find the closest point of my current location given a set of point.

Resources

Stars

Watchers

Forks

Packages

No packages published