Google Geocoding Web Service via HTTP .NET client implemented in request(GeoRequest)-response(GeoResponse) fashion.
Installation & Usage
In order to use the GoogleGecoding you have to:
- add reference to Artem.GoogleGeocoding
- add using statement for Artem.Google.Net namespace.
Features
- Support standard and reverse geocoding;
Samples
GeoRequest request = new GeoRequest("plovdiv bulgaria");
GeoResponse response = request.GetResponse();
GeoLocation location = response.Results[0].Geometry.Location;
double latitude = location.Latitude;
double longitude = location.Longitude;
// TODO use latitude/longitude values
- Reverse Geocoding Request
GeoRequest request = new GeoRequest(42.1438409, 24.7495615);
GeoResponse response = request.GetResponse();
string address = response.Results[0].FormattedAddress;
// TODO use address values