Coder Social home page Coder Social logo

Comments (9)

gmachin11 avatar gmachin11 commented on July 2, 2024

Hi!

I'm having the same issue, also i noticed that only happens when you add a negative coordinate to the loc requirement, if you type positive positive coordinates it works.

from osrm.

rCarto avatar rCarto commented on July 2, 2024

@gmachin11 Thanks for the hint!

from osrm.

gmachin11 avatar gmachin11 commented on July 2, 2024

You're welcome, i tried for each combination of positive and negative, only worked for the positive positive one, like in here:

osrmIsochrone(loc = c(13.43,52.47), breaks = seq(0,12,2))

from osrm.

rCarto avatar rCarto commented on July 2, 2024

I think that this problem comes from the demo servers (http://router.project-osrm.org/r & https://routing.openstreetmap.de/). It seems that they do not manage the point encoding in google polyline format very well.
I've tried the latest version of OSRM (v.5.27.1) with docker and it is working as expected.
The first priority of osrm package is to be up to date with the OSRM server latest version. So the package is ok in principle & this is not a bug πŸ˜„ .

Solutions:

  1. Users affected by this problem could reach to OSRM demo server maintainers and see if an update of the OSRM version is possible from their side. According to their doc the routing.openstreetmap.de demo server uses v5.23.0 (released in Oct. 2020).
  2. I want users to be able to test the package with demo servers before deciding to use their own instance, so I'll try to circumvent the problem within the package and release an update soon.

from osrm.

rCarto avatar rCarto commented on July 2, 2024

Should be fixed in the dev version of the package.

remotes::install_github('riatelab/osrm')

from osrm.

ClaudeGrasland avatar ClaudeGrasland commented on July 2, 2024

Yes ! πŸ‘
I have reinstalled the dev version and now it works.

In fact I had inverted the coordinates of latitude and longitude in my first example and it was the reason why it did not work (the point was in the middle of the sea). 😞

from osrm.

ACouillet avatar ACouillet commented on July 2, 2024

Good morning,
using R osrmIsochrone, I've got the same error : 'loc' is too far from the OSRM network.
No negative value in coordinates and dev version installed from Riate.
It seems like if sf points located at the ends of the roads couldn't be taken into account for isochrones calculation.
image

from osrm.

rCarto avatar rCarto commented on July 2, 2024

@ACouillet
Thanks for the feedback, can you give me the coordinates of the point you're trying to get isochrones from ?

from osrm.

ACouillet avatar ACouillet commented on July 2, 2024

@rCarto
Merci Timothéé !
geometry (x / y, WGS84)
6.164979 / 44.11091

In fact, I deduced that among the 15000 points to be treated, some are connected to the network but on portions defined in OSM as roads not accessible to cars so logically the "car" isochrones cannot be calculated...

Also, in some cases, it seems that portions of the network are poorly defined (after verification with IGN data, they should accept an iso calculation which is still impossible).

It is therefore more a problem of characterization of the network in OSM than a malfunction of the program !

from osrm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.