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

Last edited Aug 1, 2010 at 3:16 PM by velio, version 7

Comments

Mayank2608 Mar 29, 2012 at 12:54 AM 
Hi,
I am getting error Microsoft JScript Runtime Error : 'Sa' is null or not an object.

during debugging in the eval code[dynamic] file.
Please help.......

vidiot2011 Dec 5, 2011 at 6:05 PM 
Great! Thank you!

cmendible Nov 20, 2010 at 8:08 PM 
Just what I was looking for. Simple and great implementation!!!