WC – APG City
WC – APG City

WC – APG City

4.7/5 (3 ratings) 100 active installs Updated Sep 18, 2026
Screenshot of WC - APG City.

Screenshot of WC - APG City.

WC – APG City adds to your WooCommerce store a new automatic city field generated from the postcode via the GeoNames API or the Google Maps API.

Features

  • Fully compatible with the Checkout block in the WordPress block editor.
  • Includes a local GeoNames database that is downloaded and updated monthly to improve performance and reduce external API queries.
  • You can choose between the GeoNames API and the Google Maps API.
  • You must add your own Google Maps API Key or GeoNames username.
  • Your API credentials are never sent to the browser: every lookup is made by the server.
  • You can customize the default text of the select field.
  • You can customize the text of the option used to switch to a text field.
  • You can block modifications to the city and province (state) fields.
  • You can customize the background color of the locked fields.
  • If the postcode is shared by more than one city, the customer can select the correct city name from the list returned by GeoNames or Google Maps.
  • If the city is not in the list or cannot be found in either API, the customer can manually enter their city name.
  • It also selects the province (state), as long as the name matches the one obtained from GeoNames or Google Maps.

Translations

More information

You can learn more about WC – APG City on our official website, and follow the development on GitHub.

Thanks

Thanks to everyone who uses the plugin, helps improve it, makes a donation or encourages us with their comments.

If you find this plugin useful, you can support its development with a small donation.

External Services

  1. To the GeoNames services, to download and update, on a monthly basis, the full local database of cities and postcodes, as well as to perform queries to its API when there is no information in the local database.

    • It sends the country and the postcode.
    • More information: https://www.geonames.org/export/
  2. To the Google Maps API, to obtain the city and state/province name from the postcode and country when this option is selected in the plugin settings.

    • It sends the country and the postcode.
    • More information: https://policies.google.com/privacy