Country State city get Taxonomy
//get all countries
$vocabulary = taxonomy_vocabulary_machine_name_load('location_taxonomize');
$terms=taxonomy_get_tree( $vocabulary->vid,0,1,FALSE);
dsm($terms);
//get state by country
$vocabulary = taxonomy_vocabulary_machine_name_load('location_taxonomize');
$parent_country='37';
$terms=taxonomy_get_tree( $vocabulary->vid,$parent_country,1,FALSE);
dsm($terms);
//get city by state
$vocabulary = taxonomy_vocabulary_machine_name_load('location_taxonomize');
$parent_state='42';
$terms=taxonomy_get_tree( $vocabulary->vid,$parent_state,1,FALSE);
dsm($terms);