Miss any of our Open RFC calls?Watch the recordings here! »

distance-calculator

1.0.2 • Public • Published

distance-calculator

Google Distance Calculator in For Node.js

Usage:

calc = require('distance-calculator')

//short result format
calc.calcDistance('ohio', 'chicago', 'es', function(result){
	console.log("Short output:" +result)
});

//JSON output
calc.calcDistanceJSON('ohio', 'chicago', 'en', function(result){
	console.log("JSON output:" + result)
});

Install

npm i distance-calculator

DownloadsWeekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avatar