R - package otpr - no trip found

240 views Asked by At

Using R and the package otpr I am trying to run the example

library(otpr)
            otpcon <- otp_connect()

            otp_get_distance(
                otpcon,
                fromPlace = c(53.48805,-2.24258),
                toPlace = c(53.36484,-2.27108)
                )
        

but i get the error

$errorId
[1] 404

$errorMessage
[1] "No trip found. There may be no transit service within the maximum specified distance or at the specified time, or your start or end point might not be safely accessible."

$query
[1] "http://localhost:8080/otp/routers/default/plan?fromPlace=53.48805,-2.24258&toPlace=53.36484,-2.27108&mode=CAR"

the example I am trying to run is take from here:

https://cran.r-project.org/web/packages/otpr/readme/README.html

Does anyone have an idea about what could be going wrong?

Tried deinsalling an reinstalling all java. Then i get the error

Fejl i otp_connect() : 
  Router http://localhost:8080/otp/routers/default does not exist. Error code Error in curl::curl_fetch_memory(make_url(x)) : 
  Failed to connect to localhost port 8080: Connection refused
0

There are 0 answers