Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new OSRM API #1261

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file modified app/assets/images/routing-sprite.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 15 additions & 9 deletions app/assets/images/routing-sprite.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions app/assets/javascripts/index/directions/mapzen.js
@@ -1,12 +1,12 @@
function MapzenEngine(id, costing) {
var MZ_INSTR_MAP = [
0, // kNone = 0;
14, // kStart = 1;
14, // kStartRight = 2;
14, // kStartLeft = 3;
8, // kDestination = 4;
8, // kDestinationRight = 5;
8, // kDestinationLeft = 6;
8, // kStart = 1;
8, // kStartRight = 2;
8, // kStartLeft = 3;
14, // kDestination = 4;
14, // kDestinationRight = 5;
14, // kDestinationLeft = 6;
0, // kBecomes = 7;
0, // kContinue = 8;
1, // kSlightRight = 9;
Expand Down
4 changes: 2 additions & 2 deletions app/assets/javascripts/index/directions/osrm.js
Expand Up @@ -59,8 +59,8 @@ function OSRMEngine() {
'trun straight': 0,
'roundabout': 10,
'rotary': 10,
'depart': 9,
'arrive': 8
'depart': 8,
'arrive': 14
};
var transformed_steps = input_steps.map(function(step, idx) {
var maneuver_id;
Expand Down