Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 BingGeocoder.Lib
Octocat-spinner-32 BingGeocoder.Specs
Octocat-spinner-32 packages
Octocat-spinner-32 .gitignore
Octocat-spinner-32 BingMappingGeocoder.sln
Octocat-spinner-32 README.mdown
README.mdown

Bing Geocoding Helper

The Bing Geocoding Helper is a wrapper for the Bing Geocoding API that let you geocode either an address or query.

Install

nuget PM> Install-Package BingGeocodingHelper

Usage

You'll need a Bing API key for this to work.

//Address geocoding

using BingGeocoder;

var geocoder = new BingGeocoderClient("MyBingKey");
var result = new BingGeocoderResult();
result = geocoder.Geocode("1230 Peachtree St", "Atlanta", "GA", "30309");

//Result
result.Confidence
result.Latitude
result.Longitude
result.ErrorMessage

//Query geocoding

using BingGeocoder;

var geocoder = new BingGeocoderClient("MyBingKey");
var result = new BingGeocoderResult();
result = geocoder.Geocode("Atlanta");

//Result
result.Confidence
result.Latitude
result.Longitude
result.ErrorMessage

Testing

Complete test class included.

Something went wrong with that request. Please try again.