Coder Social home page Coder Social logo

Comments (5)

nilsnolde avatar nilsnolde commented on June 21, 2024

Raw requests will work (as in the playground). However, ors-py offers some level of abstraction and I'm fairly sure this won't be implemented any time soon (if ever), sorry. It's actually the first time this was raised in > 2 years, so (luckily) not a lot of people have a use case for GPX in Python.

Of course happy to review a PR if you wanna add it upstream. The gpxpy package could be an option, seems to be well maintained I wouldn't like the maintenance of GPX parsing in this repo.

from openrouteservice-py.

nilsnolde avatar nilsnolde commented on June 21, 2024

I just realized that the doc string for directions.directions mentions gpx. If you're not interested in a PR, I'll change that and throw an appropriate error when it's tried.

from openrouteservice-py.

kuznetsov-a avatar kuznetsov-a commented on June 21, 2024

Understood, if gpx is actually not supported, it should not be available as a format option

from openrouteservice-py.

nilsnolde avatar nilsnolde commented on June 21, 2024

Or it could just return the gpx response as plain text, so you can parse it in the client. I also maintain the routing-py package where we actually parse the JSON response, forgot for a moment that ors-py only gives the loaded JSON back anyways without parsing. So it could do the same for GPX, that's true. Would that be enough?

from openrouteservice-py.

kuznetsov-a avatar kuznetsov-a commented on June 21, 2024

Plain text response would be great, thanks. My use case for gpx is to save the route to a file that I can load into a navigation program. It would be great to be able to do it without resorting to raw api calls

from openrouteservice-py.

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.