GSAK (Geocaching Swiss Army Knife)
Contents - Index

Elevation (function)

elevation(nEle,[nRound]) : Numeric

nEle - Elevation
nRound - Number of digits to round (optional, defaults to 1)

These functions have been added to simplify macro usage of elevation. The elevation data stored in the database is *always* in meters. However, these functions take into account the user's settings and return the value as per the users miles/kms setting doing the conversion as required.

This saves you having to worry about testing the $_Units value and doing the corresponding conversion (g_elevation() is for usage in Sqlite). 

Alpha List         Category List
Copyright 2004-2016 CWE Computer Services  
Privacy Policy Contact