smchampagne

Trying to get geocodes from Bing, does not work within FM webviewer, does in standard browsers.

Discussion created by smchampagne on Nov 11, 2016
Latest reply on Nov 11, 2016 by schamblee

I have a basic Key.  I am running an API call to:

http://dev.virtualearth.net/REST/v1/Locations?q=Main%20Street%20Blue%20Ridge%20Mountain%20GA%2030513&key=myBingMapsKey

 

If I submit that query via Chrome or Safari, it returns the expected results:

{"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2016 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":2,"resources":[{"__type":"Location:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","bbox":[34.861648282429321,-84.331502748948211,34.869373717570674,-84.318949251051791],"name":"W Main St, Blue Ridge, GA 30513","point":{"type":"Point","coordinates":[34.865511,-84.325226]},"address":{"addressLine":"W Main St","adminDistrict":"GA","adminDistrict2":"Fannin Co.","countryRegion":"United States","formattedAddress":"W Main St, Blue Ridge, GA 30513","locality":"Blue Ridge","postalCode":"30513"},"confidence":"Medium","entityType":"RoadBlock","geocodePoints":[{"type":"Point","coordinates":[34.865511,-84.325226],"calculationMethod":"Interpolation","usageTypes":["Display","Route"]}],"matchCodes":["Ambiguous","Good"]},{"__type":"Location:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","bbox":[34.859741282429326,-84.332321603424,34.867466717570679,-84.319768396575981],"name":"E Main St, Blue Ridge, GA 30513","point":{"type":"Point","coordinates":[34.863604,-84.326045]},"address":{"addressLine":"E Main St","adminDistrict":"GA","adminDistrict2":"Fannin Co.","countryRegion":"United States","formattedAddress":"E Main St, Blue Ridge, GA 30513","locality":"Blue Ridge","postalCode":"30513"},"confidence":"Medium","entityType":"RoadBlock","geocodePoints":[{"type":"Point","coordinates":[34.863604,-84.326045],"calculationMethod":"Interpolation","usageTypes":["Display","Route"]}],"matchCodes":["Ambiguous","Good"]}]}],"statusCode":200,"statusDescription":"OK","traceId":"5391e5a0a99b47468f1d6df96ffeb1f8|BN20260223|7.7.0.0|BN2SCH020180721, BN2SCH020181231, BN2SCH030291622, BN2SCH030251544"}

 

However, if I send the same request via a Filemaker Web Viewer, it returns an error which I've snipped below:

"errorDetails":["One or more parameters are not valid.","query: This parameter value has an invalid format."],"resourceSets":[],"statusCode":400,"statusDescription":"Bad Request".

Why would the same call return different results via Chrome vs Filemaker Web Viewer?

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier; -webkit-text-stroke: #000000} span.s1 {font-kerning: none} </style><style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} </style>

Outcomes