Giter VIP home page Giter VIP logo

Comments (3)

nilsnolde avatar nilsnolde commented on May 16, 2024

Can you please post an actual request (e.g. with dry_run=True and the raw response and its geometry?

By the way, is it possible to get the speed and altitude at each coordinate in the geometry?

altitude yes, speed depends what you want exactly. refer to the documentation of the actual routing engine for details.

from routingpy.

vutle avatar vutle commented on May 16, 2024

You mean this below?

http://localhost:5700/route/v1/car/144.834014,-37.826133;144.826412,-37.848053?overview=full
Parameters:
{
"headers": {
"User-Agent": "routingpy/v0.3.3",
"Content-Type": "application/json"
},
"timeout": 60
}

when I set dry_run=True, no result is returned.
When I don't set dry_run, the results returned is as follow:

[(-37.82582, 144.83398), (-37.82583, 144.83382), (-37.82585, 144.83338), (-37.82587, 144.83304), (-37.82593, 144.83236), (-37.82596, 144.83049), (-37.82604, 144.83002)....

from routingpy.

nilsnolde avatar nilsnolde commented on May 16, 2024

jep, perfect. you're right there's smth wrong with the coord order. that's a (long-standing) bug indeed. in this line here we should reverse each coord, since the way we implemented decoding polylines (the google standard way) we return lat,long order. While we're fixing this, we should modify the decoding methods to take a order parameter defaulting to latlng which can determine in which way we want the coords to be, instead of reversing smth we could have avoided.

anyways, thanks @vutle , weird it went unnoticed for so long.. if you have an interest fixing this, I can review a PR.

from routingpy.

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.