Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geocode giving faulty data #5

Open
ghost opened this issue Apr 22, 2015 · 0 comments
Open

Geocode giving faulty data #5

ghost opened this issue Apr 22, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 22, 2015

Antonio:
Thank you for the zipcode package.

Just a heads up that I had to remove the geocode.ca from this file:
zipcode/src/Support/WebServices/Countries/GB.php file.

Looking up a GB zipcode with a US style 5 digit of 32154 produces false results and is not caught by the package as a non GB zip code.

http://geocoder.ca/?postal=32154&geoit=XML

Returns as TORNILLO TX 32154, however, TX is not in GB, and TORNILLO TX Zip is 79853.

{
addresses: [
{
state_id: "TX",
city: "Tornillo",
longitude: "31.3998510000",
latitude: "-106.1122970000"
}
],
zip_code: "32154",
web_service: "geocoder",
country_id: "GB",
country_name: "Great Britain",
service_query_url: "http://geocoder.ca/?postal=32154&geoit=XML",
timer: "0.4734",
result_raw: {
latt: "31.3998510000",
longt: "-106.1122970000",
standard: {
stnumber: [ ],
staddress: [ ],
city: "Tornillo",
prov: "TX",
confidence: "0.9"
}
},
success: true
}

I contacted geocoder.ca to notify them of the issue as they are capable of US ZipCodes as well.

Thanks for the package.

John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants