Commit Graph

8 Commits

Author SHA1 Message Date
Jay
927eb455ef
chore: format our golang codes by 'goreturns -l -w .' (#47)
be noted that we don't need to format generated codes, e.g. generated by thrift
2019-07-22 13:06:31 +08:00
Jay
a247e34ea4 Add traffic records matched statistics and total processing time (#46)
* feat: statistics fwd and bwd traffic matched

* fix: missed line wrap

* feat: statistics osrm_traffic_updater processing time
2019-07-19 10:22:25 -07:00
Xun(Perry) Liu
c613b1737c Feature/traffic updater statistic (#44)
* feat: implement statistic for osrm traffic dumper.
issues: https://github.com/Telenav/osrm-backend/issues/43

* feat: Implement statistic for loading traffic map.
issues: https://github.com/Telenav/osrm-backend/issues/43

* fix: Experiment to use channel to collect statistic information.
issues: https://github.com/Telenav/osrm-backend/issues/43
2019-07-19 09:32:33 +08:00
Jay
bb147f369b Use Go Modules to manage Go code's dependency (#42)
* chore: init go.mod

* chore: ignore go binaries

* chore: remove thrift, will be managed by go mod

* chore: build c++ and go in one repo

* chore: depends on snappy

* chore: build snappy_command

* chore: compress wayid2nodeids.csv by snappy
2019-07-18 17:08:37 -07:00
Xun(Perry) Liu
a3eb24a0fc Feature/optimize traffic convertor (#41)
* feat: Optimize output of wayid2nodeids format, use delta format to comparess data

Issues: https://github.com/Telenav/osrm-backend/issues/31

* feat: Implement logic to compress/decompress file to snappy.

issues: https://github.com/Telenav/osrm-backend/issues/31

* feat: Modify osrm speed table generator to support snappy compression format.

issues: https://github.com/Telenav/osrm-backend/issues/31

* feat: Fix bug during conversion

* feat: Adjust traffic updater's logic to improve performance.

* feat: Adjust traffic updater's logic to improve performance.

issues: https://github.com/Telenav/osrm-backend/pull/39

* feat: Refine the code for osrm_traffic_updater.

issues: https://github.com/Telenav/osrm-backend/issues/31

* fix: fix dead lock in the code.

* fix: optimize performance with new architecture.
issues: https://github.com/Telenav/osrm-backend/issues/31

* fix: revert way id generator to original solution

* fix: Use string to pass between different components
issues: https://github.com/Telenav/osrm-backend/issues/31

* fix: update unit test for latest changes
issues: https://github.com/Telenav/osrm-backend/issues/31

* fix: remove useless printf

* fix: update unit test for osrm_traffic_updater.go

* fix: fix the misunderstanding with requirement.  Traffic server generates -wayid indicate for traffic flow on reverse direction.
issues: https://github.com/Telenav/osrm-backend/issues/31
2019-07-17 09:11:38 +08:00
Xun(Perry) Liu
cbd192c52e feat: Implement logic to generate way-2-nodes mapping and convert traffic result to nodes-2-speed (#28)
* feat: Implement logic to generate way-2-nodes mapping and convert from way-2-speed to nodes-2-speed for OSRM

Issue: https://github.com/Telenav/osrm-backend/issues/22

* fix:Comments and typo in traffic generator.

* fix: Fix the issue of protocal and refine function names

* fix: Remove suffix of "100" for telenav wayids

* feat: Add unit test for generatespeedtable

* fix: Avoid upload test pbf into git

* feat: Handle traffic flow and add related unit test

* Update Readme

* fix: enable real function

(cherry picked from commit 81015b9977847ffe61c7e8793e1cecb229727a07)

* docs: fix a typo
2019-06-28 11:10:54 +08:00
Jay
f0ef92c87a Update proxy thrift RPC protocol (#29)
* feat: make fromId,toId to optional; add new interface getFlowsByIds

* feat: generate new go proxy codes by thrift 0.12.0
2019-06-26 11:29:58 -07:00
Jay
fa37e1f618 Integrate Telenav Traffic Design and traffic_updater implementation (#18)
feat: Define thrift protocol with traffic service and implement logic which generates traffic update file for OSRM

- OSRM with telenav traffic architecture
- Define traffic protocol in thrift and generate de-coding code
- Implement logic to pull result from traffic server and generate csv which could be used for OSRM customization

Closes #1, #2, #3
2019-06-17 13:50:31 -07:00