コード例 #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
 /**
  * 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);
 }