Re: [OSRM-talk] Small ways get small speeds

2018-03-02 Thread Daniel Patterson
Hi François, No, we likely won't change the storage precision any time soon. OpenStreetMap itself only stores Here is the constant that OSRM uses to store lon/lat decimal values in integer format: https://github.com/Project-OSRM/osrm-backend/blob/master/include/util/coordinate.hpp#L44 We

Re: [OSRM-talk] Small ways get small speeds

2018-02-28 Thread Daniel Patterson
Hi François, What you are seeing is rounding error. Internally, OSRM only stores the "duration" of each segment, with a resolution of 0.1 seconds. On the map, the speed is calculated by taking the length of the segment, and dividing it by the "duration" value. We store longitude/latitude

[OSRM-talk] Small ways get small speeds

2018-02-28 Thread François Lacombe
Hi, While investigating for flaws in a custom profile I'm trying to write, I discovered that arbitrary small ways got strange speed regarding the rules I used. Here is an extract from osrm-frontend debug https://imgur.com/a/L8coz All segments on the red line have the same attributes. I don't