none
Location API Results returning wildly unexpected results RRS feed

  • Question

  • So I have an input where users can search for a location so that we can get lat/long to work with elsewhere in the app that uses the locations API(https://dev.virtualearth.net/REST/v1/Locations?q={input}%&key={key}&c=en) with a wildcard. The user enters a location string and as they type it displays suggestions, hence the wildcard at the end of the query.

    Search string examples:

    • 1600 Pennsylvania ave
    • Baltimore
    • Ridyah
    • 90210
    • Costa Rica

    Prior to July it worked as expected returning a location that maps to the input

    • 1600 Pennsylvania ave, Washington DC
    • Baltimore, MD
    • Riyadh, Saudi Arabia
    • Beverly Hills, CA, 90210
    • Costa Rica

    for the last several months we've been getting weird results anything is entered than a fully-qualified address or a zip code

    • 1600 Pennsylvania Ave, Weirton, WV 26062 - fair that it gets the wrong one, but annoying
    • Baltimore Road, Coronea, Skibbereen - what? no why is it returning a road in Ireland instead of the city.
    • Riyadh Boulevard, Eastern Province, Dhahran - again, with the roads! at lead this one is in the right country.
    • Beverly Hills, CA, 90210, United States - correct
    • Costa Rica San Andrés, Archipiélago de San Andrés, Providencia y Santa Catalina, 880001 - hold on, no that's 300 km off shore of costa rica and part of a different country

    why is the wildcard search not finding the exact response as one of the options anymore? I could understand if "Baltimore" returned ["Baltimore, MD", "Baltimore, Ireland", "Baltimore Road, Coronea, Skibbereen"] but not why it only returning the one ["Coronea, Skibbereen"]?

    Thursday, September 24, 2020 4:02 PM

All replies