application/helpers/util_helper.php
/*
* Searching in Google Geo json, return the long name given the type. 
* (If short_name is true, return short name)
*/
Searching in Google Geo json, return the long name given the type.
(If short_name is true, return short name)
Searching in Google Geo json return the long name given the type . ( If short_name is true return short name )
function longNameGivenType($type, $array, $short_name = false) {
    foreach( $array as $value) {
        if (in_array($type, $value["types"])) {
            if ($short_name)    
                return $value["short_name"];
            return $value["long_name"];
        }
    }
}
function longNameGivenType ( $ type , $ array , $ short_name = false ) { foreach ( $ array as $ value ) { if ( in_array ( $ type , $ value [ " types " ] ) ) { if ( $ short_name ) return $ value [ " short_name " ] ; return $ value [ " long_name " ] ; } } }
Searching in Google Geo json, return the long name given the type.
Searching in Google Geo json return the long name given the type .