Coder Social home page Coder Social logo

Comments (5)

rCarto avatar rCarto commented on May 23, 2024

Hello
Mmm, the problem is that osrm is sending invalid coordinates to the routing server.
For this specific point (and I guess any point with coordinates too near to 0, Lat or Long... ) the longitude coordinate is transformed to its scientific notation (-9.4e-05).
A quick trick is to set the scipen option to a large value options(scipen=10).
Thank you for raising this issue, I have to fix this.

from osrm.

jiaweniscute avatar jiaweniscute commented on May 23, 2024

Hi there,

Thank you! This solved the error.

However, I ran into another problem with this set of coordinates, also in London:

test <- osrmIsochrone(loc = c(-2.4529553,52.71386), 
                           breaks = seq(from = 0,to=8,by=8))

For this, the error is:

Error in .as_Spatial(from, cast, IDs) : 
  conversion from feature type sfc_GEOMETRY to sp is not supported

This same error occurs for other few sets of coordinates that I have too.

Not sure what this means. Would appreciate your help, thank you!!

from osrm.

rCarto avatar rCarto commented on May 23, 2024

I'll check this other problem in an other issue (#45).

from osrm.

jiaweniscute avatar jiaweniscute commented on May 23, 2024

Apologies, with the update of the package, some of the coordinates are now throwing errors.

For example:

test<- osrmIsochrone(loc = c(-0.0435358, 51.49206), 
                      breaks = seq(from = 0,to=8,by=8))

The error it is throwing:

The OSRM server returned an error:
Error: InvalidInput
Coordinate is invalid: 0.00190 ,51.41742

The OSRM server returned an error:
Error: InvalidInput
Coordinate is invalid: 0.00190 ,51.46891

The OSRM server returned an error:
Error: InvalidInput
Coordinate is invalid: 0.00190 ,51.52034

Error in UseMethod("st_as_sf") : 
  no applicable method for 'st_as_sf' applied to an object of class "NULL"

This set of coordinates used to work previously before the update.

Any idea why this might be so?

Thank you, again!

from osrm.

rCarto avatar rCarto commented on May 23, 2024

Hopefully the last commit has fixed this issue. I'll have a deeper look into it in a few days...

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.