brouter icon indicating copy to clipboard operation
brouter copied to clipboard

How is type data calculated? I didn't find it in the source code

Open xieyongchao2 opened this issue 2 years ago • 7 comments

image How is the type data in the figure calculated? I didn't find it in the source code

xieyongchao2 avatar Apr 14 '22 07:04 xieyongchao2

Type here means incline. I think it is calculated in geo-data-exchange _calculateGradient and called in our Heightgraph subclass (brouter-web repo).

nrenner avatar Apr 14 '22 10:04 nrenner

I found this line of code in this file Heightgraph.js。But I didn't find what this function did

xieyongchao2 avatar Apr 14 '22 10:04 xieyongchao2

First link above (external library).

nrenner avatar Apr 14 '22 11:04 nrenner

OK, I see, but I also want to know how to make this elevation chart on Android?

xieyongchao2 avatar Apr 15 '22 01:04 xieyongchao2

BRouter dies just the route calculation and provides the track to other applications. For the GPX file each track point has elevation information. The visualization has to be done by map tools (OsmAnd, LocusMap, Orux)

zod avatar Apr 15 '22 05:04 zod

Hello, I see this line of segmented code. What is “if this point doesn't have a valid alt.” How is this data generated?

xieyongchao2 avatar Apr 15 '22 06:04 xieyongchao2

I really don't understand what you are trying to achieve. Your previous question was about android and now you are posting links to Javascript code which is perhaps used in brouter-web.

If you want further help please explain what is your goal and how you are trying to achieve it.

zod avatar Apr 15 '22 11:04 zod