1

how is it possible to get the name of the state by entering a zip or city name?

for example:

city name: buffalo

get state name: new york

thanks for your help.

1 Answers1

2

You can use the Geocoding API to try to get the info. For example see a Geocode request for buffalo and in the response the administrative_area_level_1 is "New York"

rnevius
  • 26,578
  • 10
  • 58
  • 86
skarE
  • 5,880
  • 2
  • 23
  • 23