Bing Map GeoCoding

If you want to get started with Bing Map GeoCoding, there is no better way than the instructions you can find at the URL:

https://msdn.microsoft.com/en-us/library/cc161074.aspx

If you want to give WebMatrix a shot, you can simply copy and paste the application code at the bottom of the page, except for one thing, you have to add the pushpin images.  There are three pushpin images in the center of the page that you can cut and paste into paint, paint.net or other application.  Or you can simply make your own.  Once you do, then you will need to import the GIFs into Web Matrix, using the “Add Existing File…” as shown below.  If you don’t do that, then you will get the small red X on the page.

image

 

Once you get the page working (I used Default.cshtml as my file name), you will get the following output:

 

image

Once you select one of the addresses, you will see:

image

Pretty cool.  I have zipped up the Web Matrix file and included it below.

BingMapLocation.zip