...

View Full Version : Bing map api problem



dofdiamond
12-22-2011, 05:10 AM
Hi,
I am working on bing map.
I have many address for property and i want nearest tube station's information for every address in UK.
I want to store all data in mysql database.
Plz any working example....
Thanks for reply...


function businessDisambiguationExample()
{
if (!directionsManager) { createDirectionsManager(); }
directionsManager.resetDirections({resetRequestOptions: true});
directionsManager.resetDirections();

var address1 = document.getElementById("address").value = 'address here';
//alert(address1);
var seattleWaypoint = new Microsoft.Maps.Directions.Waypoint({ address: address1 });
directionsManager.addWaypoint(seattleWaypoint);
//var mcdonaldsWaypoint = new Microsoft.Maps.Directions.Waypoint({ address: 'Nationalrailstations' });
var mcdonaldsWaypoint = new Microsoft.Maps.Directions.Waypoint({ address: 'tubestations' });
directionsManager.addWaypoint(mcdonaldsWaypoint);
// Set the element in which the itinerary will be rendered
directionsManager.setRenderOptions({ itineraryContainer: document.getElementById('directionsItinerary') });
// Set Route Mode to driving
directionsManager.setRequestOptions({ routeMode: Microsoft.Maps.Directions.RouteMode.driving });
//alert('Calculating directions...');
directionsManager.calculateDirections();
}

i use this function for searching but not working properly...
Reply plz..........

Fou-Lu
12-22-2011, 02:47 PM
This isn't PHP code, its Javascript. Moving from PHP to Javascript forum.

dofdiamond
12-23-2011, 05:01 AM
Yes, you are right...

But i call the function in php code and i want result in mysql database using php....
Plz Reply............



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum