events posted with distance from Home GZ
events posted with distance from Home GZ
could I request a enhancement to the Dashboard to include distance for the event caches
ie http://geocaching.com.au/dashboard/au/
it makes a just a little easier to determine potential events to visit, I'm not sure we need exact kms just some indication
ie http://geocaching.com.au/dashboard/au/
it makes a just a little easier to determine potential events to visit, I'm not sure we need exact kms just some indication
actually what would be super-cool is a feed that would automatically put these in your calendar via http://en.wikipedia.org/wiki/ICalendar
Online
Good idea!
- CraigRat
- 850 or more found!!!
- Posts: 7015
- Joined: 23 August 04 3:17 pm
- Twitter: CraigRat
- Facebook: http://facebook.com/CraigRat
- Location: Launceston, TAS
- Contact:
Re: events posted with distance from Home GZ
For performance reasons, the dashboard is cached and therefor is the same for everyone, adding that may cause some issues, however we can perhaps address this when we go to new hardware.mtrax wrote:could I request a enhancement to the Dashboard to include distance for the event caches
ie http://geocaching.com.au/dashboard/au/
it makes a just a little easier to determine potential events to visit, I'm not sure we need exact kms just some indication
Good idea!
- Bewilderbeest
- 2000 or more caches found
- Posts: 955
- Joined: 24 December 06 4:18 pm
- Location: Canberra
You of course can do the calcs yourself as they are fairly easy Depending how acurate you want to get... the rough mud math way is to just use pythag (ie right angle triangle) but throw in a cos(latitude) for good measure.
distance in km = sqrt((abs(lon1 - lon2) * cos((lat1 + lat2) / 2))^2 + (abs(lat1 - lat2) * 100)^2)
Of course if you want to get precise you need to use the great circle distance formular, but the above is good enough for most cases.
distance in km = sqrt((abs(lon1 - lon2) * cos((lat1 + lat2) / 2))^2 + (abs(lat1 - lat2) * 100)^2)
Of course if you want to get precise you need to use the great circle distance formular, but the above is good enough for most cases.
- riblit
- It's the journey.
- Posts: 3444
- Joined: 04 April 03 6:30 pm
- Location: Land Grant of John Campbell
We have a function in the codebase but as previously stated we don't want to impact on the performance by doing this for individual page reguests.delta_foxtrot2 wrote:You of course can do the calcs yourself as they are fairly easy Depending how acurate you want to get... the rough mud math way is to just use pythag (ie right angle triangle) but throw in a cos(latitude) for good measure.
distance in km = sqrt((abs(lon1 - lon2) * cos((lat1 + lat2) / 2))^2 + (abs(lat1 - lat2) * 100)^2)
Of course if you want to get precise you need to use the great circle distance formular, but the above is good enough for most cases.
- caughtatwork
- Posts: 17025
- Joined: 17 May 04 12:11 pm
- Location: Melbourne
- Contact:
- caughtatwork
- Posts: 17025
- Joined: 17 May 04 12:11 pm
- Location: Melbourne
- Contact:
Online
I forgot about that page!
/brain is rusty
- CraigRat
- 850 or more found!!!
- Posts: 7015
- Joined: 23 August 04 3:17 pm
- Twitter: CraigRat
- Facebook: http://facebook.com/CraigRat
- Location: Launceston, TAS
- Contact:
DOH!!!!caughtatwork wrote:Or you can use this page
http://geocaching.com.au/caches/events/au/
It's just not on the dashboard.
I forgot about that page!
/brain is rusty
perfect...caughtatwork wrote:Or you can use this page
http://geocaching.com.au/caches/events/au/
It's just not on the dashboard.
btw what happens to caches like this... http://geocaching.com.au/cache/ga1037 a FTF still available
Basic math functions aren't questionable, and you can easily use noscript tags for those with it disabled on a per site or entirely.caughtatwork wrote:I would prefer not. Javascript is unreliable across browsers, it takes more code to download and not everyone has it turned on. To cater for the most we do it server side. Use the other link which is generated in real time based on your home co-ords.
Most problems with JS is related to displaying, or layout etc.