Skip to content

[BUG] Searching free text for "us, ca" - results in weird result with Moldova and El Salvador #43

Description

@tomaytotomato

Bug Summary

Input : us, ca
Output:

A combination of El Salvador as the country and Cahul state, with a city called Us 🤷

CityResult[countryId=66, countryName=El Salvador, countryIso2Code=SV, countryIso3Code=SLV, stateId=4391, stateName=Cahul, stateCode=CA, cityId=47437, cityName=Us, latitude=49.10000000, longitude=1.96667000]

Reproduction Steps

  • Sample Code
  • What functionality did the bug occur in? (function / method name)? SearchLocationService
  • Expected output: California, USA
  • Was an exception thrown? No

Additional Information

  • Java Version
  • OS
  • location4j Version: 1.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions