You appear to be a bot. Output may be restricted
Description
Return latlng combination
Usage
$string = bw_gmap_latlng( $lat, $lng );
Parameters
- $lat
- ( string ) required – latitude – expected to be numeric, negative for South of the equator
- $lng
- ( string ) required – longitude – expected to be number, negative for West of Greenwich
Returns
string slightly sanitized "lat,lng"TO DO
Check the latitude coordinate is between -90 and 90. and the longitude coordinate is between -180 and 180.Source
File name: oik/shortcodes/oik-googlemap.phpLines:
1 to 9 of 9
function bw_gmap_latlng( $lat, $lng ) { $latlng = "0.0,0.0"; if ( is_numeric( $lat) && is_numeric( $lng ) ) { $latlng = $lat . ',' . $lng ; } bw_trace2( $latlng, "latlng", true ); return $latlng; }View on GitHub View on Trac