mapbox / guidance-replay Goto Github PK
View Code? Open in Web Editor NEWEvent source for visual guidance simulation that turns timestamped GeoJSON into mock location events
Event source for visual guidance simulation that turns timestamped GeoJSON into mock location events
Currently, the getSteps function for v4 responses
matches the coordinates (1) for each maneuver to (2) the coordinates the comprise the LineString, and use those coordinates to create the step feature.
I'm running into the issue where some maneuver coordinates have a different number of decimal places than the coordinates in the route geometry (example where maneuver latitudes have 6 decimal places and route geometry latitudes have 5).
@yhahn I'll poke at adding some catches here with some additional tests and see if that helps fix some of the problems with using v4 routes in the simulator. Sound bueno?
Not sure where it'll fit into our suite of tools long run but parking here is fine for now.
Cutting a ticket so we don't forget that there may be a better home for this class elsewhere
As of now, I'm using time to keep track of what step we're on in the route. Current step is a required parameter for integration with navigation.js
.
This works great when "spacing": "constant"
, but the instructions start to behave unexpectedly around maneuvers. I think this is because we formulaically ease from the speed of the current segment into the speed of the next segment, which offsets our current time & coordinate combination from the expectation. At maneuvers, we are farther along the route than is expected by the function.
I'm trying to think of a solution that better integrates with "spacing": "acceldecel"
mode. I could reattempt distance-based step identification, but had ultimately decided on time-based identification after struggling with highway cloverleaf interchanges. I wonder if there's a way to pull in speedChange
into the Locator to better prepare for maneuvers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.