public function testGeo() { $l = GeometryService::deserialize(475408500); $this->assertEquals(47.54085, $l); $i = GeometryService::serialize(47.54085); $this->assertEquals(475408500, $i); }
/** * Returns the nearest waypoint Latitude as float - use GeometryService to set integer<->float precision * @return mixed */ public function getNearestLng() { return GeometryService::deserialize($this->nearestLng); }