locked
Bing Maps Rest Service: locality in address RRS feed

  • Question

  • Hello,

    For some years I have been using Bing Maps Rest Service in order to get the coordinates and town name by postal code in Germany. Since a few days ago, some response do not contain "locality" string in "address" (below I provide two examples). That was not the case before. What is the reason for that? Has the geocoding data source changed recently for Germany? Is there another way to retrieve the town name together with the coordinates by postal code?

    Example 1 locality returned

    Request for the postal code 27638:

    https://dev.virtualearth.net/REST/v1/Locations/27638%20DE?output=json&jsonp=searchServiceCallback&key=MyKey&c=de

    Response:

    searchServiceCallback({"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2017 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":[53.6418190002441,8.45221042633057,53.7098159790039,8.52021026611328],"name":"27638 Wurster Nordseeküste","point":{"type":"Point","coordinates":[53.6758193969727,8.48620986938477]},"address":{"adminDistrict":"Niedersachsen","adminDistrict2":"Cuxhaven","countryRegion":"Deutschland","formattedAddress":"27638 Wurster Nordseeküste","locality":"Wurster Nordseeküste","postalCode":"27638"},"confidence":"High","entityType":"Postcode1","geocodePoints":[{"type":"Point","coordinates":[53.6758193969727,8.48620986938477],"calculationMethod":"Rooftop","usageTypes":["Display"]}],"matchCodes":["Good"]}]}],"statusCode":200,"statusDescription":"OK","traceId":"26fa9b4038834858ac44f3e9de3076a7|BN20171457|7.7.0.0|"})

    Example 2 locality not returned

    Request for the postal code 26169:

    https://dev.virtualearth.net/REST/v1/Locations/26169%20DE?output=json&jsonp=searchServiceCallback&key=MyKey&c=de

    Response:

    searchServiceCallback({"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2017 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":[52.9043807983398,7.70308017730713,53.119800567627,7.96118021011353],"name":"26169","point":{"type":"Point","coordinates":[53.0017890930176,7.83212995529175]},"address":{"adminDistrict":"Niedersachsen","adminDistrict2":"Cloppenburg","countryRegion":"Deutschland","formattedAddress":"26169","postalCode":"26169"},"confidence":"High","entityType":"Postcode1","geocodePoints":[{"type":"Point","coordinates":[53.0017890930176,7.83212995529175],"calculationMethod":"Rooftop","usageTypes":["Display"]}],"matchCodes":["Good"]}]}],"statusCode":200,"statusDescription":"OK","traceId":"60263f3656774221b90f25d1f2220090|BN20130442|7.7.0.0|"})

    Best regards,

    Izabela

    Thursday, March 9, 2017 1:48 PM

Answers

  • The issue is that the postal code actually crosses the boundary of more than one locality, this it doesn't belong to any individual locality. The team is looking at how to handle this. Currently they are consider returning multiple results, one each for each locality in which the postal code resides.

    [Blog] [twitter] [LinkedIn]

    • Proposed as answer by Ricky_Brundritt Friday, March 10, 2017 5:53 AM
    • Marked as answer by Izabela P Friday, March 10, 2017 10:36 AM
    Friday, March 10, 2017 5:53 AM

All replies

  • The issue is that the postal code actually crosses the boundary of more than one locality, this it doesn't belong to any individual locality. The team is looking at how to handle this. Currently they are consider returning multiple results, one each for each locality in which the postal code resides.

    [Blog] [twitter] [LinkedIn]

    • Proposed as answer by Ricky_Brundritt Friday, March 10, 2017 5:53 AM
    • Marked as answer by Izabela P Friday, March 10, 2017 10:36 AM
    Friday, March 10, 2017 5:53 AM
  • Thanks a lot for clarifying the issue!
    Friday, March 10, 2017 8:09 AM