コード例 #1
0
ファイル: GeometryTest.php プロジェクト: binaryfr3ak/sfitixi
 public function testGeo()
 {
     $l = GeometryService::deserialize(475408500);
     $this->assertEquals(47.54085, $l);
     $i = GeometryService::serialize(47.54085);
     $this->assertEquals(475408500, $i);
 }
コード例 #2
0
ファイル: Address.php プロジェクト: binaryfr3ak/sfitixi
 /**
  * Returns the nearest waypoint Latitude as float - use GeometryService to set integer<->float precision
  * @return mixed
  */
 public function getNearestLng()
 {
     return GeometryService::deserialize($this->nearestLng);
 }