Comments (3)
Can you provide a reproducible example please? I don't know what version of OSRM you are using nor what function you are trying to use, and the link to Project-OSRM does not work...
from osrm.
my bad, I'm using osrm-backend 5.14.2, here the correct link to the doc:
https://github.com/Project-OSRM/osrm-backend/blob/5.14/docs/http.md
launching orsm routing daemon on a subset of osm:
[forth@debian osrm]$ ../../osrm-backend-5.14.2/build/osrm-routed -a mld ./rhone-alpes-171206.osrm
[info] starting up engines, v5.14.2
[info] Threads: 4
[info] IP address: 0.0.0.0
[info] IP port: 5000
[info] load names from: "./rhone-alpes-171206.osrm.names"
[info] set checksum: 1297240911
[info] set checksum: 1297240911
[info] set checksum: 1297240911
[info] set checksum: 1297240911
[info] set checksum: 1297240911
[info] set checksum: 1297240911
[info] set checksum: 1297240911
[info] set checksum: 1297240911
[info] http 1.1 compression handled by zlib version 1.2.8
[info] Listening on: 0.0.0.0:5000
[info] running and waiting for requests
[info] 19-12-2017 21:40:11 1.198ms 127.0.0.1 - 'osrm' R package 400 /v1/driving/5.370536,44.751036;NA,NA;5.452401,44.6151;5.370801,44.660123?steps=false&geometries=geojson&overview=simplified
[info] 19-12-2017 21:40:11 0.058843ms 127.0.0.1 - 'osrm' R package 400 /v1/driving/5.370536,44.751036;NA,NA;5.452401,44.6151;5.370801,44.660123
[info] 19-12-2017 21:40:49 0.063741ms 127.0.0.1 - 'osrm' R package 400 /v1/driving/5.724524,45.188529;4.835659,45.764043?steps=false&geometries=geojson&overview=simplified
[info] 19-12-2017 21:40:49 0.089762ms 127.0.0.1 - 'osrm' R package 400 /v1/driving/5.724524,45.188529;4.835659,45.764043
sample R script:
library('ggmap')
library('sp')
library('rgeos')
library('mapview')
library(osrm)
options(osrm.server = "http://127.0.0.1:5000")
library("knitr")
villes <- c("Grenoble, France", "Lyon, France")
parcours <- data.frame(names= villes)
geocodes <- geocode(as.character(villes))
parcours <- data.frame(parcours, geocodes)
trips <- osrmTrip(parcours)
mapview(trips[[1]]$trip)
table <- osrmTable(parcours)
kable(table$durations)
from osrm.
You should end the osrm.server address with a "/":
options(osrm.server = "http://127.0.0.1:5000/")
from osrm.
Related Issues (20)
- How can I remove alternate routes when using osrm package in leaflet(r)? HOT 1
- Improve error handling osrmIsochrone(): out of bounds
- Improve error handling `osrmIsochrone()`: character vector of location HOT 1
- Improve error handling `osrmIsochrone()`: handle empty isochrones
- Improve documentation `osrmIsochrone()`: `breaks` argument
- Define "isometric" and "isodistance"
- Speed parameter HOT 3
- Stop osrm "connecting" to the network via certain types of roads HOT 6
- Problem with input data and osrmTrip() HOT 3
- curl::curl_fetch_memory(utils::URLencode(url) => connection was reset HOT 4
- osrmIsochrone(): 'loc' is too far from the OSRM network but loc is not too far... HOT 9
- Error in `osrmTrip()` when location coordinates are close to each other and/or not on roads HOT 2
- pairwise distance matrix from OSRM? HOT 2
- Using custom driving profiles HOT 2
- Problem with self-hosted server connection HOT 11
- Curl Header Overflow for Large Distance Matrices HOT 4
- fix pkg level documentation
- Duration of trip in osrmRoute and time of the day/traffic HOT 1
- Error using `osrmTable` with local server: long vectors not supported yet HOT 1
- Is snaping coordinates to the street network possible when mapping isochrones? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osrm.