 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
July 18th, 2010, 03:43 AM
|
#21 (permalink)
| | Member Verified Customer
Join Date: Apr 2006 Location: OH
Posts: 134
|
I am back and will take a look at this either today or tomorrow evening. Mine are working fine though some of the distances are way off. It is possible that some of the columns are still reversed. I'm going to have to take a good look at the coordinates and see what, if any, changes need to be made. I am getting distances when using the Canadian codes now but some are just way off.
As for it not asking you are a zipcode? That may have something to do with how your browser handles those cookies. For some reason, Firefox recently saved the cookie for my classifieds. I closed the browser and then opened it back up but it still didn't ask me for my zipcode again. I ended up having to go into my Firefox cookies and manually deleting that one before it asked me again.
|
| |
July 18th, 2010, 04:53 AM
|
#22 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
The distances are only as good as the data provided I would think.
|
| |
July 18th, 2010, 05:57 AM
|
#23 (permalink)
| | Member Verified Customer
Join Date: Apr 2006 Location: OH
Posts: 134
|
Chuck,
I have been looking at this for a couple of hours this morning and have about come to the conclusion that the problem has something to do with how the program is manipulating the data.
Most all of the Canadian codes are entered properly with negative values on the longitude. This seems to be screwing up the calculations.
I also see that even the US data that SHOULD be negative values is actually positive values in the database. For example, the data base shows for Watson, Louisiana a Latitude of 30.58561 and a Longitude of 90.93934. The actual longitude is really -90.93934.
That tells me that the software is not using the negatives and is somehow working on what is actually an incorrect positive value. HOWEVER...the Canadian values that I have added are using the correctly entered negative values and the software is screwing up those calculations.
Don
|
| |
July 18th, 2010, 06:03 AM
|
#24 (permalink)
| | Member
Join Date: Jun 2007
Posts: 316
| Quote:
Originally Posted by Chuck S well 4.03 has any of the code changes I noted to make it work. Last chance I saw your site it worked as long as the zipcodes you entered where the correct case. | Hmmmm ...
I tried the correct case thing that you pointed out earlier, but I couldn't seem to get it working with Canadian codes, although the U.S. ones work fine.
First thing I'll do is upgrade to 4.03 (hope I don't screw up the site ..  ), then I'll try it again.
I see Don is back and has posted in this thread as well, so I'll follow that conversation as well.
Thanks to both of you for all you help. You guys have gone way above and beyond to help us and it's been appreciated.
Regards,
Doug
|
| |
July 18th, 2010, 06:05 AM
|
#25 (permalink)
| | Member Verified Customer
Join Date: Apr 2006 Location: OH
Posts: 134
|
I just verified this by going into the database and removing the "-" from the longitude of one of the Canadian zip codes. I then entered that zipcode in my classifieds and it finally showed the correct distance.
So, it appears to be the negative values that is causing the issue. I suppose the solution will be to remove the negative from all the longitudes. Although that is technically incorrect.
|
| |
July 18th, 2010, 07:13 AM
|
#26 (permalink)
| | Member Verified Customer
Join Date: Apr 2006 Location: OH
Posts: 134
|
I have created new .csv files for the Canadian codes. I have removed the negative values. They are uploaded to my database and seem to be working correctly. There are some distances that are not correct as there are with the USA codes as well. I'm not sure what causes that as I have been looking at it this morning and I selected two locations that are showing incorrect mileage. I verified the coordinates with my GPS and they are entered correctly but still the distances are incorrect. That is true with some USA locations and also is happening with some Canadian locations.
At any rate, the files have been updated and should work. You can download them HERE.
I will leave them there until you have time to download them.
|
| |
July 18th, 2010, 07:29 AM
|
#27 (permalink)
| | Member Verified Customer
Join Date: Apr 2006 Location: OH
Posts: 134
|
Here is an example of an incorrect distance. This happens very frequently and I don't know why.
If I enter the zipcode for Oberlin, OH 44074, it shows a distance of 100 miles to Milledgeville, GA zipcode 31061. I have verified the coordinates of both of those zipcodes in the database and they are correct. The distance is actually about 795 miles. Any idea what is causing these inaccuracies?
|
| |
July 18th, 2010, 10:14 AM
|
#28 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
I would suspect the lat and lon calculations on various zipcodes is incorrect which is why I said the distance is only as good as the data auction - PhotoPost Classifieds
Example buckland alaska to ga is about 5.274 miles so the calculation does work for most. I have tried a few far away middle and close by and all calculations seem fine but every now and then I find one thats wonky like you posted but I dont think its a code thing.
|
| |
July 18th, 2010, 10:16 AM
|
#29 (permalink)
| | Member
Join Date: Jun 2007
Posts: 316
| Quote:
Originally Posted by dknelson
At any rate, the files have been updated and should work. You can download them HERE.
I will leave them there until you have time to download them. | Thanks Don ...
I've downloaded the new zip file, but I don't know how to import it into our database and upgraded the old zip codes that are there. Give me a coffee break and you have to retrain me...
I have just upgraded to v4.03 (I hope ..  ) being very careful to replace just the files that Chuck indicated were new.
Chuck kindly imported your last database, so perhaps when he's back on-line and if he has the time, he can do this one, then I'll test it again.
Appreciate your efforts...
Regards,
Doug
|
| |
July 18th, 2010, 10:21 AM
|
#30 (permalink)
| | Member Verified Customer
Join Date: Apr 2006 Location: OH
Posts: 134
| Quote:
Originally Posted by Chuck S I would suspect the lat and lon calculations on various zipcodes is incorrect which is why I said the distance is only as good as the data auction - PhotoPost Classifieds
Example buckland alaska to ga is about 5.274 miles so the calculation does work for most. I have tried a few far away middle and close by and all calculations seem fine but every now and then I find one thats wonky like you posted but I dont think its a code thing. | Maybe, but in the example I gave you, I verified that the data entered in the database for Lon and Lat for Oberlin, OH and Milledgeville, GA are correct but it is still returning an incorrect distance.
|
| |
July 18th, 2010, 10:32 AM
|
#31 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
Like I said I cant explain why 1 in 10 or 20 tries does not work. I can only summarize the data must be wrong.
If you know where to get accurate lat and lon of zipcodes let me know.
|
| |
July 18th, 2010, 11:14 AM
|
#32 (permalink)
| | Member Verified Customer
Join Date: Apr 2006 Location: OH
Posts: 134
|
Chuck,
I don't want to beat this horse to death and apparently you and I aren't communicating very well. What I'm saying is that in the example I have given you between Oberlin, OH and Milledgeville, GA, the data is NOT wrong. I've verified the latitude and longitude by three different methods, Microsoft Streets, My Garmin GPS and my looking them up online. The data in the database is correct for BOTH locations but it is still giving the wrong calculation on the mileage.
I can live with it but there is a problem somewhere.
I'll leave this alone now and not bother you with it again unless I find the answer.
|
| |
July 20th, 2010, 07:13 PM
|
#33 (permalink)
| | Member
Join Date: Jun 2007
Posts: 316
|
Hi Chuck ...
Did you receive an email from me about this?
Thanks partner ...
Regards,
Doug
|
| |
July 21st, 2010, 07:46 AM
|
#34 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
there is nothing I can suggest. what I have said already is I can not say why maybe one in twenty or one in 40 is wrong. I mean come on the zipcode data is like 74000 entries and most are accurate.
|
| |
July 21st, 2010, 08:57 AM
|
#35 (permalink)
| | Member
Join Date: Jun 2007
Posts: 316
|
Hi Chuck ...
I understood your point, but that's not what I sent the email about.
Regards,
Doug
|
| |
July 21st, 2010, 10:29 AM
|
#36 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
well I will check to see if I have one.
|
| |
July 28th, 2010, 06:20 AM
|
#37 (permalink)
| | Member
Join Date: Jun 2007
Posts: 316
| Quote:
Originally Posted by Chuck S well I will check to see if I have one. | Emailed it a second time...
Did it arrive?
Thanks for your hep Chuck ...
Regards,
Doug
|
| |
July 28th, 2010, 06:57 AM
|
#38 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
Did you not say you where sending a mod request?
If you are sending more work let me know so I can provide a proper quote.
|
| |
July 28th, 2010, 09:54 AM
|
#39 (permalink)
| | Member
Join Date: Jun 2007
Posts: 316
| Quote:
Originally Posted by Chuck S Did you not say you where sending a mod request?
If you are sending more work let me know so I can provide a proper quote. | Sent to your previous email address on this subject ...
Thanks Chuck ...
Regards,
Doug
|
| |
July 28th, 2010, 04:02 PM
|
#40 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
As far as zipcodes I beleive your issue on distances is the free us postal code database does not have negative numbers on lon so maybe getting a cheap paid us postcode database would give accurate distance calculations.
|
| | |
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 | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Canadian Zip Codes | dknelson | Classifieds How do I...? | 3 | May 28th, 2006 08:24 AM | | SQL DB Zip Codes | alfaowner | Classifieds How do I...? | 13 | May 1st, 2006 01:57 PM | | Non Numeric Zip Codes | benFF | Classifieds Suggestions | 5 | May 1st, 2006 09:27 AM | | Zip Codes | Goose | Classifieds How do I...? | 9 | April 16th, 2006 09:19 PM | | Zip Codes Import? | SteveSteve | ReviewPost Installation & Upgrades | 1 | February 24th, 2006 05:27 AM | All times are GMT -5. The time now is 05:07 PM. | |