Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance Calculation / Polyline #15

Open
dshepsis opened this issue Apr 29, 2021 · 3 comments
Open

Distance Calculation / Polyline #15

dshepsis opened this issue Apr 29, 2021 · 3 comments
Labels
Leaflet Map Pertaining to the leaflet map To Do Planned to be implemented

Comments

@dshepsis
Copy link
Owner

It should be possible to calculate the distance between things on the map. Of course, this will be an approximation depending on how it's implemented. If you take a straight line between two treasures, it won't account for the 3D terrain between those points. But an approximation could still be useful for estimating things like travel time for a full route through an area. In fact, travel time should probably be calculated by the app using speed values determined from Cheat Engine. You could even allow users to plot a polyline between multiple places on the map so that multiple routes through an area can be compared for efficiency.

@dshepsis dshepsis added To Do Planned to be implemented Leaflet Map Pertaining to the leaflet map labels Apr 29, 2021
@zysim
Copy link
Contributor

zysim commented Jun 27, 2021

We do got these here speed values don't we now

@dshepsis
Copy link
Owner Author

We do got these here speed values don't we now

We do have some raw speed values, but movement can be kind of complicated. You start with a tackle, then green dash, then gold dash, and there's some acceleration between each. Changing direction and moving up/down hills can also have some effect, I think. Getting a rough estimate of travel time could be nice eventually, though, even if there's some error.

@zysim
Copy link
Contributor

zysim commented Jun 27, 2021

Yeah was looking at the values in CE while running about. Maybe we could start with set values for green and gold dash? Like say 5.6 while green and 6.9 while gold? And the time from green to gold is pretty set too. And yeah I know when moving up or downhill your speed does change though. Actually we could take the start and end point z-coordinates, do simple trigonometry there, then give your rough estimates that way, if you're okay with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Leaflet Map Pertaining to the leaflet map To Do Planned to be implemented
Projects
None yet
Development

No branches or pull requests

2 participants