Tomonobu Saito
f9ee74d78e
Add x range check to avoid data corruption.
2019-10-04 16:47:31 +09:00
Tomonobu Saito
eef072234e
update delim chars
2019-10-04 15:14:20 +09:00
Tomonobu Saito
432d49e23d
bugfix: support multiple delimitor.
2019-10-04 13:50:13 +09:00
Tomonobu Saito
e4aaf07879
remove unused lines
2019-10-03 17:24:42 +09:00
Tomonobu Saito
d316ff9d41
Improvement of raster source loading to reduce consumed memory size.
2019-10-03 16:44:27 +09:00
Tomonobu Saito
62c8b70f78
use boost::filesystem::file_size() to get the file size (instead of seeking the file).
2019-10-02 19:04:01 +09:00
Tomonobu.Saito (Desktop PC)
d8d9ac8686
Add assert to check memory allocation
2019-10-02 15:47:16 +09:00
Tom Peoples
28895373fb
Fixed flatbufferbuiler copy issues.
...
Compiling under gcc9.1 we get copy issues.
It appears we shouldn't pass builder classes by value, only ref.
2019-10-01 21:54:00 +10:00
Tom Peoples
018a9bc804
Removed un-needed calls to std::move
...
These calls were throwing a pessimistic move error and stopping compilation.
2019-09-26 17:55:19 +10:00
Denis Chaplygin
e97ec13064
Formatted the sources
2019-09-17 17:42:52 +03:00
Denis Chaplygin
660c0cc602
Implemented 'skip_waypoints' for the 'Table' service.
2019-09-17 17:42:52 +03:00
Denis Chaplygin
600f48e15a
Implemented 'skip_waypoints' support in 'Route', 'Trip', 'Match' services.
2019-09-17 17:42:52 +03:00
Denis Chaplygin
1b47242a58
Implemented 'skip_waypoints' for the 'Nearest' service.
...
It actually makes no sence, as the only output on the 'Nearest' service
is a list of wypoints. On the other hand it can be used now as a simple
health check.
2019-09-17 17:42:52 +03:00
Denis Chaplygin
10c1b38139
Added new base parameter 'skip_waypoints'
2019-09-17 17:42:52 +03:00
Denis Chaplygin
0be87c73cf
Fixed typo in flatbuffers: longitute -> longitude.
2019-08-26 14:31:51 +03:00
Denis Chaplygin
b8182dd7ff
Replaced 'in' and 'out' at the flatbuffers 'instersection' object
...
with 'in_bearing' and 'out_bearing' to get flatbuffers schema javascript friendly.
Added a cucumber test for flatbuffers support.
2019-08-26 14:03:29 +03:00
Denis Chaplygin
80e1abba0c
Added setting 'data_version' to all flatbuffers response functions.
2019-08-26 11:09:38 +03:00
Denis Chaplygin
97270ae473
Fixed nested offsets inside of the flatbuffers structure
2019-08-26 11:09:38 +03:00
Denis Chaplygin
a9c187c99b
Updated changelog entry
2019-08-26 11:09:38 +03:00
Denis Chaplygin
2a1593fe05
Flatbuffers now uses floats instead of double. We do not use that precision anyway and it make output much smaller.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
73f544d4da
Slightly changed the serialization order.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
889c82516f
Set flatbuffers root type and removed unneded array for rows/cols
2019-08-26 11:08:56 +03:00
Denis Chaplygin
306c047c14
Generalized flatbuffers response generation in 'Route','Trip','Match' services.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
533f1ffc6b
Inlined routes and waypoints, as all services are using at least one of those object, so there is no need for another one level of indirection.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
90191c9f34
Added flatbuffers output support to the 'Match' service
2019-08-26 11:08:56 +03:00
Denis Chaplygin
b7e9e5f2c0
Added flatbuffers output support to the 'Trip' service.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
13287d9970
Optimizing FB schema:
...
* Replaced Response union with nullable fields
* "Ok" code replaced with a boolean and a separate structure for a error code and message.
* Inlined geometry, thus removing one layer of indirection.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
affa8a4653
Added flatbuffers output support to the 'Route' service.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
9d7a74445d
Added flatbuffers output support to the 'Nearest' service.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
acd3e81ab4
Removed ineffectivness in the serialization schema. Positions are
...
structs now and distance/duration matrices are just arrays.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
ea111129dd
Added full flatbuffers support to the Table service
2019-08-26 11:08:56 +03:00
Denis Chaplygin
7ddda105a3
Added flatbuffers support to the PluginBase::Error
...
This changes BREAKS osrm.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
75aadb0f3f
Passed ResultT down to engine plugins, so now they can form replies in different formats.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
f6f86b2a52
Added flatbuffers schema.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
59a83bd537
Added output format parser to the other services.
...
Same as for Route service, you can now specify either json or flatbuffers
as output format for the other services (except Tile service, where it
makes no sense).
2019-08-26 11:08:56 +03:00
Denis Chaplygin
59ca7840f4
Added output format parser to the Route service.
...
It is possible now to choose between json and flatbuffers (not yet implemented) output format.
Only route service is supported atm.
2019-08-26 11:08:56 +03:00
Denis Chaplygin
9efcab2108
Receive timeout should only be active for a second and
...
following requests on a keep-alive connections.
2019-08-23 12:21:54 +03:00
Denis Chaplygin
a7b7d77e1f
Formatted the code.
2019-08-23 12:21:54 +03:00
Denis Chaplygin
22550d078f
Added timeout handling for keep-alive operations.
2019-08-23 12:21:54 +03:00
Denis Chaplygin
a0582a3e68
Added keep-alive support to the http server.
2019-08-23 12:21:54 +03:00
Denis Chaplygin
92c7b6fbd1
Added 'Connection' header extraction.
2019-08-23 12:21:54 +03:00
Přemysl Šťastný
b4f849adaa
Solved this warning:
...
In file included from /home/travis/build/Project-OSRM/osrm-backend/include/storage/shared_data_index.hpp:4,
from /home/travis/build/Project-OSRM/osrm-backend/include/engine/datafacade/contiguous_block_allocator.hpp:4,
from /home/travis/build/Project-OSRM/osrm-backend/include/engine/datafacade/contiguous_internalmem_datafacade.hpp:5,
from /home/travis/build/Project-OSRM/osrm-backend/include/engine/plugins/nearest.hpp:5,
from /home/travis/build/Project-OSRM/osrm-backend/src/engine/plugins/nearest.cpp:1:
/home/travis/build/Project-OSRM/osrm-backend/include/storage/shared_datatype.hpp:102:26: warning: inline function ‘virtual void* osrm::storage::BaseDataLayout::GetBlockPtr(void*, const string&) const’ used but never defined
virtual inline void *GetBlockPtr(void *base_ptr, const std::string &name) const = 0;
2019-05-28 12:45:47 +02:00
Daniel Patterson
2c7c18fd24
Fix bug in snapping=any when bearings or radiuses are supplied.
2019-02-15 20:42:30 -08:00
Daniel Patterson
4f0ec785f6
Configurable snapping behaviour ( #5361 )
2019-02-14 17:14:50 -08:00
Lev Dragunov
8b45ff7a18
Store metadata about original OSM data, and return it in the API response, if available.
2019-01-30 15:31:56 -08:00
Daniel Patterson
381d492a8f
Add waypoints parameter to viaroute API ( #5345 )
...
* Add silent waypoints to viaroute API.
2019-01-24 16:19:59 -08:00
Daniel Patterson
1d82b01816
Count reverse offset from the back of the geometry, not the front.
2018-12-15 21:07:06 -07:00
Daniel Patterson
81bc2f41a6
When matching, ignore 'is_startpoint' propert, snap to any edge ( #5297 )
...
Includes all edges in the rtree, but adds an `is_startpoint` flag to each. Most plugin behaviour remains unchanged (non-startpoint edges aren't used as snapping candidates), but for map matching, we allow snapping to any edge. This fixes map-matching across previously non-is_startpoint edges, like ferries, private service roads, and a few others.
2018-12-13 17:10:32 -07:00
Daniel Patterson
06e010b4d0
Include information on estimates in table response ( #5259 )
...
* Revert "Remove estimated_cells value in the response."
This reverts commit 364e35af06
.
* Update changelog.
* fix linting
* adjust fallback_speed check
* change [].includes to [].indexOf !== -1 for compatibility with node 4
* change param name
* more cuke tests
* fix formatting
2018-12-11 12:21:57 -05:00
Kajari Ghosh
01ca32c81c
Fix fallback speed validity checks ( #5300 )
...
* fix fallback_speeds check to only accept values > 0
* add invalid_fallback_speed
2018-12-10 14:53:30 -05:00