0

I want to select automatically the state and city according to a zipcode in the billing information process bar of one page checkout.

halfer
  • 19,824
  • 17
  • 99
  • 186
Prince
  • 401
  • 1
  • 7
  • 34

1 Answers1

2

Use GeoCoding APIs.

For example if you want result for zip 10017

http://maps.googleapis.com/maps/api/geocode/json?address=10017+US&sensor=true

Here we are passing ZIP code + Country. Reason is, some of the zip code returns more than one result. For example - 208006.

Thanks.

aforankur
  • 1,291
  • 1
  • 15
  • 27