REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 3.69 KB
Close
/home/getspomw/royalsquad.us/vendor/geoip2/geoip2/src/Record/Location.php
Text
Base64
<?php declare(strict_types=1); namespace GeoIp2\Record; /** * Contains data for the location record associated with an IP address. * * This record is returned by all location services and databases besides * Country. */ class Location implements \JsonSerializable { /** * @var int|null The average income in US dollars * associated with the requested IP address. This attribute is only available * from the Insights service. */ public readonly ?int $averageIncome; /** * @var int|null The approximate accuracy radius in * kilometers around the latitude and longitude for the IP address. This is * the radius where we have a 67% confidence that the device using the IP * address resides within the circle centered at the latitude and longitude * with the provided radius. */ public readonly ?int $accuracyRadius; /** * @var float|null The approximate latitude of the location * associated with the IP address. This value is not precise and should not be * used to identify a particular address or household. */ public readonly ?float $latitude; /** * @var float|null The approximate longitude of the location * associated with the IP address. This value is not precise and should not be * used to identify a particular address or household. */ public readonly ?float $longitude; /** * @var int|null the metro code is a no-longer-maintained code for targeting * advertisements in Google * * @deprecated */ public readonly ?int $metroCode; /** * @var int|null The estimated population per square * kilometer associated with the IP address. This attribute is only available * from the Insights service. */ public readonly ?int $populationDensity; /** * @var string|null The time zone associated with location, as * specified by the IANA Time Zone Database, e.g., "America/New_York". See * https://www.iana.org/time-zones. */ public readonly ?string $timeZone; /** * @ignore * * @param array<string, mixed> $record */ public function __construct(array $record) { $this->averageIncome = $record['average_income'] ?? null; $this->accuracyRadius = $record['accuracy_radius'] ?? null; $this->latitude = $record['latitude'] ?? null; $this->longitude = $record['longitude'] ?? null; $this->metroCode = $record['metro_code'] ?? null; $this->populationDensity = $record['population_density'] ?? null; $this->timeZone = $record['time_zone'] ?? null; } /** * @return array<string, mixed> */ public function jsonSerialize(): array { $js = []; if ($this->averageIncome !== null) { $js['average_income'] = $this->averageIncome; } if ($this->accuracyRadius !== null) { $js['accuracy_radius'] = $this->accuracyRadius; } if ($this->latitude !== null) { $js['latitude'] = $this->latitude; } if ($this->longitude !== null) { $js['longitude'] = $this->longitude; } if ($this->metroCode !== null) { $js['metro_code'] = $this->metroCode; } if ($this->populationDensity !== null) { $js['population_density'] = $this->populationDensity; } if ($this->timeZone !== null) { $js['time_zone'] = $this->timeZone; } return $js; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AbstractNamedRecord.php
1.35 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AbstractPlaceRecord.php
1.34 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
City.php
265 B
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Continent.php
1.41 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Country.php
1.54 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Location.php
3.69 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MaxMind.php
878 B
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Postal.php
1.52 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RepresentedCountry.php
1.23 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Subdivision.php
1.20 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Traits.php
11.82 KB
lrw-rw-rw-
2025-05-05 08:48:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).