---
title: "WC - APG City now with a double API"
description: "After an email from Gustavo Galeote, a user of the plugin for WooCommerce WC - APG City, letting us know that there were certain errors in the Google Maps API when it came to resolving certain postcodes, and after checking"
url: https://artprojectgroup.com/wc-apg-city-now-with-a-double-api
date: 2016-08-24
modified: 2026-10-02
author: "Art Project Group"
image: https://artprojectgroup.com/wp-content/uploads/2023/02/wc-apg-poblacion-blog.webp
categories: ["Art Project Group"]
tags: ["E-commerce", "GeoNames", "WC - APG City", "WooCommerce plugins"]
type: post
lang: en-US
---

# WC - APG City now with a double API

[![WC - APG City plugin. Version 0.3](https://artprojectgroup.com/wp-content/uploads/2016/08/plugin-wc-apg-poblacion-version-0-3.webp)](https://artprojectgroup.com/wp-content/uploads/2016/08/plugin-wc-apg-poblacion-version-0-3.webp)

After an email from Gustavo Galeote, a user of the plugin for WooCommerce [**WC - APG City**](/woocommerce-plugins/wc-apg-city), letting us know that there were certain errors in the Google Maps API when it came to resolving certain postcodes, and after checking that there were indeed serious errors in certain postcodes shared by more than one city, we got down to work to try to find an effective solution to this problem.

After looking for different alternatives on the Internet, and given that Correos, and other international public bodies, charge a fixed fee for the use of their databases through third-party private companies, something which, on the other hand, we do not understand, since, being public bodies, they should provide that information publicly and free of charge, but anyway, that is another matter that we do not want to go into today, and after ruling out different alternatives, we came across the fantastic public GeoNames API, which, as well as being much simpler than the Google Maps one, is much more effective in its information, at least for Spain.

So in the end we have chosen to provide support for both APIs and to let you, the users, select which one to use through the new settings page that we have added to **WC - APG City**.

### Why a double API?

The reason is very simple: there will be countries where the Google Maps API will be more effective, and others where the GeoNames API will be the better option.

In our particular case, and after carrying out different tests, the GeoNames API is the undisputed winner in Spain, but we cannot guarantee it for countries such as the USA, Mexico or the United Kingdom, to give only a few examples.

That is why we are leaving you support for both APIs: we want you to run your own tests and to select the one that suits your online shops best.

We hope that with this new improvement you have no excuses left for not using **WC - APG City** in your virtual shops. Enjoy it!
