Skip to content

Instantly share code, notes, and snippets.

@raytiley
Created April 22, 2012 22:04
Show Gist options
  • Save raytiley/2467207 to your computer and use it in GitHub Desktop.
Save raytiley/2467207 to your computer and use it in GitHub Desktop.
Design Phase 4 - Routing Service Module
exports.getRoute = function(startLat, startLon, endLat, endLon, routeType, costTable, callback(err, data)) {
//Return GeoJson route from pgRouting
//Execute callback
}
exports.updateCost = function(lat, lon, costTable, costDelta) {
//Update the cost of closest edge in costTable by costDelta
//Execute callback
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment