I think we should remove geojson responses and only go with polylines.
Arguments for removal:
Arguments against removal:
lat,lon
instead of the lon,lat
we use everywhere. This is usually not a problem when developers use libraries for parsing the polyline./cc @TheMarex
If you're concerned with response sizes and making OSRM leaner we should talk about
Hi. Please, do not remove GeoJSON support. I think, that you underestimate what this format means for other developers! I want to add several additional arguments, against removal:
By the way. Where you switched to precision 5? I found only precision 6 in sources. https://github.com/Project-OSRM/osrm-backend/blob/master/include/util/coordinate.hpp#L43
@gardster internally everything is precision 6, but when we emit polyline we support the google format of precision 5. We also have polyline6
which gives you the full internal precision.
I think GeoJSON is here to stay after all.
Most helpful comment
Hi. Please, do not remove GeoJSON support. I think, that you underestimate what this format means for other developers! I want to add several additional arguments, against removal:
By the way. Where you switched to precision 5? I found only precision 6 in sources. https://github.com/Project-OSRM/osrm-backend/blob/master/include/util/coordinate.hpp#L43