]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'openstreetmap/pull/1437'
authorTom Hughes <tom@compton.nu>
Sun, 5 Mar 2017 10:34:23 +0000 (10:34 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 5 Mar 2017 10:34:23 +0000 (10:34 +0000)
1  2 
app/assets/javascripts/index/directions/graphhopper.js
config/locales/en.yml

index 7a5d77d9bd50eae15c8be46df1cffdf5711553e2,71161c59132ca2370d7e543c0c91e21e4789a442..4bb4e4ed6bc160870d50c4ae1e1845c04f42529c
@@@ -49,16 -49,12 +49,16 @@@ function GraphHopperEngine(id, vehicleT
              instrText += instr.text;
              var latLng = line[instr.interval[0]];
              var distInMeter = instr.distance;
 +            var lineseg = [];
 +            for (var j = instr.interval[0]; j <= instr.interval[1]; j++) {
 +              lineseg.push({lat: line[j][0], lng: line[j][1]});
 +            }
              steps.push([
 -              {lat: latLng.lat, lng: latLng.lng},
 +              {lat: latLng[0], lng: latLng[1]},
                instrCode,
                instrText,
                distInMeter,
 -              []
 +              lineseg
              ]); // TODO does graphhopper map instructions onto line indices?
            }
  
@@@ -66,7 -62,9 +66,9 @@@
              line: line,
              steps: steps,
              distance: path.distance,
-             time: path.time / 1000
+             time: path.time / 1000,
+             ascend: path.ascend,
+             descend: path.descend
            });
          },
          error: function () {
diff --combined config/locales/en.yml
index d71568ceb50e7852ce327c4bf10ffb3ac126265c,4cc81750cd63598ea3cddc4f729475869239fa97..7edeea7d0cbd0b49c1d5de59380d52af4b621c7b
@@@ -933,11 -933,12 +933,11 @@@ en
      intro_header: Welcome to OpenStreetMap!
      intro_text: OpenStreetMap is a map of the world, created by people like you and free to use under an open license.
      intro_2_create_account: "Create a user account"
 -    partners_html: "Hosting is supported by %{ucl}, %{ic} and %{bytemark}, and other %{partners}."
 +    partners_html: "Hosting is supported by %{ucl}, %{bytemark} and %{ic}, and other %{partners}."
      partners_ucl: "the UCL VR Centre"
      partners_ic: "Imperial College London"
      partners_bytemark: "Bytemark Hosting"
      partners_partners: "partners"
 -    partners_url: "http://wiki.openstreetmap.org/wiki/Partners"
      osm_offline: "The OpenStreetMap database is currently offline while essential database maintenance work is carried out."
      osm_read_only: "The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out."
      donate: "Support OpenStreetMap by %{link} to the Hardware Upgrade Fund."
        header: "%{from_user} has sent you a message through OpenStreetMap with the subject %{subject}:"
        footer_html: "You can also read the message at %{readurl} and you can reply at %{replyurl}"
      friend_notification:
 +      hi: "Hi %{to_user},"
        subject: "[OpenStreetMap] %{user} added you as a friend"
        had_added_you: "%{user} has added you as a friend on OpenStreetMap."
        see_their_profile: "You can see their profile at %{userurl}."
      require_moderator:
        not_a_moderator: "You need to be a moderator to perform that action."
      setup_user_auth:
 +      blocked_zero_hour: "You have an urgent message on the OpenStreetMap web site. You need to read the message before you will be able to save your edits."
        blocked: "Your access to the API has been blocked. Please log-in to the web interface to find out more."
        need_to_see_terms: "Your access to the API is temporarily suspended. Please log-in to the web interface to view the Contributor Terms. You do not need to agree, but you must view them."
    oauth:
        invalid: "The authorization token is not valid."
      revoke:
        flash: "You've revoked the token for %{application}"
 +    permissions:
 +      missing: "You have not permitted the application access to this facility"
    oauth_clients:
      new:
        title: "Register a new application"
      helper:
        time_future: "Ends in %{time}."
        until_login: "Active until the user logs in."
 +      time_future_and_until_login: "Ends in %{time} and after the user has logged in."
        time_past: "Ended %{time} ago."
      blocks_on:
        title: "Blocks on %{name}"
          comment: Comment
      edit_help: Move the map and zoom in on a location you want to edit, then click here.
      directions:
+       ascend: "Ascend"
        engines:
          graphhopper_bicycle: "Bicycle (GraphHopper)"
          graphhopper_foot: "Foot (GraphHopper)"
          mapzen_bicycle: "Bicycle (Mapzen)"
          mapzen_car: "Car (Mapzen)"
          mapzen_foot: "Foot (Mapzen)"
+       descend: "Descend"
        directions: "Directions"
        distance: "Distance"
        errors:
        nothing_found: No features found
        error: "Error contacting %{server}: %{error}"
        timeout: "Timeout contacting %{server}"
 +    context:
 +      directions_from: Directions from here
 +      directions_to: Directions to here
 +      add_note: Add a note here
 +      show_address: Show address
 +      query_features: Query features
 +      centre_map: Centre map here
    redaction:
      edit:
        description: "Description"