DiscoverTenerife
Static Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
mapRulesHandler Class Reference

This class stores the geographic zone releated values, like which are the zones of the map. More...

Static Public Member Functions

static List< string > getZoneNames ()
 getter of the zoneNames_ static property. More...
 
static List< string > getTypesOfSites ()
 getter of the typeOfSites_ static property. More...
 
static string getZoneOf (double latitude, double longitude)
 

Static Public Attributes

static double earthRadious = 6377.830272
 double stores the earth radious More...
 
static double fromKMtoMilles = 0.621371
 double stores the conversion of kms to milles More...
 

Static Private Attributes

static List< string > zoneNames_ = new List<string> { "North", "West", "Center", "East", "South"}
 List<string> that contains the name of each of the zones that is divided the map of the app. More...
 
static List< string > typesOfSites_ = new List<string> { "beaches", "hikingRoutes", "naturalParks", "naturalPools", "viewpoints"}
 List<string> that contains the valid types of the interesting points. More...
 

Detailed Description

This class stores the geographic zone releated values, like which are the zones of the map.

This class shouldn't be initialized, all its properties and methods are static.

Member Function Documentation

◆ getTypesOfSites()

static List< string > mapRulesHandler.getTypesOfSites ( )
static

getter of the typeOfSites_ static property.

Returns
List<string> that contains the valid type of the interesting points.

◆ getZoneNames()

static List< string > mapRulesHandler.getZoneNames ( )
static

getter of the zoneNames_ static property.

Returns
List<string> that contains the name of each of the zones of the map.

◆ getZoneOf()

static string mapRulesHandler.getZoneOf ( double  latitude,
double  longitude 
)
static
Parameters
doublelatitude of the point
doublelongitude of the point
Returns
string it returns the zone of the given point. If it doesnt fit on any of the defined zones, it returns "Can't Find Zone of given point"

Member Data Documentation

◆ earthRadious

double mapRulesHandler.earthRadious = 6377.830272
static

double stores the earth radious

◆ fromKMtoMilles

double mapRulesHandler.fromKMtoMilles = 0.621371
static

double stores the conversion of kms to milles

◆ typesOfSites_

List<string> mapRulesHandler.typesOfSites_ = new List<string> { "beaches", "hikingRoutes", "naturalParks", "naturalPools", "viewpoints"}
staticprivate

List<string> that contains the valid types of the interesting points.

You have to be aware that changing this attribute wont change the options menu, you will have to change the option menu manually.

◆ zoneNames_

List<string> mapRulesHandler.zoneNames_ = new List<string> { "North", "West", "Center", "East", "South"}
staticprivate

List<string> that contains the name of each of the zones that is divided the map of the app.


The documentation for this class was generated from the following file: