C# Class Geocoding.Google.GoogleGeocoder

http://code.google.com/apis/maps/documentation/geocoding/
Inheritance: IGeocoder, IAsyncGeocoder
Show file Open project: chadly/Geocoding.net Class Usage Examples

Public Methods

Method Description
Geocode ( string address ) : IEnumerable
GeocodeAsync ( string address ) : Task>
GeocodeAsync ( string address, CancellationToken cancellationToken ) : Task>
GoogleGeocoder ( ) : System
GoogleGeocoder ( BusinessKey businessKey ) : System
GoogleGeocoder ( string apiKey ) : System
ReverseGeocode ( Location location ) : IEnumerable
ReverseGeocode ( double latitude, double longitude ) : IEnumerable
ReverseGeocodeAsync ( double latitude, double longitude ) : Task>
ReverseGeocodeAsync ( double latitude, double longitude, CancellationToken cancellationToken ) : Task>

Private Methods

Method Description
BuildAddress ( string street, string city, string state, string postalCode, string country ) : string
BuildGeolocation ( double latitude, double longitude ) : string
BuildWebRequest ( string type, string value ) : HttpWebRequest
EvaluateLocationType ( string type ) : GoogleLocationType https://developers.google.com/maps/documentation/geocoding/?csw=1#Results
EvaluateStatus ( string status ) : GoogleStatus http://code.google.com/apis/maps/documentation/geocoding/#StatusCodes
EvaluateType ( string type ) : GoogleAddressType http://code.google.com/apis/maps/documentation/geocoding/#Types
IAsyncGeocoder ( double latitude, double longitude ) : Task>
IAsyncGeocoder ( double latitude, double longitude, CancellationToken cancellationToken ) : Task>
IAsyncGeocoder ( string address ) : Task>
IAsyncGeocoder ( string address, CancellationToken cancellationToken ) : Task>
IAsyncGeocoder ( string street, string city, string state, string postalCode, string country ) : Task>
IAsyncGeocoder ( string street, string city, string state, string postalCode, string country, CancellationToken cancellationToken ) : Task>
IGeocoder ( Location location ) : IEnumerable
IGeocoder ( double latitude, double longitude ) : IEnumerable
IGeocoder ( string address ) : IEnumerable
IGeocoder ( string street, string city, string state, string postalCode, string country ) : IEnumerable
LoadXmlResponse ( WebResponse response ) : XPathDocument
ParseAddresses ( XPathNodeIterator nodes ) : IEnumerable
ParseComponentTypes ( XPathNodeIterator nodes ) : IEnumerable
ParseComponents ( XPathNodeIterator nodes ) : IEnumerable
ProcessRequest ( HttpWebRequest request ) : IEnumerable
ProcessRequestAsync ( HttpWebRequest request, CancellationToken cancellationToken = null ) : Task>
ProcessResponseAsync ( RequestState requestState, IAsyncResult result ) : IEnumerable
ProcessWebResponse ( WebResponse response ) : IEnumerable
SendRequestAsync ( RequestState requestState, AsyncCallback callback ) : IAsyncResult

Method Details

Geocode() public method

public Geocode ( string address ) : IEnumerable
address string
return IEnumerable

GeocodeAsync() public method

public GeocodeAsync ( string address ) : Task>
address string
return Task>

GeocodeAsync() public method

public GeocodeAsync ( string address, CancellationToken cancellationToken ) : Task>
address string
cancellationToken System.Threading.CancellationToken
return Task>

GoogleGeocoder() public method

public GoogleGeocoder ( ) : System
return System

GoogleGeocoder() public method

public GoogleGeocoder ( BusinessKey businessKey ) : System
businessKey BusinessKey
return System

GoogleGeocoder() public method

public GoogleGeocoder ( string apiKey ) : System
apiKey string
return System

ReverseGeocode() public method

public ReverseGeocode ( Location location ) : IEnumerable
location Location
return IEnumerable

ReverseGeocode() public method

public ReverseGeocode ( double latitude, double longitude ) : IEnumerable
latitude double
longitude double
return IEnumerable

ReverseGeocodeAsync() public method

public ReverseGeocodeAsync ( double latitude, double longitude ) : Task>
latitude double
longitude double
return Task>

ReverseGeocodeAsync() public method

public ReverseGeocodeAsync ( double latitude, double longitude, CancellationToken cancellationToken ) : Task>
latitude double
longitude double
cancellationToken CancellationToken
return Task>