Project-OSRM / osrm-backend

Open Source Routing Machine - C++ backend
http://map.project-osrm.org
BSD 2-Clause "Simplified" License
6.2k stars 3.29k forks source link

can't get unencoded geometry in json output anymore #533

Closed karme closed 11 years ago

karme commented 11 years ago

after updating to latest master i can't get the unencoded geometry anymore. Previously the undocumented no=cmp. What I am supposed to pass in now? Looking at APIWrapper.h I guess it should be compression=false ?

But there seems to be a typo?

- query = (_(zoom | output | jsonp | checksum | location | hint | compressed_geometry | language | instruction | alt_route | old_API) ) ;

?

DennisOSRM commented 11 years ago

Please try the latest source from develop branch. It should be "compression=false".

DennisOSRM commented 11 years ago

Btw, it is almost always faster to decode the geometry on the client since the transfer of an uncompressed geometry takes quite long.

karme commented 11 years ago

Project OSRM notifications@github.com writes:

Please try the latest source from develop branch. It should be "compression=false".

cherry picked: 86a5bbac5137b1580fb7e5ce2e9518a67030c853 f7fdb8b54e2120d5d72af618248788c9fa37bf08

works, thanks

karme commented 11 years ago

Project OSRM notifications@github.com writes:

Btw, it is almost always faster to decode the geometry on the client since the transfer of an uncompressed geometry takes quite long.

i use that switch in a api wrapper which has its own google encoder (https://github.com/karme/Project-OSRM/tree/apiwrapper)

btw: there is no switch to disable douglas-peucker, right?

(side-note: i am still not convinced the google encoding itself [not the douglas-peucker part] is really worth it, if http compression is used)

emiltin commented 11 years ago

what does the api wrapper do?

karme commented 11 years ago

Emil Tin notifications@github.com writes:

what does the api wrapper do?

boring remaping of input parameters and output format

maybe the only interesting part: adding elevation/distance to output

DennisOSRM commented 11 years ago

btw: there is no switch to disable douglas-peucker, right?

Try z18 to reduce polyline generalization to a minimum.