cogsci / wigglemap

Repo for reroute hackathon at Hattery (For Diana)
www.wigglemap.com
5 stars 0 forks source link

Total climb data should sum all the climbs #77

Open epan opened 12 years ago

epan commented 12 years ago

Currently it seems to show the net climb. Does it make more sense to show the total amount of climbing to be done rather than the net climb minus the downhill? We got feedback wanting to see the sum climb and that's how Strava and other apps work, I believe.

@andrewdanks @slinlee @dhchow

andrewdanks commented 12 years ago

Yeah, we can do this (kind of). If we continue to use Google Elevations API, then there's a limit to how accurate it can be, because all we can get are elevations at start and end points of some segment in the route, getting the total climb out of this assumes that there was no downhill between the two points.

Is there a more accurate way of calculating this?

andrewdanks commented 12 years ago

And this isn't a bug, per se, but an enhancement.

slinlee commented 12 years ago

For now it sounds fine to use the elevation from the start/end points of a segment. Is it possible to split segments more by asking for things like, "from here to 100 ft towards the end of the segment" ?

On Tue, Nov 6, 2012 at 11:39 AM, Andrew Danks notifications@github.comwrote:

Yeah, we can do this (kind of). If we continue to use Google Elevations API, then there's a limit to how accurate it can be, because all we can get are elevations at start and end points of some segment in the route, getting the total climb out of this assumes that there was no downhill between the two points.

Is there a more accurate way of calculating this?

— Reply to this email directly or view it on GitHubhttps://github.com/cogsci/wigglemap/issues/77#issuecomment-10124516.

andrewdanks commented 12 years ago

Hmm, not that I can think of. I don't know how we'd get the longitude/latitude coordinates of a point X ft away from another coordinate. Maybe it's a little possible if we also have the heading, but then we assume there are no turns in between. Sounds complicated, lol, or maybe I'm over thinking this.

epan commented 12 years ago

How did the WSJ do it? I linked the blog post.

(mobile)

On Nov 6, 2012, at 11:54 AM, Andrew Danks notifications@github.com wrote:

Hmm, not that I can think of. I don't know how we'd get the longitude/latitude coordinates of a point X ft away from another coordinate. Maybe it's a little possible if we also have the heading, but then we assume there are no turns in between. Sounds complicated, lol, or maybe I'm over thinking this.

— Reply to this email directly or view it on GitHub.

kmiyashiro commented 11 years ago

https://developers.google.com/maps/documentation/javascript/elevation