Skip to content

An async .NET client for the Google geocode API

License

Notifications You must be signed in to change notification settings

ethax-ross/GeocodeSharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GeocodeSharp

An async .NET client for the Google geocode API

The object model closely follows the model documented here.

##Example

using System;
using System.Linq;
using System.Threading.Tasks;
using GeocodeSharp.Google;

var address = "21 Henrietta St, Bristol, UK";
var client = new GeocodeClient();
var response = await client.GeocodeAddress(address);
if (response.Status == GeocodeStatus.Ok)
{
    var firstResult = response.Results.First();
    var location = firstResult.Geometry.Location;
    var lat = location.Latitude;
    var lng = location.Longitude;
    // ...
}

About

An async .NET client for the Google geocode API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%