All Projects β†’ jcblw β†’ Distance.js

jcblw / Distance.js

πŸš— Small Library for calculating distances between points.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Distance.js

geojson-python-utils
Python helper functions for manipulating GeoJSON
Stars: ✭ 86 (+760%)
Mutual labels:  distance
Vincenty-Excel
Thaddeus Vincenty's Direct and Inverse formulae for geodesic calculations in Excel (distance, azimuth, latitude, longitude).
Stars: ✭ 29 (+190%)
Mutual labels:  distance
Stringmetric
🎯 String metrics and phonetic algorithms for Scala (e.g. Dice/Sorensen, Hamming, Jaccard, Jaro, Jaro-Winkler, Levenshtein, Metaphone, N-Gram, NYSIIS, Overlap, Ratcliff/Obershelp, Refined NYSIIS, Refined Soundex, Soundex, Weighted Levenshtein).
Stars: ✭ 481 (+4710%)
Mutual labels:  distance
Automated-Social-Distancing-Monitoring
automated social distancing monitoring system
Stars: ✭ 1 (-90%)
Mutual labels:  distance
TriangleMeshDistance
Header only, single file, simple and efficient C++11 library to compute the signed distance function (SDF) to a triangle mesh
Stars: ✭ 55 (+450%)
Mutual labels:  distance
Three Mesh Bvh
A BVH implementation to speed up raycasting against three.js meshes.
Stars: ✭ 302 (+2920%)
Mutual labels:  distance
similarity measures
Quantify the difference between two arbitrary curves in space
Stars: ✭ 140 (+1300%)
Mutual labels:  distance
Dtw
DTW (Dynamic Time Warping) python module
Stars: ✭ 770 (+7600%)
Mutual labels:  distance
dodgr
Distances on Directed Graphs in R
Stars: ✭ 106 (+960%)
Mutual labels:  distance
Pyemd
Fast EMD for Python: a wrapper for Pele and Werman's C++ implementation of the Earth Mover's Distance metric
Stars: ✭ 361 (+3510%)
Mutual labels:  distance
pubg mobile memory hacking
Pubg Mobile Emulator Gameloop Memory Hacking C++ Source Code. Ex: Name, Cords, Bones, Weapons, Items, Box, Drop, Aimbot etc.
Stars: ✭ 69 (+590%)
Mutual labels:  distance
Multi-Face-Comparison
This repo is meant for backend API for face comparision and computer vision. It is built on python flask framework
Stars: ✭ 20 (+100%)
Mutual labels:  distance
Cheap Ruler
Fast approximations for common geodesic measurements 🌐
Stars: ✭ 334 (+3240%)
Mutual labels:  distance
NearestNeighborDescent.jl
Efficient approximate k-nearest neighbors graph construction and search in Julia
Stars: ✭ 34 (+240%)
Mutual labels:  distance
Whereami
Uses WiFi signals πŸ“Ά and machine learning to predict where you are
Stars: ✭ 4,878 (+48680%)
Mutual labels:  distance
dist
πŸ—ΊοΈ Python/C API extension module that computes distance between two coordinates on the world map
Stars: ✭ 13 (+30%)
Mutual labels:  distance
similar-english-words
Give me a word and I’ll give you an array of words that differ by a single letter.
Stars: ✭ 25 (+150%)
Mutual labels:  distance
Pas Coogeo
Pas-CooGeo is coordinate geometry library for Pascal.
Stars: ✭ 25 (+150%)
Mutual labels:  distance
Geolocator
A utility for getting geo-location information via HTML5 and IP look-ups, geocoding, address look-ups, distance and durations, timezone information and more...
Stars: ✭ 598 (+5880%)
Mutual labels:  distance
Geolib
Zero dependency library to provide some basic geo functions
Stars: ✭ 3,675 (+36650%)
Mutual labels:  distance

Distance.js Build Status

Greenkeeper badge

A Small Utility to calulate distance from a latitude and longitude points.

Warning Javascript in general is not the greatest at math when dealing with large numbers... You have been warned

Distance().from([lat, lng]).to([lat, lng]).unit('miles')
// returns kilometers by default
var home = Distance().from([lat, lng]);
var nearby = [];
var locations = [/*...*/];
for(var i = 0; i < locations.length; i += 1){
  var location = locations[i];
  // use the same instance over and over
  if(home.to(location.center).unit('miles') < 3){
    nearby.push(location)
  }  
}
Available length units
  • kilometers
  • miles
  • feet

Unit conversion is handled in the prototype of Number and is subject to change

more methods to be added

Development

All new features for distance.js must be accompanied by a test to prove feature works. Bug fixes do not need new test but it is recommended.

Install packages

Install Grunt

npm install
Grunt methods
grunt build
grunt test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].