osrm-py icon indicating copy to clipboard operation
osrm-py copied to clipboard

fix (_encode_pairs): use dedicated float format

Open alaurent34 opened this issue 1 year ago • 0 comments

If just using function str(), it will not force float ot be written without scientific notation. Thus, it will not be accepted by OSRM API.

For example, coordinates '0.0000334622' translate to 3.34622E5 when printed using str, which is not accepted by OSRM

alaurent34 avatar Apr 05 '24 19:04 alaurent34