Commit Graph

8141 Commits

Author SHA1 Message Date
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
Jay
5726d46284 Feature/refactor k8s names (#39)
* chore: rename

* chore: rename deployment

* docs: rename
2019-07-09 18:47:01 -07:00
Jay
0dd1e1e88e Feature/export pod logs (#37)
* chore: write out running logs for monitoring

* chore: change default traffix proxy ip

* chore: add timestamp for each log line

* chore: use AWS EFS instead of AWS EBS to support ReadWriteMany

* chore: create /osrm-logs folder by default
2019-07-08 11:38:03 -07:00
Jay
edc1a4f50c
Feature/integrate wayid2nodeid extractor (#32)
* chore: compile wayid2nodeid_extractor

* chore: integrate wayid2nodeid_extractor

* chore: install dependency github.com/qedus/osmpbf
2019-07-04 10:32:06 +08:00
Jay
a13bba6c1e
Feature/k8s rolling update (#33)
* chore: k8s rolling update deployment

* chore: change param name

* docs: README for k8s rolling update

* docs: fix typo

* chore: add namespace, add loadbalancer

* docs: update doc for k8s deployment and service

* feat: crontab per 20 minutes

* fix: sed on linux
2019-07-04 10:31:49 +08:00
Jay
2b0db9f752
Feature/improve with traffic design (#34)
* docs: update osrm with telenav traffic design

* docs: update osrm with traffic design
2019-07-04 10:28:28 +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
47350f428c chore: support routed_no_traffic_startup (#27) 2019-06-24 16:52:25 -07:00
Jay
147b6e520f Use PBF_FILE_NAME + IMAGE_TAG as DATA_VERSION to shown in every response (#24)
* chore: set debug log level and set pbf file name as data_version when compile data

* chore: add IMAGE_TAG for shown in response

* docs: update example

* chore: use PBF file name + IMAGE_TAG as data_version which can be returned in each JSON response
2019-06-20 15:11:45 -07:00
Jay
b1446e4add Improve compile data in docker and publish data (#21)
* chore: misc improve for telenav/osrm-backend docker

* chore: improve entrypoint for easy integrated by CI

* chore: fix profiles not found issue

* chore: also support package and publish compiled data by .tar.gz

* docs: update example

* docs: update for compile data automation

* docs: update item names

* docs: add docker run

* docs: update design doc
2019-06-18 21:18:20 -07:00
Xun(Perry) Liu
79d565b2ec Feature/docker orchestration perry (#19)
* fix: Fix the issue in shell script to build docker image

- Fix the issue in the if

* fix: Fix the issue in shell script to build docker image

- Fix the issue related with profile, currently use car.lua to build data

* fix: Fix the issue in shell script to build docker image

- Need curl installed in docker image to download pbf file

* fix: Fix the issue in shell script to build docker image

- To download osm data from geofabrik, need ca-certificates otherwise will meet error like:
curl: (77) error setting certificate verify locations

* doc: Add document to record how to use docker-orchestration/osrm-backend
2019-06-18 09:35:52 +08:00
CoderBear801
99fa6f63a1 fix: Implement logic for processing professional vender's pbf with OSRM
- Put error detail into exceptions instead of using std::cout.
2019-06-18 09:33:55 +08:00
CoderBear801
df383d7e56 Feat: Implement logic for processing professional vender's pbf with OSRM
- Increase bits for node id due to definition in internal pbf is 64
bit range
- There are some very long tags in internal pbf, increase upper limit
for string definition.
- Add additional logs to debug pbf with long tags

Closes #7.
2019-06-18 09:33:55 +08: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
Jay
ec75a0a634
Merge pull request #17 from Telenav/feature/docker-orchestration-perry
Add docker entry point and adjust docker file
2019-06-17 11:04:32 +08:00
CoderBear801
6c2db92dc4 feat: add docker entry point and adjust docker file
- Modify docker file to add entry point

Related with #3.
2019-06-14 20:37:54 -07:00
CoderBear801
3c547fbbeb feat: add docker entry point and adjust docker file
- Add docker entry point file for supporting routed_startup, compile_mapdata

Related #3.
2019-06-14 19:51:47 -07:00
Jay
764a7d6053
Merge pull request #16 from Telenav/feature/docker-orchestration-perry
feat: Add docker image for OSRM frontend
2019-06-15 09:32:49 +08:00
CoderBear801
5fcfab1046 feat: Add docker image for OSRM frontend
- docker image contains OSRM frontend and nginx
2019-06-14 17:14:53 -07:00
Xun(Perry) Liu
fab977355b
Merge pull request #14 from Telenav/feature/docker-orchestration
Telenav osrm-backend docker for development&release
2019-06-14 15:14:02 -07:00
Jay Zhang
447b9b1a90 delete unnecessary Dockerfile 2019-06-14 17:46:20 +08:00
Jay Zhang
787addf1c1 readme 2019-06-11 23:27:49 +08:00
Jay Zhang
f39d662d9e dockerfile for telenav osrm-backend 2019-06-11 08:13:25 -07:00
Jay Zhang
f8ccd98747 dev docker for osrm-backend 2019-06-11 06:07:41 -07:00
Jay Zhang
f1a9221b64 fix copy contents issue 2019-04-07 20:13:02 -07:00
Jay Zhang
87ccf7a6e8 make mapdata mountable 2019-04-04 01:18:06 -07:00
Jay Zhang
6f17286a9a fix osrm-route not in path issue 2019-04-02 19:04:37 -07:00
Jay Zhang
5b2b97bb05 osrm-data-docker Dockerfile 2019-04-02 03:47:06 -07:00
Jay Zhang
c9347144af osrm-routed docker based on centos7-osrm-soe 2019-04-01 07:41:00 -07:00
Liu
016adf6439 Initial commit test. 2019-02-07 11:00:46 -08:00
Daniel Patterson
0a556fe450
Fix changelog. 2019-02-04 16:15:19 -08:00
Daniel Patterson
f2f167c95d
Allow routing past barrier=arch. (#5352) 2019-02-04 16:14:43 -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
4c665b24d9
Add optional builds for lts and node version aliases. This will give us a heads up when new Node (#5347)
versions break bindings, and might automagically get us support for new versions if it "just works".
2019-01-30 12:17:04 -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
e250c83c21 Add BUILD_CONCURRENCY argument so that we can limit concurrency on Docker Hub (and thus reduce peak memory need for build) 2019-01-17 16:16:44 -08:00
Andrii Dmytrenko
e2e326d15e Fix cpack config by pointing to a correct LICENSE file 2019-01-17 09:45:11 -08:00
Daniel Patterson
4abca85474 Downgrade to debian:stretch-slim to ensure stable environment for building. 2019-01-11 16:46:28 -08:00
Daniel Patterson
2c78d862a3
Reset master for next release. 2018-12-18 16:25:51 -07:00
Daniel Patterson
b1451a7421
Release 5.21.0 2018-12-18 16:17:34 -07:00
Daniel Patterson
da1c251144
Prep 5.21.0-rc.1 2018-12-15 21:43:10 -07:00
Daniel Patterson
1eab7b41d1 Update CHANGELOG. 2018-12-15 21:07:06 -07:00
Daniel Patterson
1dca8ae76a Correct invalid tests - these captured the incorrect behaviour, the matrices should've been symmetrical (a->o == o->a for these cases) 2018-12-15 21:07:06 -07:00
Daniel Patterson
002e86863d Add test to ensure forward/reverse snapping distances are correct, and fix some tests that were incorrect due to the bug. 2018-12-15 21:07:06 -07:00
Daniel Patterson
1d82b01816 Count reverse offset from the back of the geometry, not the front. 2018-12-15 21:07:06 -07:00
Frédéric Rodrigo
714719c377 Lua maxspeed parsing refactoring (#5144)
* Lua maxspeed parsing refactoring
2018-12-14 21:58:07 -07:00
Huyen Chau Nguyen
77b4fbb69c Fix maxspeed to consider source:maxspeed tags (#5217)
* In Belgium the maximum speed in rural areas is 70 in the region Flanders
* parse maxspeed using source:maxspeed and maxspeed:type tags
* add changelog
* make maxspeed:advisory more important than maxspeed
* add test for source:maxspeed
2018-12-14 21:42:44 -07:00
Matt Riggott
11fde865f7 Document switch to Debian base images (#5281)
* Document switch to Debian base images
2018-12-14 21:36:09 -07:00