function gmap_polyutil_encode_latlon in GMap Module 7.2
Same name and namespace in other branches
- 5 gmap_polyutil.inc \gmap_polyutil_encode_latlon()
- 6.2 gmap_polyutil.inc \gmap_polyutil_encode_latlon()
- 6 gmap_polyutil.inc \gmap_polyutil_encode_latlon()
- 7 gmap_polyutil.inc \gmap_polyutil_encode_latlon()
Encode latlon function.
Deprecated
use GmapPolylineToolbox::getInstance()->setLatLonNumber($x)->getEncodedLatLon();
File
- ./
gmap_polyutil.inc, line 41 - Encoded polyline utilities.
Code
function gmap_polyutil_encode_latlon($x) {
include_once drupal_get_path('module', 'gmap') . '/lib/Drupal/gmap/GmapPolylineToolbox.php';
return GmapPolylineToolbox::getInstance()
->setLatLonNumber($x)
->getEncodedLatLon();
}