C# Class GoogleMaps.LocationServices.GoogleLocationService

Inheritance: ILocationService
Mostra file Open project: sethwebster/GoogleMaps.LocationServices Class Usage Examples

Private Properties

Property Type Description
ParseUS double

Public Methods

Method Description
GetAddressFromLatLang ( double latitude, double longitude ) : GoogleMaps.LocationServices.AddressData

Translates a Latitude / Longitude into an address using Google Maps api

GetDirections ( GoogleMaps.LocationServices.AddressData originAddress, GoogleMaps.LocationServices.AddressData destinationAddress ) : GoogleMaps.LocationServices.Directions

Gets the directions.

GetDirections ( double latitude, double longitude ) : GoogleMaps.LocationServices.Directions

Gets the directions.

GetLatLongFromAddress ( GoogleMaps.LocationServices.AddressData address ) : GoogleMaps.LocationServices.MapPoint

Gets the latitude and longitude that belongs to an address.

GetLatLongFromAddress ( string address ) : GoogleMaps.LocationServices.MapPoint

Gets the latitude and longitude that belongs to an address.

GetRegionFromLatLong ( double latitude, double longitude ) : GoogleMaps.LocationServices.Region

Translates a Latitude / Longitude into a Region (state) using Google Maps api

GoogleLocationService ( ) : System

Initializes a new instance of the GoogleLocationService class. Default calling the API over regular HTTP (not HTTPS).

GoogleLocationService ( bool useHttps ) : System

Initializes a new instance of the GoogleLocationService class.

Private Methods

Method Description
ParseUS ( string value ) : double

Method Details

GetAddressFromLatLang() public method

Translates a Latitude / Longitude into an address using Google Maps api
public GetAddressFromLatLang ( double latitude, double longitude ) : GoogleMaps.LocationServices.AddressData
latitude double
longitude double
return GoogleMaps.LocationServices.AddressData

GetDirections() public method

Gets the directions.
public GetDirections ( GoogleMaps.LocationServices.AddressData originAddress, GoogleMaps.LocationServices.AddressData destinationAddress ) : GoogleMaps.LocationServices.Directions
originAddress GoogleMaps.LocationServices.AddressData From address.
destinationAddress GoogleMaps.LocationServices.AddressData To address.
return GoogleMaps.LocationServices.Directions

GetDirections() public method

Gets the directions.
public GetDirections ( double latitude, double longitude ) : GoogleMaps.LocationServices.Directions
latitude double The latitude.
longitude double The longitude.
return GoogleMaps.LocationServices.Directions

GetLatLongFromAddress() public method

Gets the latitude and longitude that belongs to an address.
public GetLatLongFromAddress ( GoogleMaps.LocationServices.AddressData address ) : GoogleMaps.LocationServices.MapPoint
address GoogleMaps.LocationServices.AddressData The address.
return GoogleMaps.LocationServices.MapPoint

GetLatLongFromAddress() public method

Gets the latitude and longitude that belongs to an address.
public GetLatLongFromAddress ( string address ) : GoogleMaps.LocationServices.MapPoint
address string The address.
return GoogleMaps.LocationServices.MapPoint

GetRegionFromLatLong() public method

Translates a Latitude / Longitude into a Region (state) using Google Maps api
public GetRegionFromLatLong ( double latitude, double longitude ) : GoogleMaps.LocationServices.Region
latitude double
longitude double
return GoogleMaps.LocationServices.Region

GoogleLocationService() public method

Initializes a new instance of the GoogleLocationService class. Default calling the API over regular HTTP (not HTTPS).
public GoogleLocationService ( ) : System
return System

GoogleLocationService() public method

Initializes a new instance of the GoogleLocationService class.
public GoogleLocationService ( bool useHttps ) : System
useHttps bool Indicates whether to call the Google API over HTTPS or not.
return System