Bing Maps – Draggable Routes and New Navigation – Welcome to June 2007

Microsoft finally has added draggable routes to their Bing Maps service. ‘Bout time guys since Google has had it for over 2 years. That said I’ve been using Bing Maps more lately because I don’t trust the Google Maps layers (great API, horrible data).

Is anyone going to host a Bing Maps Party?

About James Fee
Chief Evangelist for WeoGeo.com

15 Responses to Bing Maps – Draggable Routes and New Navigation – Welcome to June 2007

  1. Pingback: Bing Maps Update | GIS Lounge – Geographic Information Systems

  2. yodel says:

    You can’t blame me for this one… The newer data was partly me though ;)

    Although I hate to see anyone else lose their job I sure hope the dolt responsible for that heinous M$ video got the boot last week.

  3. Steven Vance says:

    Horrible data? What?
    What’s so bad about it?

    You know, the Report A Problem feature works pretty well. Read about my experience here:
    http://www.stevevance.net/planning/2009/11/google-maps-the-dynamic-gis-system/

  4. Pingback: Steven can plan – Google Maps, the dynamic GIS system

  5. Andrew says:

    At PDC 2009 one of the Microsoft Bing Map reps told me the AJAX API for Bing Maps would also soon include this feature for programmers to use the draggable routes as right now this feature is only on the consumer website at Bing.com/maps. So that’s great news for developers!

  6. Yumi Vega says:

    i am using both Bing and Google and i think both search engines give relevant search results. i would still prefer Google though, because it gives a little bit more relevant search results than Bing.

  7. Carmen Gomez says:

    BING search engine is just as good as Google. In my own personal experience, Google does give more releveant search result than Bing but the difference is very small. **

  8. Tom says:

    i am a user of Microsofts BING search engine and it is as good as google search. for searching blogs, i think google gives more relevant search results compared bing.

  9. Kymm says:

    i think that Bing is not as good as Google. Google would still index new websites faster than Bing. Microsoft would still need a lot of catching to do with GoogleBot.

  10. Kim Lautner says:

    I use both Bing and Google search engine and i dont see much difference in their search results. I use google for searching hard to find academic topics and Bing for general search.

  11. I use Bing and Google whenever i want to find something on the internet. I think that both search engines are very good. *

  12. Katie Patel says:

    it is only a matter of time before Bing Microsoft acquires Yahoo search engine-*~

  13. i still frequently use Google despite the appearance and popularity of the Bing search engine”‘~

  14. i would have to say that Google is slightly better than Bing search engine,;;

  15. Mahesh Shinde says:

    I am trying to implement draggable route with waypoint functionality using bing map AJAX API.

    how can I generate draggable route with waypoint functionality using Bing map AJAX API? Can you please help me? Do you have sample code or example for this draggable route functionality using Bing map AJAX API?

    Following is my code:

    function GetDirections() {

    slRoute.DeleteAllShapes();
    
    pointArray = new Array();
    
    var options = new VERouteOptions();
    
    options.DrawRoute = false;
    
    options.RouteCallback = onGotRoute;
    
    map.GetDirections([document.getElementById("txtStart").value, document.getElementById("txtEnd").value], options);
    

    }

    function onGotRoute(route) {

    map.SetMapView(route.ShapePoints);
    
    var shape = new VEShape(VEShapeType.Polyline, route.ShapePoints);
    
    shape.SetLineColor(new VEColor(255, 165, 0,0.5));
    
    shape.SetLineWidth(5);
    
    shape.HideIcon();
    
    shape.SetTitle("MyRoute");
    
    shape.SetZIndex(1000, 2000);
    
    slRoute.AddShape(shape);
    

    map.AttachEvent("onmouseover", HandleMouseOverRoute);
    

    }

    function HandleMouseOverRoute(e) {

    if (e.elementID != null) {
    
    if (map.GetShapeByID(e.elementID).GetTitle().match("MyRoute")) {
    
        map.DetachEvent("onmouseover", HandleMouseOverRoute);
    
        var x = e.mapX;
    
        var y = e.mapY;
    
        var LL = map.PixelToLatLong(new VEPixel(x, y));
    
        dragPoint = new VEShape(VEShapeType.Pushpin, LL);
    
        dragPoint.SetCustomIcon("./IMG/drag.png");
    
        dragPoint.SetZIndex(1000, 2000);
    
        slDragPoint.AddShape(dragPoint);
    
        map.AttachEvent("onmousemove", HandleMouseOverRouteMove);
    
    }
    

    }

    }

    function HandleMouseOverRouteMove(e) {

    if (e.elementID != null) {
    
    if (map.GetShapeByID(e.elementID).GetTitle().match("MyRoute")) {
    
        var x = e.mapX;
    
        var y = e.mapY;
    
        var LL = map.PixelToLatLong(new VEPixel(x, y));
    
        dragPoint.SetPoints(LL);
    
        map.AttachEvent("onmousedown", HandleMouseDown);
    
    }
    

    }

    else {

    map.DetachEvent("onmousedown", HandleMouseDown);
    
    map.DetachEvent("onmousemove", HandleMouseOverRouteMove);
    
    slDragPoint.DeleteAllShapes();
    
    map.AttachEvent("onmouseover", HandleMouseOverRoute);
    

    }

    }
    function HandleMouseDown(e) {

    map.DetachEvent("onmousemove", HandleMouseOverRouteMove);
    
    map.AttachEvent("onmousemove", HandleDragPointMove);
    
    map.AttachEvent("onmouseup", HandleMouseUp);
    

    }

    But this code doesn’t generate route in order like bing map does. Look at the following image:
    Start Address: New York, NY Destination Address: Boston, MA
    First I dragged the route to GreenField Then I dragged route to Hyde Park. Route should get generate
    from New York, NY->Hyde Park->GreenField->Boston, MA like Bing Map does. But doesn’t generated in order.

    Thanks
    Mahesh