0

R とパッケージ otpr を使用して、例を実行しようとしています

library(otpr)
            otpcon <- otp_connect()

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

しかし、私はエラーが発生します

$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"

私が実行しようとしている例は、ここから取られています:

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

何がうまくいかないのか、誰にも考えがありますか?

すべてのJavaを再インストールしてアンインストールしようとしました。次に、エラーが発生します

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
4

0 に答える 0