When talking about Geo-Location, it’s difficult to keep Maps
out. Fortunately for us, both Bing and Google have a very
extensible Mapping framework already available for us to use.
Today we will use Bing’s Ajax based mapping framework to
calculate driving directions between the user and center of San
Jose, CA and also visualize it on the Map. Before we start using
the mapping framework, you need to login to the Bing Maps
developer portal and get an API Key. You can login using any
Live Id like your Hotmail account. With that minor logistics
out, we’ll go pedal-to-metal with code. Using the Bing Maps Ajax
Control and API In this example, we are going to solve a
hypothetical problem where we are building the ‘Directions’ page
for a super-store. We know the address to our super-store and
for simplicity sake, there is only one address. We will request
user to allow us access to the geo-location API If user gives us
access, great! We’ll calculate the route using Bing’s API and
show the route between user’s detecte