PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   ReviewPost Bug Reports (http://www.photopost.com/forum/reviewpost-bug-reports/)
-   -   Zip Code Tables (http://www.photopost.com/forum/reviewpost-bug-reports/126554-zip-code-tables.html)

tj2653 August 11th, 2006 07:45 PM

Zip Code Tables
 
It seems like all of the latitudes in the databases (at least the ones I checked) are actually longitudes, and vice versa. I noticed this when it gave me a distance of 61 miles from NJ to Virginia. When I changed the 2 zip codes lat/long data to their correct values, the distance was correctly shown as 162. What's the best way to fix this?

Chuck S August 11th, 2006 08:18 PM

Do you have example zipcodes as a test? I get proper distance in my testing. We use a free zipcode database.

tj2653 August 11th, 2006 11:01 PM

Quote:

Originally Posted by Chuck S (Post 1167908)
Do you have example zipcodes as a test? I get proper distance in my testing. We use a free zipcode database.

For example:
23336
lon: 37.91312 (these are backwards in the database)
lat: 75.35419

08837
lon: 40.50570 (backwards again)
lat: 74.35418

http://www.buyzips.com/zip/Edison/NJ/08837/Edison.htm <-- link showing these numbers are flip-flopped

Chuck S August 12th, 2006 07:32 AM

Our fields are not backwards. on a default install this is the zipcode table

Code:

Content visible to verified customers only.
here is the insert for edison

Code:

Content visible to verified customers only.
Latitude is the last column on an install and look at the insert above 74.35418 therefore our zipcode database is correct

tj2653 August 13th, 2006 12:35 AM

Quote:

Originally Posted by Chuck S (Post 1167960)
Our fields are not backwards. on a default install this is the zipcode table

Code:

Content visible to verified customers only.
here is the insert for edison

Code:

Content visible to verified customers only.
Latitude is the last column on an install and look at the insert above 74.35418 therefore our zipcode database is correct

Right, but as shown on http://www.buyzips.com/zip/Edison/NJ/08837/Edison.htm, the 74.35418 is supposed to be the longitude.

Chuck S August 13th, 2006 10:46 AM

You may alter things as you like this is a free zipcode database posted on the internet so this is not something we support. We support our code not the authenticity of third party stuff. However I would tell you in my testing it works fine cause edison new jersey is 125 miles from me and when I place a product with that zip and enter my zipcode to compare I get 125 miles

If you think all of the things are backwards try issuing these queries in your database

Code:

Content visible to verified customers only.

tj2653 August 13th, 2006 07:30 PM

Quote:

Originally Posted by Chuck S (Post 1168109)
You may alter things as you like this is a free zipcode database posted on the internet so this is not something we support. We support our code not the authenticity of third party stuff. However I would tell you in my testing it works fine cause edison new jersey is 125 miles from me and when I place a product with that zip and enter my zipcode to compare I get 125 miles

If you think all of the things are backwards try issuing these queries in your database

That fixed everything. 95% of the distances are now pretty spot-on, whereas before about 50% were close to correct, and the other 50% were way off. Thanks.

oldengine November 19th, 2006 11:12 PM

13126 to 34240 brings up 451 miles. Ny to FL is more like 1200 miles.

Has any procedure been written to incorporate a better zipcode database. paid or otherwise?

Chuck S November 20th, 2006 09:10 AM

You can try using the queries above and see what comes up for you. The next version will have this correction

oldengine November 20th, 2006 08:29 PM

I ran the queries and now the distance is 1,161 miles. Much closer to target. Thanks!


All times are GMT -5. The time now is 10:16 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97