Patrick Niklaus
0ec5f06a2f
Fix table parameter parsing
2016-03-17 22:15:13 +01:00
Patrick Niklaus
eb179af1ce
First round of lat,lng -> lng,lat switcheroo
2016-03-17 22:15:10 +01:00
Patrick Niklaus
cd4dbfac42
Finish the nearest plugin
2016-03-17 21:57:36 +01:00
Patrick Niklaus
fab343d0d3
Add trip plugin
2016-03-17 21:57:36 +01:00
Patrick Niklaus
8d4ee327cd
Hook up map matching
2016-03-17 21:57:36 +01:00
Daniel J. Hofmann
c21e0855e9
Service skeletons for nearest, trip, match
2016-03-17 21:57:35 +01:00
Daniel J. Hofmann
1b2bbd086e
Fix grammar constraint and enable all plugin links
2016-03-17 21:57:35 +01:00
Daniel J. Hofmann
8eee4c23cc
Plugin grammar skeletons
2016-03-17 21:57:35 +01:00
Daniel J. Hofmann
7e1c164937
Enforce parameter and grammar type to catch subtle bugs
2016-03-17 21:57:35 +01:00
Daniel J. Hofmann
6fecce23fc
Link parameters to grammars
2016-03-17 21:57:35 +01:00
Daniel J. Hofmann
7abb7ed0e1
Require a BaseParameters type at compile time via enable_if
2016-03-17 21:57:35 +01:00
Daniel J. Hofmann
decf976489
Semantic action handler requires passing optional by value and fusion::vector2
2016-03-17 21:57:34 +01:00
Patrick Niklaus
88a501f77c
Add tests for bearing parsing
2016-03-17 21:57:34 +01:00
Patrick Niklaus
98beea7649
Add table service
2016-03-17 21:57:34 +01:00
Daniel J. Hofmann
73e71765ab
Optional<T> semantic action handler takes T argument
2016-03-17 21:57:34 +01:00
Patrick Niklaus
a57680323f
Fix parameter parsing tests
2016-03-17 21:57:34 +01:00
Patrick Niklaus
8b2b153465
Add viaroute suport for new API
2016-03-17 21:57:32 +01:00
Patrick Niklaus
0eaa393065
Limit tile zoomlevel to 12+
2016-03-02 19:59:49 +01:00
Daniel Patterson
6d749777fc
Using bind<T> in this case causes ambiguity with GCC 5.2.1 (see http://www.boost.org/doc/libs/develop/libs/bind/doc/html/bind.html#bind.faq.Q_forms ). Remove template and let the type be deduced automatically.
2016-03-02 09:54:08 -08:00
Daniel J. Hofmann
aeee565115
Formats all the files we touch..
2016-03-01 23:51:25 +01:00
Daniel Patterson
5dc7b79bb6
Implements a vector tileserver so you can see what's going on inside
...
OSRM.
2016-03-01 23:51:25 +01:00
Patrick Niklaus
a0b4fcc05a
Remove last bits of GPX support code
2016-03-01 23:44:07 +01:00
karenzshea
f5c12ec433
comments
2016-01-29 23:49:09 +01:00
karenzshea
262cdd7bc0
move tribool obj into request_parser
2016-01-29 23:49:09 +01:00
Daniel J. Hofmann
a48f02e0da
Takes care of proper special member generation globally, fixes #1689
...
Phew, a lot of classes were affected by this. The rationale for the
changes are as follows:
- When a type X declares any constructor, the default constructor is
not declared, so there is no need for X() = delete there. In fact,
there is brutal difference between those two: deleted members
participate in overload resolution, but not-declared members do not!
- When a type X wants to be non-copyable (e.g. to be only movable, like
threads, unique_ptrs, and so on), you can either do it by inheriting
from boost::noncopyable (the old way), or better declare both (!) the
copy constructor _and_ the copy assignment operator as deleted:
X(X const&) = delete;
X& operator=(X const&) = delete;
We had tons of types with deleted copy constructors that were lacking
a corresponding deleted copy assignment operator, making them still
copyable and you wouldn't even notice (read: scary)!
References:
- http://accu.org/content/conf2014/Howard_Hinnant_Accu_2014.pdf
- http://www.boost.org/doc/libs/master/libs/core/doc/html/core/noncopyable.html
Note: I know, I'm quoting Hinnant's extraordinary slides a lot, but
getting the sematic right here is so incredibly important.
2016-01-27 17:25:30 +01:00
Patrick Niklaus
d9c281cd7c
Remove boost fusion dependency in RouteParameters
2016-01-26 22:57:02 +01:00
Daniel J. Hofmann
54a9173107
Make public RouteParameters header no longer depend on Spirit
...
And includes the optional header that was transitively included by the
spirit header before. Hopefully this will speed up compile times, as the
RouteParameters header is used in a lot of translation units.
2016-01-26 22:57:02 +01:00
Patrick Niklaus
439eb9da3d
Create public facing libraries for extractor, contractor and datastore
...
New libraries libosrm_extract, libosrm_contract, libosrm_store
2016-01-21 06:47:34 +01:00
Daniel J. Hofmann
e7d9e42a16
Fix race condition in osrm-routed HTTP server
...
We had a similar issue a few month ago. Stumbled upon this by accident.
It goes like this:
- `output_buffer` is function-local
- we pass it to async_write and leave the scope
- `output_buffers` goes out of scope
- bad things happen, sometimes
The fix is to, again, put it inside the connection that handles itself
via the enable_shared_from_this idiom.
References:
- http://www.boost.org/doc/libs/1_59_0/doc/html/boost_asio/reference/async_write/overload1.html
- https://github.com/Project-OSRM/osrm-backend/pull/1690
2016-01-13 23:21:45 +01:00
Patrick Niklaus
6991a38703
Run clang-format
2016-01-08 01:31:57 +01:00
Patrick Niklaus
6b18e4f7e9
Add namespace around all files
2016-01-08 01:30:52 +01:00
Patrick Niklaus
b209952ce0
Fix naming of methodes for RouteParameters
2016-01-05 12:06:33 +01:00
Patrick Niklaus
028ca5c9d9
Apply clang-format
2016-01-05 12:04:04 +01:00
Daniel J. Hofmann
685d330ee2
Remove license headers from project source files; global license
2016-01-04 19:06:32 +01:00
Patrick Niklaus
97585bb26a
Fix include paths
2016-01-03 18:47:50 +01:00
Patrick Niklaus
bfc6c9b89d
Move files in src/ include/
2016-01-03 16:37:38 +01:00