GIScience / openrouteservice

🌍 The open source route planner api with plenty of features.
https://openrouteservice.org
GNU General Public License v3.0
1.43k stars 391 forks source link

Isochrone response summary gives wrong 'range' when units != m #91

Closed nilsnolde closed 6 years ago

nilsnolde commented 6 years ago

When specifying units=km/mi, the returned request summary specifies range in meter values.

Here a response for range=6 and units=mi:

...
 "service": "isochrones",
    "query": {
      "ranges": "9656.039999999999",
      "profile": "driving-car",
      "locations": [
        [
          8.34234,
          48.23424
        ]
      ],
      "units": "mi",
      "range_type": "distance",
      "location_type": "start"
    },
    "attribution": "openrouteservice.org | OpenStreetMap contributors",
    "timestamp": 1517404861719
  }
}
HendrikLeuschner commented 6 years ago

Fixed in #223