public function testGeo() { $l = GeometryService::deserialize(475408500); $this->assertEquals(47.54085, $l); $i = GeometryService::serialize(47.54085); $this->assertEquals(475408500, $i); }
/** * Set the nearest waypoint Longitude from float - use GeometryService to set integer<->float precision * @param mixed $nearestLng */ public function setNearestLng($nearestLng) { $this->nearestLng = GeometryService::serialize($nearestLng); }