shukerullah / react-geocode

A React module to transform a description of a location (i.e. street address, town name, etc.) into geographic coordinates (i.e. latitude and longitude) and vice versa.
MIT License
207 stars 33 forks source link

[Question] Can I get Address from Zipcode? #27

Closed fzs1994 closed 4 years ago

shukerullah commented 4 years ago

Here is an example to get address form zip code

Geocode.fromAddress('01210,PL').then(
  response => {
    ...
  },
  error => {
    ...
  },
);

Just a hint: zip codes are not worldwide unique so this is worth to provide country ISO code in the request https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Credits