none
Wrong county being returned for some addresses RRS feed

  • Question

  • I ran into an issue when passing certain addresses in, the API returned the wrong county for the address. The weird thing is, entering the same address on bing.com/maps returned the correct county. One example address this is an issue for is 4404 NE Antioch Rd, Kansas City, MO 64117. (This is a Waffle House)

    I can post the query URL once my account is verified if needed.

    The correct county for this address is Clay County, but the API is returning Jackson County which lies directly south of Clay Co. This same thing will also happen to quite a few nearby addresses.

    Thanks!

    Friday, March 27, 2020 3:35 PM

All replies

  • Please post your call (without your key) and the expected versus actual results for us to verify.

    Please also note that how you call the API can make a difference in the priority of the location. Is your call like this?  

    http://dev.virtualearth.net/REST/v1/Locations/US/MO/64117/Kansas%20City/4404%20NE%20Antioch%20Road?o=xml&key={BingMapsKey}

    Friday, March 27, 2020 4:53 PM
    Owner
  • https://dev.virtualearth.net/REST/v1/Locations?query=4404%20NE%20Antioch%20Rd%20Kansas%20City%20MO%2064117%20United%20States&incl=queryParse&key=BING_API_KEY

    Actual Result:

    {"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2020 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":[39.170528282429323,-94.556020225586124,39.178253717570676,-94.54273377441389],"name":"4404 NE Antioch Rd, Kansas City, MO 64117","point":{"type":"Point","coordinates":[39.174391,-94.549377]},"address":{"addressLine":"4404 NE Antioch Rd","adminDistrict":"MO","adminDistrict2":"Jackson County","countryRegion":"United States","formattedAddress":"4404 NE Antioch Rd, Kansas City, MO 64117","locality":"Kansas City","postalCode":"64117"},"confidence":"High","entityType":"Address","geocodePoints":[{"type":"Point","coordinates":[39.174391,-94.549377],"calculationMethod":"Rooftop","usageTypes":["Display"]},{"type":"Point","coordinates":[39.1743910006072,-94.5490000000668],"calculationMethod":"Rooftop","usageTypes":["Route"]}],"matchCodes":["Good"],"queryParseValues":[{"property":"AddressLine","value":"4404 ne antioch rd"},{"property":"Locality","value":"kansas city"},{"property":"AdminDistrict","value":"mo"},{"property":"PostalCode","value":"64117"},{"property":"CountryRegion","value":"united states"}]}]}],"statusCode":200,"statusDescription":"OK","traceId":"1f77122943a440369946fe43cd0b2b74|CH00001608|0.0.0.1|Ref A: 7C4304941C294A429FF74393BDC8C2FC Ref B: DM2EDGE0918 Ref C: 2020-03-27T17:06:01Z"}

    Expected Result:

    {"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2020 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":[39.170528282429323,-94.556020225586124,39.178253717570676,-94.54273377441389],"name":"4404 NE Antioch Rd, Kansas City, MO 64117","point":{"type":"Point","coordinates":[39.174391,-94.549377]},"address":{"addressLine":"4404 NE Antioch Rd","adminDistrict":"MO","adminDistrict2":"Clay County","countryRegion":"United States","formattedAddress":"4404 NE Antioch Rd, Kansas City, MO 64117","locality":"Kansas City","postalCode":"64117"},"confidence":"High","entityType":"Address","geocodePoints":[{"type":"Point","coordinates":[39.174391,-94.549377],"calculationMethod":"Rooftop","usageTypes":["Display"]},{"type":"Point","coordinates":[39.1743910006072,-94.5490000000668],"calculationMethod":"Rooftop","usageTypes":["Route"]}],"matchCodes":["Good"],"queryParseValues":[{"property":"AddressLine","value":"4404 ne antioch rd"},{"property":"Locality","value":"kansas city"},{"property":"AdminDistrict","value":"mo"},{"property":"PostalCode","value":"64117"},{"property":"CountryRegion","value":"united states"}]}]}],"statusCode":200,"statusDescription":"OK","traceId":"1f77122943a440369946fe43cd0b2b74|CH00001608|0.0.0.1|Ref A: 7C4304941C294A429FF74393BDC8C2FC Ref B: DM2EDGE0918 Ref C: 2020-03-27T17:06:01Z"}

    • Edited by drm_822 Friday, March 27, 2020 5:08 PM Including Expected & Actual results
    Friday, March 27, 2020 5:01 PM
  • Hi DRM,

    I can report this on your behalf but can I ask why are you calling a string "query=" when you have an address?  You will get a far better result using the address method I show above. 

    Sincerely,

    IoTGirl

    Friday, March 27, 2020 5:24 PM
    Owner
  • Awesome, thank you!

    Not sure why it was called that way, this is a piece of legacy code from who knows when that we just recently started noticing this issue with. I'll look into converting it over to using the method you included above, so thank you for providing that.

    Friday, March 27, 2020 5:32 PM
  • You are very welcome!  This issue has been logged and the longest I have seen one of these take is 3 months if there is an issue with establishing "ground truth" so I would expect it to be fixed sooner.  The team works on an AGILE schedule so I can't give you an exact timeline.
    Friday, March 27, 2020 6:29 PM
    Owner
  • Hi DRM,

    The team has reviewed this issue and has reported it back to our data provider. The fix will come once the data provider updates their stream and we pick up their fix.  As stated above, I can't commit to an exact turn around time but I can confirm the issue is in process. 

    Sincerely,

    IoTGirl

    Friday, April 3, 2020 3:43 AM
    Owner
  • Hi DRM,

    The provider says they have applied the fix.  

    Sincerely,

    IoTGirl

    Thursday, June 4, 2020 2:55 AM
    Owner