AskGeo .NET  1.1.0
AskGeo Libraries for .NET
 All Classes Namespaces Functions Variables Enumerations Pages
Public Member Functions
AskGeo.Flt.TimeZoneResult Class Reference

Embodies the result of a query on the TimeZoneMap class. More...

Inheritance diagram for AskGeo.Flt.TimeZoneResult:
AskGeo.Flt.ResultBase

List of all members.

Public Member Functions

String GetTimeZoneId ()
 Returns the Olson time zone ID (can be used with Java's TimeZone class or other tz-database-compatible time zone classes).
String GetWindowsStandardName ()
 Returns the Windows Standard Name for the time zone (can be used with Microsoft's .NET framework to instantiate a TimeZoneInfo object).
- Public Member Functions inherited from AskGeo.Flt.ResultBase
override String ToString ()
 The string representation of a result is a tab-separated concatenation of all the data fields.
PolygonData GetPolygonData ()
 Returns the polygon data for the shape from which this result was built
int GetAskGeoId ()
 Within each map, every shape has a unique int ID.
bool GetIsInside ()
 Query points that are not within any of the shapes in the map will snap-to the nearest shape if that shape is within a specified snap-to radius. This method returns whether the this particular query point was inside the shape from which this result was built.
float GetMinDistanceKm ()
 Query points that are not within any of the shapes in the map will snap-to the nearest shape if that shape is within a specified snap-to radius. If the query point was inside the shape, this method returns zero. If the query point was outside the shape, this method returns the smallest distance (in km) along the surface of the globe between the query point and the outer boundary of the shape.
String GetResultField (DataFieldInterface f)
 The AskGeo ID, the isInside bool, and the minDistanceKm may be accessed by the direct accessors getAskGeoId, getIsInside, and getMinDistanceKm. They may also be accessed by using this method with the ResultField enum.
String GetDataField (DataFieldInterface e)
 Each map has metadata associated with each shape. That metadata is returned with results built from that shape. This method gives access to that metadata using a DataField enum. Each map has an public inner enum called DataField. Passing
float ParseFloatOrNan (String text)
 All data fields are stored as strings but many are more useful as numbers. This method converts a String to a float. If the conversion fails, float.NaN is returned.
int ParseIntOrElse (String text, int alt)
 All data fields are stored as strings but many are more useful as numbers. This method converts a String to an int. If the conversion fails, alt is returned.

Detailed Description

Embodies the result of a query on the TimeZoneMap class.


Member Function Documentation

String AskGeo.Flt.TimeZoneResult.GetTimeZoneId ( )

Returns the Olson time zone ID (can be used with Java's TimeZone class or other tz-database-compatible time zone classes).

Returns:
the Olson time zone ID.
String AskGeo.Flt.TimeZoneResult.GetWindowsStandardName ( )

Returns the Windows Standard Name for the time zone (can be used with Microsoft's .NET framework to instantiate a TimeZoneInfo object).

Returns:
the Windows Standard Name for the time zone.

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