PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   Postcode/Zip Codes (http://www.photopost.com/forum/classifieds-how-do-i/148840-postcode-zip-codes.html)

stuart October 11th, 2012 01:03 PM

Postcode/Zip Codes
 
Hello

Does anyone have a "formatted for PhotoPost Classifieds" UK Postcode database file that I can use.

I am desperate to get this feature working on my new site and would welcome some help.

Best regards
Stuart

Chuck S October 11th, 2012 02:11 PM

You can import any type of CVS file you create into the zipcode database.

There are discussions here where I have said what I am going to say below. Basically you would need to look at the zipcode fields in the zipData table and then any UK zipcode database you get using excel or any type of cvs file you have you need to create a new cvs moving around the columns of data in your uk file to the format of the zipData table. You can add in blank columns where your uk field might not have data like CityName etc and ditch any columns of extra data that the table does not use. As long as you create a zipcode database in the format of our table. I do not know how different the formats are there in the UK.

stuart October 11th, 2012 03:08 PM

Quote:

Originally Posted by Chuck S (Post 1303485)
You can import any type of CVS file you create into the zipcode database.

There are discussions here where I have said what I am going to say below. Basically you would need to look at the zipcode fields in the zipData table and then any UK zipcode database you get using excel or any type of cvs file you have you need to create a new cvs moving around the columns of data in your uk file to the format of the zipData table. You can add in blank columns where your uk field might not have data like CityName etc and ditch any columns of extra data that the table does not use. As long as you create a zipcode database in the format of our table. I do not know how different the formats are there in the UK.

Hi

I am in the MYPHP ADMIN - having trouble finding the zipcode database?

I have created a zipcode file for the uk in CSV format - how and where do I use it?

Thanks for any help.

stuart

Chuck S October 11th, 2012 03:23 PM

Stuart what I am saying is you will need to do is created a csv file in the format of the zipData table. You should be able to see the fields and in what order they are in in that table.

zipcode, ZipCodeType, City, CityType, State, StateCode, AreaCode, lat, lon

You would use empty columns in the cvs for any fields your uk database does not have.

The important columns that need to exist are zipcode lat and lon. Those are the ones our program uses. We grab the latitude and longitude based on the zipcode.

You would arrange your final result in the order of the column structure above and I beleive phpmyadmin has an import option to import a cvs file but of course you probally can not do more than 2mb at a time so you may need to break your cvs into multiple files.

stuart October 11th, 2012 04:00 PM

Quote:

Originally Posted by stuart (Post 1303487)
Hi

I am in the MYPHP ADMIN - having trouble finding the zipcode database?

I have created a zipcode file for the uk in CSV format - how and where do I use it?

Thanks for any help.

stuart


Okay got it - and now implemented, and it works :) - many tanks.

Regards
Stuart

Chuck S October 11th, 2012 05:58 PM

Yep its all about having the cvs in the proper format for the mysql table ;)

Chuck S October 12th, 2012 09:57 AM

If you wish you can post any zipcode stuff you made here if you want to share.

http://www.photopost.com/forum/classified-mods/


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