API returns North American results when specifying GB

2 posts / 0 new
Last post
ashrossoft
API returns North American results when specifying GB

I am making the geocode API request from a server based in North America however I require results based in the United Kingdom. I have tried specifying the country codes however I have had no luck.

Example request URL : https://open.mapquestapi.com/geocoding/v1/address?key={KEY}&inFormat=kvp&outFormat=json&postalCode={searchTerm}&countrycodes=GB&thumbMaps=false

Is there anything I am missing?

Thanks in advance.


MQBrianCoakley
The parameter countrycodes
The parameter countrycodes should just be country. If there are still problems, post a sample with the searchTerm in it and we'll go from there.