Skip to content

Commit d9288e9

Browse files
Eliepsepulkitjalan
authored andcommitted
Add continent vlues in getData (#26)
getData did not provide continent values
1 parent cd30931 commit d9288e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Drivers/MaxmindDriver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public function get($ip)
4848
'longitude' => (float) number_format($data->location->longitude, 5),
4949
'region' => $data->mostSpecificSubdivision->name,
5050
'regionCode' => $data->mostSpecificSubdivision->isoCode,
51+
'continent' => $data->continent->name,
52+
'continentCode' => $data->continent->code,
5153
'timezone' => $data->location->timeZone,
5254
'postalCode' => $data->postal->code,
5355
];

0 commit comments

Comments
 (0)