Exemple #1
0
 /**
  * Create address object.
  *
  * @param string $line1  line one
  * @param string $line2  line two
  * @param string $city  city or town
  * @param string $state  state or province
  * @param string $postcode  postal code or zip code
  * @param T_Geo_Country $country  country
  * @param float $longitude  degrees longitude
  * @param float $latitude  degrees latitude
  * @param int $altitude  altitude to nearest metre
  */
 function __construct($line1, $line2, $city, $state, $postcode, $country, $longitude = null, $latitude = null, $altitude = null)
 {
     $this->line_one = $line1;
     $this->line_two = $line2;
     $this->city = $city;
     $this->state = $state;
     $this->post_code = $postcode;
     $this->ctry = $country;
     parent::__construct($longitude, $latitude, $altitude);
 }
Exemple #2
0
 function testAltitudeCanBeFilteredOnRetrieval()
 {
     $f = new T_Test_Filter_Suffix();
     $pt = new T_Geo_Point(40.23, 50.46, 231);
     $this->assertSame($f->transform(231), $pt->getAltitude($f));
 }