As part of Loqate’s commitment to service improvement, scalability and security of our platform, we are making a change to the end point, services.postcodeanywhere.co.uk.
As a result, you may need to make changes if you have implemented our address capture through an API. You will need to review your implementation if you have whitelisted our IP addresses in your firewall rather than our services URLs, or if you are making your API calls direct to one of our IP addresses. If this is not the case and you have used our quick set-up tag installation then no action should be needed.
What do I need to do?
If your API calls link to a single IP address, you need to change the IP address you make requests to. You can find the details in our implementation guidance.
It’s critical that you make these changes by 4th May 2021. If you have locked down the use of our services to a single IP address our services will stop working.
Why do I need to do this?
As outlined in our implementation guidance, we strongly recommend you do not make API calls to a single IP address. Our products are load-balanced across multipe data centres which all make requests to our service URLs. Bypassing this and binding to a single IP address or subnet exposes you to additional risk and required updates as we make changes to our IP space frequently.
Any questions? Our support team is available 24/5. Just give us a call or use the chat functionality.
Yes, for the best experience when using the Loqate address capture service, we recommend the browser autofill functionality is turned off for address form fields.
Firstly, below where the Loqate Tag script has been placed on the page, insert the following JavaScript code snippet:
pca.on("load", function(type, id, control){
var isChrome = !!window.chrome || !!window.chrome.webstore;
if (isChrome == true){
for (i=0; control.fields.length > i; i++){
pca.getElement(control.fields[i].element).autocomplete = "PCATEST";
};
};
});
On the Address Form Fields, we have found success in adding the attribute autocomplete="none", to disable the browser's autofill. For example:
<input id="Line1" type="text" autocomplete="none" placeholder="Start typing your address" autofocus name=“searchTerm” />
It is recommended to test this code across multiple popular web browsers.
The 1001 ID Invalid error message indicates that you are passing the wrong type of ID into the Retrieve service. You should only pass an ID from the Find service where the Type was returned as "Address". Passing IDs of type "Postcode" will not result in a retrieve - instead, these should be passed back into the Find service as "Container" until an "Address" type is returned.
First, use the Find method, triggering a lookup after each user keystroke in a search box.
Example request: https://api.addressy.com/Capture/Interactive/Find/1/json.ws?key=AA11-AA11-AA11-AA11&Text=wr2&Container=&Origin=&Limit=&Language=&Countries=
Present the Text/Description portion of the response to the user, usually in a container that allows them to click on a desired result. When the user clicks an item, check the "Type" portion of the item:
Yes, this is a great way to get the Loqate Tag working on your website quickly and easily.
If you are unfamiliar with Google Tag Manager, begin by reading About Google Tag Manager. To add the Loqate Tag to your container in Google Tag Manager:
Your Loqate Tag is now installed on your website and you are ready to continue setting up Loqate services, eg: Capture+.
To complete this process, you must have access to your website source code, be comfortable editing HTML (or have a webmaster/developer who can help you), and have a Loqate Predict account and service set up.
To set up the Loqate Tag:
Yes, you will need to use a program to host the website locally, such as IIS (Windows) or Apache (Mac/Windows). You will need to create a new site in your hosting programme, and then map it to the file or folder containing the pages you want to set the Tag up on. In the site bindings set the port to 80, then run the website, the URL should look something like this: http://localhost/ (this is the URL you will need to enter during our Tag setup process).
There are two ways to add the Loqate Tag to your website:
To check if the Loqate Tag has been successfully added to your website, open your website in a browser and right click to ‘view page source/view source’. With this view of your website code open, search for the text “pcapredict.com” (CTRL + F will open a search tool on most browsers); if the text is found then you have the tag.
If you’re not setting up the Loqate Tag on a website, you can use the Loqate API to implement our services in any application.
Firstly, check that we are looking at the right website - are there any typos in the website address that you entered? Secondly, did you paste the Loqate Tag code in the right place - save and re-upload your webpages to make sure. Finally, it’s possible your website is cached which means we can’t yet retrieve the updated files that contain the Loqate Tag; read ‘What can I do if my website is cached?’ for help with this.
If your website is not showing recent updates you made then it may need its cache cleared. If you host your own site then speak to your technical team for help. If you do not host your own site then you might need to contact the support team at your hosting provider, or inspect your admin tools for an option to clear the site cache. Sometimes the cache will clear automatically after an hour or so, it’s worth checking again later if you have this problem.
Adding the Loqate Tag site-wide is the easiest way for you to set up Loqate services. It will allow you to add our new and existing services to any page of your website in future without the need to involve a web developer each time. Sometimes it’s tricky to find the right stage to add the code, so by doing it this way you know for sure our service will work on the pages you need it to.
All our services are available across https. To prevent these alerts you need to make a small amendment to the request you are sending to us. Simply change the start of the request you make from "http://services.postcodeanywhere..." to "https://services.postcodeanywhere...".
Yes. You can control your lookup settings from the service area when you log in to your account, Choose the key you want to edit and select the On Page Setup tab. From here you can Activate the on-page setup which will launch the setup process again, allowing you to reconfigure how the lookup works. If you can't see an On Page Setup section, your key is most likely an older popup key. In this case, the edit screen gives you the option to reset all the mappings for your look-up. This will make the lookup button on your site appear as ‘Set-up PCA Predict’ and allow you to remap the look-up.
Your account details can be restricted to your specific URL in fact we recommend you do this. This means that even with code types where your details are visible, they are still safe and secure. Anyone attempting to use them from another site would have their requests rejected and you’d be alerted via email.
Counties are no longer a required part of the address and Royal Mail have not supported them since 1999. This means for areas such as London we do not return a county as part of the address. Don’t panic! You have a number of options if you want to also have a county returned with our service. Simply log in to your account, select "Your details and settings" and click on "Edit these settings" within the UK Counties pane. You can then choose between the following options:
Yes, our IP Limiter blocks all IPs that are not on your valid IP list. Only the IPs on your valid IPs list can do lookups. the list of your valid IPs can be found under Menu > Your Services > Click on the Key and 'Limits'.
If you get a message saying a certain IP is blocked but this IP is not on your blacklist then that means IP Limit is enabled. 'Limit by IP' means you can restrict the service to specific IP addresses. If the blocked IP is not on the 'Limit by IP' list it can't use the service.
If the IP is valid, you can add it to the 'Limit by IP' list to enable access. You can find 'Limit by IP' under Menu > Your Services > Click on the specific Key and select 'Limits'.