none
Increase Bing Map service performance ,(i.e) reduce the processing time or else How? RRS feed

  • Question

  • Hello Bing Map Developers,

    I am using bing map Ajax service ,when I request the service it taking more time to finish the process,How can I increase the performance by reducing the process time ,for better response. If any thing suggested it is helpful.'

    Thanks and Regards

    Muralikrishan

    Tuesday, July 23, 2013 9:41 AM

Answers

  • Can you provide information on how you are using Bing Maps. Bing Maps is one of the fastest mapping platforms on the web. Geocoding usually takes 150ms or less. Most of that time is the time it takes for your ISP to download the response. The map control itself usually loads with 2 seconds or less. If any part of the API is taking longer than 2 seconds then there is a good chance you are doing something incorrect or something else is causing your loading issues.

    http://rbrundritt.wordpress.com

    Tuesday, July 23, 2013 6:06 PM
  • Ok, routes generally take 500ms, however longer routes can take a bit longer. Looking at your request you are also returning the route points. This makes the response from the service very big, upwards of 1MB or more. Normally for really long routes I never see them take more than 2 seconds. If it's taking 5 seconds then there are likely a lot of time being spent simply downloading the results through your internet connection. The only way to speed things up would be to not return the route points but I think that is likely not what you want.

    Since you are using the Bing Maps V7 AJAX control why are you not using the Directions module for routing? The directions manager wraps the Bing Maps REST routing service and ties it into the map for you. It makes for a lot less work for. You can find documentation and samples here:

    http://msdn.microsoft.com/en-us/library/hh312802.aspx

    http://www.bingmapsportal.com/ISDK/AjaxV7#DirectionsModule2


    http://rbrundritt.wordpress.com

    Wednesday, July 24, 2013 8:44 PM

All replies

  • Can you provide information on how you are using Bing Maps. Bing Maps is one of the fastest mapping platforms on the web. Geocoding usually takes 150ms or less. Most of that time is the time it takes for your ISP to download the response. The map control itself usually loads with 2 seconds or less. If any part of the API is taking longer than 2 seconds then there is a good chance you are doing something incorrect or something else is causing your loading issues.

    http://rbrundritt.wordpress.com

    Tuesday, July 23, 2013 6:06 PM
  •  Hi,Thanks for Reply

    I am using Bing map using javascript ajax service  as follows

         <script charset="UTF-8" type="text/javascript" src="https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&s=1"></script>

    The service loading fine but my problem is when I request for the driving directions from source to destination it takes more than 5 seconds and response is too slow. I am using the service in an HTML Bing map Application.  I loaded the data followed by checkbox when checkbox click the service should start and request for the driving directions  but it takes more time to finsih the process. How can I improve that service. For route service I am using this service

    "  encodeURI('https://dev.virtualearth.net/REST/v1/Routes/Driving?wp.0=' + startPoint + '&wp.1=' + endPoint + '&routePathOutput=Points&output=json&jsonp=routeLineCallback&s=1&key=' + credentials); "

    Thanks and Regards

    Muralikrishna


    • Edited by 2014crm Wednesday, July 24, 2013 9:07 AM update content
    Wednesday, July 24, 2013 8:32 AM
  • Ok, routes generally take 500ms, however longer routes can take a bit longer. Looking at your request you are also returning the route points. This makes the response from the service very big, upwards of 1MB or more. Normally for really long routes I never see them take more than 2 seconds. If it's taking 5 seconds then there are likely a lot of time being spent simply downloading the results through your internet connection. The only way to speed things up would be to not return the route points but I think that is likely not what you want.

    Since you are using the Bing Maps V7 AJAX control why are you not using the Directions module for routing? The directions manager wraps the Bing Maps REST routing service and ties it into the map for you. It makes for a lot less work for. You can find documentation and samples here:

    http://msdn.microsoft.com/en-us/library/hh312802.aspx

    http://www.bingmapsportal.com/ISDK/AjaxV7#DirectionsModule2


    http://rbrundritt.wordpress.com

    Wednesday, July 24, 2013 8:44 PM