C# Класс GoogleMaps.LocationServices.GoogleLocationService

Наследование: ILocationService
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ParseUS double

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ParseUS ( string value ) : double

Описание методов

GetAddressFromLatLang() публичный Метод

Translates a Latitude / Longitude into an address using Google Maps api
public GetAddressFromLatLang ( double latitude, double longitude ) : GoogleMaps.LocationServices.AddressData
latitude double
longitude double
Результат GoogleMaps.LocationServices.AddressData

GetDirections() публичный Метод

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.
Результат GoogleMaps.LocationServices.Directions

GetDirections() публичный Метод

Gets the directions.
public GetDirections ( double latitude, double longitude ) : GoogleMaps.LocationServices.Directions
latitude double The latitude.
longitude double The longitude.
Результат GoogleMaps.LocationServices.Directions

GetLatLongFromAddress() публичный Метод

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.
Результат GoogleMaps.LocationServices.MapPoint

GetLatLongFromAddress() публичный Метод

Gets the latitude and longitude that belongs to an address.
public GetLatLongFromAddress ( string address ) : GoogleMaps.LocationServices.MapPoint
address string The address.
Результат GoogleMaps.LocationServices.MapPoint

GetRegionFromLatLong() публичный Метод

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
Результат GoogleMaps.LocationServices.Region

GoogleLocationService() публичный Метод

Initializes a new instance of the GoogleLocationService class. Default calling the API over regular HTTP (not HTTPS).
public GoogleLocationService ( ) : System
Результат System

GoogleLocationService() публичный Метод

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.
Результат System