-
Notifications
You must be signed in to change notification settings - Fork 11
/
geolocation.php
84 lines (74 loc) · 2.42 KB
/
geolocation.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
return [
/*
|--------------------------------------------------------------------------
| Caching (in seconds)
|--------------------------------------------------------------------------
|
| Responses can be cached for a specified duration which will limit hammering
| the api for the same IP lookup. You will need to ensure that you don't exceed
| any caching restrictions for your services T&Cs. To prevent any caching, please
| set this value to 0 or null.
|
*/
'cache-duration' => env('GEOLOCATION_CACHE', 60 * 60 * 24),
/*
|--------------------------------------------------------------------------
| Services
|--------------------------------------------------------------------------
|
| This sets up service defaults.
|
*/
'services' => [
/*
|--------------------------------------------------------------------------
| IP Info DB
|--------------------------------------------------------------------------
|
| This service is no longer accepting new applications, if you don't have a
| api key to use this service you will need to use the other service, Ip 2 Location.
|
*/
'ipinfodb' => [
/**
* Api key for the Ip Info DB service
*/
'api-key' => env('GEOLOCATION_IPINFODB_API_KEY', null),
/*
* Set the default API url
*/
'api-url' => 'https://api.ipinfodb.com',
/*
* Set the default API version
*/
'api-version' => 'v3',
/*
* City Precision url
*/
'api-city' => 'ip-city',
/*
* Country Precision url
*/
'api-country' => 'ip-country',
],
/*
|--------------------------------------------------------------------------
| IP 2 Location
|--------------------------------------------------------------------------
|
| This is the newer service.
|
*/
'ip2location' => [
/**
* Api key for the Ip2Location service
*/
'api-key' => env('GEOLOCATION_IP2LOCATION_API_KEY', null),
/*
* Set the default API url
*/
'api-url' => 'https://api.ip2location.io',
],
],
];