C# Class FakeGPS.Common.GeolocationHelper

Static class to help with Geolocation operations.
Show file Open project: juliankay/FakeGPS

Public Methods

Method Description
Get ( ) : LatLong

Get the current location from the Windows location API.

This currently includes Thread.Sleep hack to ensure the device is ready.

IsValid ( string latLong ) : bool

Checks to see if the location string is valid.

ToLatLong ( string latLong ) : LatLong

Convert a location string to a LatLong.

Method Details

Get() public static method

Get the current location from the Windows location API.
This currently includes Thread.Sleep hack to ensure the device is ready.
public static Get ( ) : LatLong
return LatLong

IsValid() public static method

Checks to see if the location string is valid.
public static IsValid ( string latLong ) : bool
latLong string The location string.
return bool

ToLatLong() public static method

Convert a location string to a LatLong.
public static ToLatLong ( string latLong ) : LatLong
latLong string The location string.
return LatLong