Bing Map (Virtual Earth) Integration Kit

Last Revised On: 24/04/2009

Project Overview

This page includes an embedded Bing Map (previously known as Virtual Earth map).  It leverages the Bing Map API and web services to display pins based on user locations stored in a MySQL database. 

Architecture 

 

The Bing Map (Virtual Earth) API is exposed through a Javascript library on the client. When the map first loads, an AJAX call is made to the PHP code on the web server to display all pins stored in the database. When a user enters a new location via the form, the Virtual Earth web service is called to get the latitude and longitude for the entered location, the client-side Javascript adds the pin to the map and the results are posted back to the PHP code running on the server in order to store the location in the database.

Note that the web server environment can be Linux/Apache, Windows/Apache or Windows/IIS.

 

Demo

This demo has been implemented for both PHP & MySQL and PHP & SQL Express environments.  Each solution package includes a detailed readme with instructions to integrate the solution files into your site.

Download Solution Package From CodePlex Now