public function GmapPolylineToolbox::getEncode in GMap Module 7.2
Former _gmap_polyutil_encode($x).
Return value
string Encoded.
File
- lib/
Drupal/ gmap/ GmapPolylineToolbox.php, line 133 - Contains GmapPolylineToolbox.php Encoded polyline utilities.
Class
Namespace
Drupal\gmapCode
public function getEncode() {
$this->encoded = '';
while ($this->latlonNumber >= 32) {
$this->encoded .= chr((32 | $this->latlonNumber & 31) + 63);
$this->latlonNumber >>= 5;
}
$this->encoded .= chr(($this->latlonNumber & 31) + 63);
return $this->encoded;
}