javascript icon indicating copy to clipboard operation
javascript copied to clipboard

Brazilian states

Open linconkusunoki opened this issue 6 years ago • 4 comments

What do you guys think about functions to handle the Brazilian states?

something like:

  • Get all states
  • Find a specific state

where this could be applied?

  • Select a state
  • Show a state by its code
[
{code: 'sp', name: 'São Paulo'}, 
{code: 'rj', name: 'Rio de Janeiro'}
]

linconkusunoki avatar Apr 22 '20 13:04 linconkusunoki

Hi @linconkusunoki , awesome idea! We already have states info here (missing full state name, but we can add) and we just need to expose this. About "find a specific state" and "exposed data form", who uses this info should implement your search logic and format your data structure.

What do you think?

hyanmandian avatar Apr 22 '20 14:04 hyanmandian

awesome @hyanmandian! It'll be very helpful to have the states available. I think that makes sense only to expose the data and let the developers implement the logic :)

linconkusunoki avatar Apr 22 '20 16:04 linconkusunoki

Hey, I just create the PR with this method (getStates). Can you check if everything is alright? 😄

nolleto avatar Apr 30 '20 18:04 nolleto

Closed by #85

hyanmandian avatar May 05 '20 13:05 hyanmandian