0.0.2 • Published 12 years ago

route-walker v0.0.2

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

route-walker

Walks a route and does stuff. Build Status

Details

Calls Google Directions API for the given start and end point, decodes the polyline and then calls a function for each point.

Install

npm install route-walker

Usage

var walker = require('route-walker');

var start = 'London,UK';
var end = 'Birmingham,UK';

walker.walk(start, end, function(location, done) {
    var lat = location.lat;
    var lng = location.lng;
    
    // Do your thing here...
    
    done();
}, function(e) {
    // end of route...
});
0.0.2

12 years ago

0.0.1

12 years ago