 | |  | | | ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost. |
August 11th, 2006, 08:45 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 53
| 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?
|
| |
August 11th, 2006, 09:18 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
Do you have example zipcodes as a test? I get proper distance in my testing. We use a free zipcode database.
|
| |
August 12th, 2006, 12:01 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 53
| Quote:
Originally Posted by Chuck S 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
|
| |
August 12th, 2006, 08:32 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
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
|
| |
August 13th, 2006, 01:35 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 53
| Quote:
Originally Posted by Chuck S 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.
|
| |
August 13th, 2006, 11:46 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
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.
|
| |
August 13th, 2006, 08:30 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 53
| Quote:
Originally Posted by Chuck S 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.
|
| |
November 20th, 2006, 12:12 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Florida
Posts: 318
|
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?
|
| |
November 20th, 2006, 10:10 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
You can try using the queries above and see what comes up for you. The next version will have this correction
|
| |
November 20th, 2006, 09:29 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Florida
Posts: 318
|
I ran the queries and now the distance is 1,161 miles. Much closer to target. Thanks!
Last edited by oldengine; November 20th, 2006 at 10:45 PM.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:04 AM. | |