Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Bing map api problem

    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...
    Code:
     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..........
    Last edited by dofdiamond; 12-23-2011 at 06:55 AM.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    This isn't PHP code, its Javascript. Moving from PHP to Javascript forum.

  • #3
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, you are right...

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •