Back

[SOLVED] List Cities

  • 0
  • Locale
  • Web
Said H
16 May, 2023, 09:44

Hello, I was reading the Locale API. I see we have List Countries API. By any chance, we may have List Cities API in the future? or is there any good practice that i can adopt to fetch list of cities of a country? Thanks in advance.

TL;DR
The user wants to know if there is a "List Cities" API or a good practice to fetch a list of cities of a country. The support team provides a solution by suggesting an open source solution called "https://countrystatecity.in/" that can be adapted for this purpose.
Binyamin
16 May, 2023, 10:02

Hey, a list of all cities will probably be a bit difficult as this a real big list.

Bun it sound a good idea and I think it will be good to open a issue for it. https://github.com/appwrite/appwrite/issues/new?assignees=&labels=feature&projects=&template=feature.yaml&title=%F0%9F%9A%80+Feature%3A+

As for your use case: This is an open source solution https://countrystatecity.in/

You can easily adapt it for your needs.

Binyamin
16 May, 2023, 10:02

P.s. you can also request an API key if you want to have even easier access.

joeyouss
16 May, 2023, 16:53

I definitely like this idea! lemme check if we have something for this

joeyouss
16 May, 2023, 17:16

So, I talked to the team and definitely create a feature for this on our github (we researched a bit into code standards and found one to use)

Said H
17 May, 2023, 00:07

Thanks @Binyamin and @joeyouss . I have just submitted the github issue https://github.com/appwrite/appwrite/issues/5544. I will look into the open source solution too.

Said H
17 May, 2023, 00:09

[SOLVED] List Cities

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more