Question

I have a listing wordpress site and want to integrate geo data into the Wordpress MySQL Database for custom search functionality

I want to utilize different aspects to create different things...

City values will become taxonomies State values will become taxonomies Zip Code values will become taxonomies Latitude - will become custom fields Longitude - will become custom fields County will be come taxonomies

City Taxonomy -> City Taxonomy Terms State Taxonomy -> State Taxonomy Terms Zip Code Taxonomy -> Zip Code Taxonomy Terms Latitude -> Custom Field Value Longitude -> Custom Field Value County Taxonomy -> County Taxonomy Terms

Here are a couple sample entries from the SQL files I have:

DROP TABLE IF EXISTS `cities_extended`;
CREATE TABLE `cities_extended` (
`city` varchar(50) NOT NULL,
`state_code` char(2) NOT NULL,
`zip` int(5) unsigned zerofill NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
`county` varchar(50) NOT NULL
) TYPE=MyISAM;

INSERT INTO `cities_extended` VALUES ('Holtsville', 'NY', '00501', '40.8152',    '-73.0455', 'Suffolk');
INSERT INTO `cities_extended` VALUES ('Holtsville', 'NY', '00544', '40.8152', '-73.0455', 'Suffolk');
INSERT INTO `cities_extended` VALUES ('Adjuntas', 'PR', '00601', '18.1788', '-66.7516', 'Adjuntas');

Is this doable with Wordpress Database? Thanks

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top