javascript icon indicating copy to clipboard operation
javascript copied to clipboard

Brazilian cities

Open arantespp opened this issue 6 years ago • 7 comments

Related to #82, is it a good idea to create a method that returns all Brazilian cities?

We may create a script that gets all cities from IBGE API, for instance, and saves them in a JSON. This way is easier to update cities.

arantespp avatar May 11 '20 21:05 arantespp

Good idea! We just need to test if our tree shaking works as expected because if don't, we will have an issue related with our bundle size :(

hyanmandian avatar May 12 '20 02:05 hyanmandian

I see. I'm testing here the size of the JSON and saving only the cities name will increase 100k of the bundle size. Is this a reasonable value when importing getCities?

Also, what if we create an SDK for IBGE API inside brazilian-utils?

arantespp avatar May 12 '20 08:05 arantespp

Yes, I think the size is not a problem when just increase this size when importing getCities, we just need to test if this happens. About IBGE API, maybe this is out of our scope :(

Hey @andreoav what you think about that?

hyanmandian avatar May 12 '20 13:05 hyanmandian

Great! I'll submit a PR with getCities to check if the three shaking works fine.

arantespp avatar May 12 '20 18:05 arantespp

Hello @arantespp, you need some help to that? I'm really liked your idea about getCities.

hyanmandian avatar Jun 06 '20 05:06 hyanmandian

@hyanmandian Hey! I'm so sorry, the last days were very busy. Now I get some time and I'll work in the first version of getCities. I'll create a PR just for testing the bundle size, ok? If it works, I create the documentation. Thanks for reminding me about this.

arantespp avatar Jun 06 '20 13:06 arantespp

Closed by #92

hyanmandian avatar Jun 07 '20 18:06 hyanmandian