GithubHelp home page GithubHelp logo

Some city strings are malformed about world HOT 4 CLOSED

nnjeim avatar nnjeim commented on June 26, 2024
Some city strings are malformed

from world.

Comments (4)

nnjeim avatar nnjeim commented on June 26, 2024

@kabacs Hi, can you please share some screenshots? thank you

from world.

kabacs avatar kabacs commented on June 26, 2024

Hi, this is my code, in this case returning all cities from Portugal:

Screenshot 2021-11-09 at 09 01 48

The output from this request is then:

Screenshot 2021-11-09 at 09 02 03

For example, the ID 90434, the name should be "Angra do Heroísmo", as with ID 90441, the name should be "Calheta de São Jorge", etc.

Also detected this with "United Kingdom", ex:

Screenshot 2021-11-09 at 09 06 45

In this case, the output will be:

Screenshot 2021-11-09 at 09 07 28

But if the string is together:

Screenshot 2021-11-09 at 09 08 23

The output then is:

Screenshot 2021-11-09 at 09 08 56

(Notice that the string in the names do not have spaces between them)

Thank you,
Ricardo Cabanelas

from world.

nnjeim avatar nnjeim commented on June 26, 2024

@kabacs Thank you for all the above. At first, the name of the country in the database is only used for filtering and in the return, the name is localized by taking into consideration the locale set in the HTTP header. I would filter by the iso field like:

'filters' => ['iso2' => 'FR']

Regarding the states and city names, the issue was fixed, i thank you for the patience you took to report this.
I am updating the version to 1.0.5

from world.

kabacs avatar kabacs commented on June 26, 2024

@nnjeim thanks for the awesome package, plan on using it in production.

from world.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.