none
Bing map location search API doesnt return resources sometimes. Gives results on load RRS feed

  • Question

  • I am sending lat and longs to the Location search API code and mostly first time some lat/longs dont have resources . Below is one such example . On refresh we see results.

    https://dev.virtualearth.net/REST/v1/Locations/37.605261,-122.19502?output=json&jsonp=LocationPane.drawLocationHistory_2_OnMap&key=AgTx6qt5q71b5o72G8kpkjtZpeOSIBibSLM7fhFaitPDNy9B4PYx6e4l0iN9oz3l

    Response :

    LocationPane.drawLocationHistory_2_OnMap({"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2013 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.","resourceSets":[{"estimatedTotal":0,"resources":[]}],"statusCode":200,"statusDescription":"OK","traceId":"12fc889d922f438585784b226c985b41|BL2M001302|02.00.117.100|BL2MSNVM002810, BL2MSNVM001816"})

    on Refresh

    LocationPane.drawLocationHistory_2_OnMap({"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2013 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.","resourceSets":[{"estimatedTotal":1,"resources":[{"__type":"Location:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","bbox":[37.601347378073321,-122.20150537827605,37.609072813214674,-122.18850411435967],"name":"CA-92 W, CA 94545","point":{"type":"Point","coordinates":[37.605210095644,-122.19500474631786]},"address":{"addressLine":"CA-92 W","adminDistrict":"CA","adminDistrict2":"Alameda Co.","countryRegion":"United States","formattedAddress":"CA-92 W, CA 94545","postalCode":"94545"},"confidence":"Medium","entityType":"Address","geocodePoints":[{"type":"Point","coordinates":[37.605210095644,-122.19500474631786],"calculationMethod":"Interpolation","usageTypes":["Display","Route"]}],"matchCodes":["Good"]}]}],"statusCode":200,"statusDescription":"OK","traceId":"89ba489fe46f4dfd9b881ec2a15926a6|BL2M002304|02.00.117.100|BL2MSNVM001814, BL2MSNVM001291"})
    Also , I have another issue that yet time Bing map shows black screen on load and on refresh loads the map. Not sure what is happening with it

    Tuesday, March 5, 2013 9:00 PM

Answers

  • Empty results are returned when your account is rate limited. You can verify if you are being rate limited by looking at the header as documented here: http://msdn.microsoft.com/en-us/library/ff701703.aspx Note that all Basic and Trial keys are subject to rate limiting as documented in the terms of use.

    As for the black maps; is this for the web control or the Windows 8 JavaScript control? The windows 8 control did have a bug that caused the black screen but this has been fixed in one of the past updates to the SDK, so update your version of the SDK if this is the API you are using. If this is for the web version, can you provide code that reproduces this issue, I have never heard of this occurring for this control.


    http://rbrundritt.wordpress.com

    Monday, March 11, 2013 11:30 AM
  • The limits are not documented as rate limiting occurs when one of two things happens, your account makes a large number of requests in a short period of time that will likely cause your account to breach the terms of use in a short time span, or when the servers are under a lot of load from basic accounts, at which point any non-Enterprise account can be rate limited to protect the service.

    http://rbrundritt.wordpress.com

    Wednesday, September 9, 2015 3:30 PM

All replies

  • Empty results are returned when your account is rate limited. You can verify if you are being rate limited by looking at the header as documented here: http://msdn.microsoft.com/en-us/library/ff701703.aspx Note that all Basic and Trial keys are subject to rate limiting as documented in the terms of use.

    As for the black maps; is this for the web control or the Windows 8 JavaScript control? The windows 8 control did have a bug that caused the black screen but this has been fixed in one of the past updates to the SDK, so update your version of the SDK if this is the API you are using. If this is for the web version, can you provide code that reproduces this issue, I have never heard of this occurring for this control.


    http://rbrundritt.wordpress.com

    Monday, March 11, 2013 11:30 AM
  • Hi, You wrote"

    • Note that all Basic and Trial keys are subject to rate limiting as documented in the terms of use.

    Is there a documentation on the limits? Is is n queries per minute or something like that?

    Thanks

    Wednesday, September 9, 2015 2:33 PM
  • The limits are not documented as rate limiting occurs when one of two things happens, your account makes a large number of requests in a short period of time that will likely cause your account to breach the terms of use in a short time span, or when the servers are under a lot of load from basic accounts, at which point any non-Enterprise account can be rate limited to protect the service.

    http://rbrundritt.wordpress.com

    Wednesday, September 9, 2015 3:30 PM