Class gpsClass

Description

Mainclass to write the google map

Located in /components/com_joomgpstracks/helpers/gpsClass.php (line 19)


	
			
Variable Summary
 mixed $gpsFile
Method Summary
 void createBeatsData ( $coords)
 string createChartsData (array $coords)
 string distance2chart (string $distance)
 array getCoords (string $file)
 int getDistance (array $koord)
 array getElevation (array $coords)
 void getMapNates ()
 void getTracks ()
 object loadFile ()
 string writeMap ()
 void writeTrack ( $track)
Variables
mixed $gpsFile = NULL (line 21)
Methods
createBeatsData (line 660)
  • access: public
void createBeatsData ( $coords)
  • $coords
createChartsData (line 639)
  • access: public
string createChartsData (array $coords)
  • array $coords
distance2chart (line 686)
  • access: public
string distance2chart (string $distance)
  • string $distance
getCoords (line 436)

checks if the given file is a GPX or KML file and call the function for it

  • access: public
array getCoords (string $file)
  • string $file
getDistance (line 389)

counts the distance of a track $koords look like this: $array($point1(array(lat,lon)),$point2(array(lat,lon)))...

  • return: kilometers
  • access: public
int getDistance (array $koord)
  • array $koord
getElevation (line 612)
  • access: public
array getElevation (array $coords)
  • array $coords
getMapNates (line 111)
void getMapNates ()
getStartCoordinates (line 43)
  • access: public
array getStartCoordinates ()
getTracks (line 143)
void getTracks ()
loadFile (line 28)
  • access: public
object loadFile ()
writeMap (line 171)

this writes the Javascript code for the overview map

the map is shown in a div container with <strong>id="map"</strong>

  1.  $gps new gpsClass();
  2.  $track loadObject($query);
  3.  $gps->writeMap($track);

  • return: Javascriptcode
  • access: public
string writeMap ()
writeTrack (line 210)
  • access: public
void writeTrack ( $track)
  • $track

Documentation generated on Fri, 21 Aug 2009 16:44:21 +0200 by phpDocumentor 1.4.2