Created
April 22, 2012 22:04
-
-
Save raytiley/2467207 to your computer and use it in GitHub Desktop.
Design Phase 4 - Routing Service Module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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