Patrick Niklaus
6b0b160f37
Don't pass shared_ptr down to functions
...
"Don’t pass a smart pointer as a function parameter unless you want to
use or manipulate the smart pointer itself, such as to share or transfer
ownership."
Source:
http://herbsutter.com/2013/06/05/gotw-91-solution-smart-pointer-parameters/
2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
458a1c8157
Hide functional road classification based on tags in implementation file
2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
1062007e67
Fixes multi-line comment
2016-03-31 18:58:52 +02:00
Daniel J. Hofmann
ea81866e28
Runs scripts/format.sh
2016-03-31 18:58:52 +02:00
Patrick Niklaus
3b9c772d14
Fix coodinate include and unused warnings
2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
9d1032a742
start of four way turns
2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
a27f7326bd
improved fork handling
2016-03-31 18:58:52 +02:00
Patrick Niklaus
ba3f167b99
Fix crash on extracting Berlin in guidance
2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
8322a7ccaf
bugfixing/classification
2016-03-31 18:58:52 +02:00
Patrick Niklaus
8c71239e48
Big Restructuring / Cleanup
2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
ffb3578180
starting on conflict resolution
2016-03-31 18:58:52 +02:00
Lauren Budorick
c918d68b3e
Fixes for gcc compiling, temporary hacks to remove later
2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
ebdae7591b
handle segregated roads (merge for turn analysis)
2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
0ba70bcbf9
structural changes, motorway handling
2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
3cdd282e0f
enter and exit roundabout feature - currently not showing turn
2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
72202b7e4a
migrated out of edge based graph factory
2016-03-31 18:58:52 +02:00
Moritz Kobitzsch
bcf7741f95
advanced guidance on 5.0
2016-03-31 18:58:52 +02:00
Patrick Niklaus
e6782fd30b
Fix travel mode passing from profiles up to the API
2016-03-31 18:58:52 +02:00
Patrick Niklaus
60d83ccf53
First round of lat,lng -> lng,lat switcheroo
2016-03-31 18:58:52 +02:00
bergwerkgis
d0636a9f6d
make AppVeyor work again
2016-03-31 16:49:30 +02:00
Patrick Niklaus
21245273b4
Also exclude the compressed flag from the data format
2016-03-24 21:24:08 +01:00
Daniel J. Hofmann
c78dff9a15
Write out unsigned with a check for edge counter overflow
2016-03-19 00:27:55 +01:00
Daniel J. Hofmann
25fea558ba
Fixes the edge-based-graph factory's edge counter serialization.
...
The counter for original edges is of type `std::size_t`, but we
serialized `sizeof(unsigned)` number of bytes out to the `.osrm.edges`
file.
We should probably check all writes (analogous for reads) and make the
count parameter dependent on `sizeof(variable)`.
ag '\.write\((.*), sizeof\((.*)\)\);'
2016-03-19 00:27:55 +01:00
Daniel J. Hofmann
ac0279aa83
RAII for auto-closing file streams
...
Small fixes I didn't want to include in unrelated PRs.
There are a few left in `storage.cpp` but since it's a single function
in 600 lines of code, I didn't want to touch the mess. The others are
safe to remove, cucumber and test run on Finland gives 👍 .
2016-03-09 17:46:02 +01:00
Patrick Niklaus
ae4161b780
Fix extraction in case of ways referencing invalid node ids
2016-03-08 20:59:11 +01:00
Patrick Niklaus
ac6218eef2
Simplify EBGF code
2016-03-04 16:37:25 +01:00
Patrick Niklaus
a98cc51ac2
Fix up some PR comments
2016-03-04 16:13:30 +01:00
Daniel Patterson
e595bdb20a
More cleanup.
2016-03-03 19:28:48 -08:00
Daniel Patterson
9bd2446901
Cleanup.
2016-03-03 19:27:36 -08:00
Daniel Patterson
27babfec3d
Add the uncompressible edges to the compressed edge container during the graph compressor run, rather than in the EdgeBasedGraphFactory. This keeps the logic a lot simpler to follow, although it's not quite as fast.
2016-03-03 18:48:39 -08:00
Daniel Patterson
49441fe204
Make forward/reverse weight/offset calculated at query time,
...
rather than being cached in the StaticRTree. This means we
can freely apply traffic data and not have stale values lying
around. It reduces the size of the RTree on disk, at the expense
of some additional data in RAM.
2016-03-03 10:49:12 -08:00
Daniel Patterson
53542abbb7
Disable compression across traffic lights. Previously, we merged the traffic light penalty into the edge weight. When later considering traffic data, we need to be able to update just the edge weight, and it was impossible to extricate the traffic penalty. This increases the number of edge-based-nodes a little bit, but some quick tests show it should only be about 0.1% overall (only affects traffic signals on edges with no intersections (i.e. degree=2))
2016-03-02 18:00:31 -08:00
Daniel Patterson
fc908d4687
Fix naming of variable so it's a lot less confusing.
2016-03-02 18:00:31 -08:00
Daniel J. Hofmann
aeee565115
Formats all the files we touch..
2016-03-01 23:51:25 +01:00
Daniel Patterson
56e35e8ef2
Remove GeoJSON based debugging output, we can now generate vector tiles with roughly the same data on-the-fly.
2016-03-01 23:51:25 +01:00
Daniel J. Hofmann
51ae14ec23
Extra ;
2016-03-01 16:43:34 +01:00
Daniel J. Hofmann
da88cb6a43
Extractor comments wrt. osrm-contract
2016-03-01 16:43:34 +01:00
Moritz Kobitzsch
2679c1cf0a
correct handling of travel modes
2016-02-16 01:35:04 +01:00
Moritz Kobitzsch
f14352f494
modify turn angles and instructions
2016-02-15 20:13:55 +01:00
Daniel J. Hofmann
64b36807d3
Transforms osrm_exception to exception
2016-02-12 15:46:24 -08:00
Bas Couwenberg
5e15bceaae
Fix 'egdes' typo, replace with 'edges'.
2016-02-07 02:59:44 +01:00
Daniel J. Hofmann
d189339495
Makes the extractor no longer depend on the crc32 computation
2016-01-27 17:18:04 +01:00
Daniel J. Hofmann
46fc6f8da4
Collapse computeAngle into coordinate calculation
2016-01-26 22:57:02 +01:00
Daniel J. Hofmann
0fcca04150
TU-local STXXL comparator for OSMNodeIDs, needs {min,max}_value
...
Can not use std::less<>{} because of this.
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
Moritz Kobitzsch
1c1bfd7541
Fix routing when start and target are on the same segment
...
Fixes issue #1864 . Given the simple set-up:
a --> b --> c
^-----------|
This would translate into an edge based graph (ab) -> (bc),
(bc) -> (ca), (ca) -> (ab).
Starting at the end of the one-way street (ab) and going to
the beginning, the query has to find a self-loop within the
graph (ab) -> (bc) -> (ca) -> (ab), as both nodes map to the
same segment (ab).
2016-01-19 23:26:19 +01:00
Patrick Niklaus
22e83013e3
Fix uturns at dead-end streets
2016-01-15 16:24:21 +01:00
Daniel J. Hofmann
c93ca02fb8
Rips out dead code from the container.hpp and creates for_each_pai.hpp
...
I added two TODOs that I would like to address in the future.
2016-01-11 20:14:35 +01:00
Daniel J. Hofmann
4813488f84
Split import_edge.hpp: node_based_edge.hpp, edge_based_edge.hpp closes #1604
2016-01-11 20:11:44 +01:00
Daniel J. Hofmann
fc292cc2d8
No need for extra translation units (for edge data structures)
2016-01-11 20:11:44 +01:00