Giter Site home page Giter Site logo

Here polyline decoder about xyz HOT 2 CLOSED

geolytix avatar geolytix commented on May 22, 2024
Here polyline decoder

from xyz.

Comments (2)

dbauszus-glx avatar dbauszus-glx commented on May 22, 2024

Following link can be used to generate response with a polyline component from the Here v8 API.

https://isoline.router.hereapi.com/v8/isolines?apiKey={key}&range[type]=time&range[values]=600&destination=52.5308,13.3847&transportMode=car

This is NOT an encoded OL feature or even geometry.

As outlined in the documentation of the here/felixble-polyline repository. The encoded string has a header which needs to be evaluated first.

If the header is known and truncated from the polyline string it should be possible to decode a float as well as the deltas belonging to that float.

https://codepen.io/dbauszus-glx/pen/qBaRzOK

from xyz.

dbauszus-glx avatar dbauszus-glx commented on May 22, 2024

I added the Here Polyline as a module to the utils.

https://github.com/GEOLYTIX/xyz/blob/development/lib/utils/herePolyline.mjs

xyz.utils.herePolyline.decode('BFoz5xJ67i1B1B7PzIhaxL7Y')

from xyz.

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.