Skip to content

fleetlog/route-walker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 passing through given waypoints 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...
}
, [waypoints]);

About

Walks a route and does stuff

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%