So, I use the GeoNames API to get information about the country and state / province, which I use to fill out the drop-down lists in the form. This form submits this information to the SOAP web service, and the SOAP server only understands country and state / province data in 2 forms. i.e. CA for Canada, USA for USA. The GeoNames API provides this information for different countries, but not for their children (states / provinces).
Does anyone know how to get a 2 letter abbreviation for state / province / territory from GeoNames or is there any other API that I can try?
source
share