osrm

Docker includes invalid characters for a local volume name

拟墨画扇 提交于 2020-02-25 04:16:08
问题 I want to install OSRM locally using the docker container under windows I followed the steps in this doc In the end I can not execute the necessary commands and I receive the following error : Any suggestion will be very helpful for me, thank you ! 回答1: seems like the window command prompt does not interpret $PWD , you have to use gitbash or powershell I think. or another option is to use full path or current path. The flag -v "${PWD}:/data" creates the directory /data inside the docker

Docker includes invalid characters for a local volume name

旧时模样 提交于 2020-02-25 04:14:06
问题 I want to install OSRM locally using the docker container under windows I followed the steps in this doc In the end I can not execute the necessary commands and I receive the following error : Any suggestion will be very helpful for me, thank you ! 回答1: seems like the window command prompt does not interpret $PWD , you have to use gitbash or powershell I think. or another option is to use full path or current path. The flag -v "${PWD}:/data" creates the directory /data inside the docker

draw a path from GEO locations from GPS snapped to road

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 05:52:39
问题 I have some Points recorded in DB come from GPS, when I draw it as a polyline, in make an ugly path. I tried to make a snap to road by google service; it gets an accurate path in small path because it has a limit for 100 points only, I have more than 900. Then I tried the OSRM matching-service. its depending on a OSM data but it's not updated like google maps; the route has wrong path for the original points is there any approach else to use to make it smooth and in correct road? 24.771891,

Cordova: CSP issue on Android when requesting data over HTTPS

眉间皱痕 提交于 2019-12-20 05:16:16
问题 Cordova Android is an Android application library that allows for Cordova-based projects to be built for the Android Platform. Cordova based applications are, at the core, applications written with web technology: HTML, CSS and JavaScript. Apache Cordova is a project of The Apache Software Foundation (ASF). I have developed an app with Cordova which works as expected on iOS, and on Android when the signed app gets deployed from Android Studio direct to a Samsung S6. However, when downloading

OSRM: Why is the traveltime of route A -> B a factor 2 off route's traveltime B -> A?

三世轮回 提交于 2019-12-12 20:05:04
问题 As said: it even differs by a factor of 2 in time! How is that possible? I found this issue but it seems it is still there? It turns out that the highway is only taken in on direction (See leaflet map from map_route . Do I miss anything? Here is a reproducible example : wd <- getwd() setwd("C:/OSRM_API5") shell(paste0("osrm-routed ", "switzerland-latest.osrm", " >nul 2>nul"), wait = F) Sys.sleep(3) # OSRM needs time setwd(wd) k1 <- 46.99917 k2 <- 8.610048 k3 <- 47.05398 k4 <- 8.530232 r1 <-

OSM routing (OSRM): do I need to duplicate all data for different profiles?

十年热恋 提交于 2019-12-11 13:02:31
问题 I use OSRM and would like to allow the user to select from different routing profiles (e.g. car / foot). The documentation states that I can define the profile during the extract and prepare process. Does this mean that I have to run seperate instances for each profile, each with its own .osrm file? (this is an issue because I run it for a dataset covering large areas (~100GB). 回答1: Yes, as of today OSRM doesn't support multiple profiles. 来源: https://stackoverflow.com/questions/35397627/osm

How to use OSRM's match service

十年热恋 提交于 2019-12-10 18:19:13
问题 As stated in the header: how can I use the match call? I tried http://router.project-osrm.org/match/v1/driving/8.610048,46.99917;8.530232,47.051?overview=full&radiuses=49;49 I am not sure, whether the list of radiuses is given correctly. I can't get it work. I also tried [49;49] or {49;49} The command works with route : http://router.project-osrm.org/route/v1/driving/8.610048,46.99917;8.530232,47.051?overview=full For backround see here Edit : If you look at the example here, itr seems, the

Difference between osrm route and match service

强颜欢笑 提交于 2019-12-10 15:49:52
问题 What is the difference between OSRM route service and match service? 回答1: According to OSRM documentation, route and match are 2 endpoints with different objectives: Route: It will return the fastest route between the coordinated in the supplied order. For example: https://router.project-osrm.org/route/v1/driving/-77.0969009399414,38.89397221118197;-77.08866119384766,38.88154580068335;-77.0745849609375,38.88515369217454;-77.05432891845703,38.90586211685612?overview=false&alternatives=true

Cordova: CSP issue on Android when requesting data over HTTPS

狂风中的少年 提交于 2019-12-02 03:09:14
Cordova Android is an Android application library that allows for Cordova-based projects to be built for the Android Platform. Cordova based applications are, at the core, applications written with web technology: HTML, CSS and JavaScript. Apache Cordova is a project of The Apache Software Foundation (ASF). I have developed an app with Cordova which works as expected on iOS, and on Android when the signed app gets deployed from Android Studio direct to a Samsung S6. However, when downloading the app from Google Play it does not get requested data from a HTTPS request. Here are the whitelist

How to decode encoded polylines from OSRM and plotting route geometry?

浪尽此生 提交于 2019-11-29 14:14:38
问题 I'm using an instance of OSRM (OpenStreetMap Routing Machine) to evaluate distance and time from different points. Using the API, I can retrieve information that I want and need especially the real route as a polyline. Until today, I have plotted straight lines between start and end point. segments( lon_patient,lat_patient,lon_lieu,lat_lieu,col = transp_time,lwd = 3 ) Now I want to plot the polylines. But it is encoded (https://github.com/Project-OSRM/osrm-backend/wiki/Server-api#response-2).