[GIS] Bing Map REST API is not working

bing-mapsrest

if i place the below URL in my browser http://dev.virtualearth.net/REST/v1/Locations?q=bangalore+karnataka+india&key=

The response is below

    {
authenticationResultCode: "ValidCredentials",
brandLogoUri: "http://dev.virtualearth.net/Branding/logo_powered_by.png",
copyright: "Copyright © 2014 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: "f54d507047604f1585db1e00254b9a7d|SINM000007|02.00.183.2300|SINMSNVM000034"
}

Not getting the resources

Any issue in the URL?

Best Answer

Do you have a Bing Maps key? See here for a reference http://msdn.microsoft.com/en-us/library/ff428642.aspx

Key's are freely available, you just need to register your application so they can track your usage, its only if your application gets a huge number of hits that you start getting charged.

Once you have a key you'll be able to structure your url correctly.

Good luck, Rowan

Related Question