Share via

Get Coordinates from a post code - incorrect results

Jason Thomas 0 Reputation points
2023-03-09T16:44:57.4066667+00:00

I'm using the follow url
[http://dev.virtualearth.net/REST/v1/Locations/UK/CH75AP?includeNeighborhood=0&include=&maxResults=1&key=AsHgb_XaKHvaHRzuCne3OwPmgMt1Kd1pP_vqcbXWOR1WQ-YLHmYkY7eZQDs6fJnY]

But the resultant response is incorrect
{"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2023 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":[51.513622283935547,-0.098660998046398163,51.516319274902344,-0.090557001531124115],"name":"Cheap, London, United Kingdom","point":{"type":"Point","coordinates":[51.51462173,-0.093985]},"address":{"adminDistrict":"England","adminDistrict2":"London","countryRegion":"United Kingdom","formattedAddress":"Cheap, London, United Kingdom"},"confidence":"High","entityType":"Neighborhood","geocodePoints":[{"type":"Point","coordinates":[51.51462173,-0.093985],"calculationMethod":"Rooftop","usageTypes":["Display"]}],"matchCodes":["Good"]}]}],"statusCode":200,"statusDescription":"OK","traceId":"73da120317214e78a93e442c77003f78|DU00002E6F|0.0.0.1|Ref A: 451F0DC88BE7476D9B740F7426490304 Ref B: DB3EDGE3020 Ref C: 2023-03-09T13:48:43Z"}

This is returns a location in London, where as the
https://www.bing.com/search?q=ch7+5ap&cvid=a581daeaa1c846fcbe12e9056ae153fe&aqs=edge.0.69i64i450l8j69i64...8.9705767j0j1&FORM=ANNAB1&PC=U531
Returns a location in Wales, so way from London!

Community Center | Not monitored

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.