Contents tagged with Geocoding

  • Google Geocoder 1.0

    Posted Sunday 1, August 2010, 16:45 in C#, Google, Geocoding

    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:

    1. add reference to Artem.GoogleGeocoding
    2. add using statement for Artem.Google.Net namespace.
    Features
    • Support standard and reverse geocoding;
    Samples
    • Geocoding Request
    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