Skip to content

radjivF/node-geolocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node-geolocation

NPM NPM

GitHub version Build Status [Dependencies Status] (https://david-dm.org/radjivC/node-geolocation) Code Climate Inline docs

How to use google maps knowledge with node.js https://www.npmjs.com/package/node-geolocation

Installation

npm install node-geolocation

Usage example

Minimun to use

var geolocation = require('node-geolocation');

Distance function

var distance = geolocation.distanceBetweenTwoCoord('-1,-2','3,4');
//get distance between two coord
var coord =  geolocation.adressToCoord('Paris, France');
//get latitude and longitude 
var distance = geolocation.distanceBetweenTwoAdress('Paris, France','New-York city');
//get distance between two adress 

Licence

MIT License. See LICENSE for details.

Enjoy !!!

About

Npm module for Geolocation stuff based on google maps API technology

Resources

License

Stars

Watchers

Forks

Packages

No packages published