Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junosuarez/bikesy
npm module: get bike directions form the bikesy.com api
https://github.com/junosuarez/bikesy
Last synced: 8 days ago
JSON representation
npm module: get bike directions form the bikesy.com api
- Host: GitHub
- URL: https://github.com/junosuarez/bikesy
- Owner: junosuarez
- License: mit
- Created: 2012-12-25T06:49:44.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2012-12-25T06:57:34.000Z (almost 12 years ago)
- Last Synced: 2024-04-09T23:08:37.636Z (7 months ago)
- Language: JavaScript
- Size: 340 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bikesy
get bike directions form the bikesy.com api## usage
var bikesy = require('bikesy')
var origin = {lat: 37.79099655151367, lon: -122.39909362792969}
var destination = {lat: 37.78794572301525, lon: -122.40700721740723}bikesy(
origin,
destination,
function (err, result) {
console.log(result)
}
)Returns an object that looks like
{ steps:
[ { direction: 'start northwest',
location: '1st Street',
lat: 37.79099655151367,
lon: -122.39909362792969 },
{ direction: 'left',
location: 'Market Street',
lat: 37.79106903076172,
lon: -122.39918518066406 }, ],
totalElevation: 0,
totalDistance: 26.358399790548397 }## installation
from npm$ npm install bikesy
## license
MIT. (c) 2012 jden - Jason Denizac . http://jden.mit-license.org/2012## contact
github: jden
email: [email protected]
freenode irc: jden
twitter: @lejden