Skip to content

Commit a532572

Browse files
authored
Merge pull request #24 from insspb/nevidimov_master
Replaced deprecated freegeoip.net endpoint with freegeoip.live
2 parents 84e0f12 + 59f363a commit a532572

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ $ geocode "Ottawa, ON" \
208208
| [Baidu][Baidu] | China | API key | | yes | | |
209209
| [Bing][Bing] | World | API key | yes | yes | | yes |
210210
| [CanadaPost][CanadaPost] | Canada | API key | yes | | | |
211-
| [FreeGeoIP][FreeGeoIP] This API endpoint is deprecated and will stop working on July 1st, 2018. | World | Rate Limit, [Policy][FreeGeoip-Policy] | | | | |
211+
| [FreeGeoIP][FreeGeoIP] | World | Rate Limit, [Policy][FreeGeoip-Policy] | | | | |
212212
| [Gaode][Gaode] | China | API key | | yes | | |
213213
| [Geocoder.ca][Geocoder.ca] (Geolytica) | CA & US | Rate Limit | | | | |
214214
| [GeocodeFarm][GeocodeFarm] | World | [Policy][GeocodeFarm-Policy] | yes | yes | | |

docs/source/providers/FreeGeoIP.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FreeGeoIP.net
1+
FreeGeoIP.live
22
=============
3-
freegeoip.net provides a public HTTP API for software developers to
3+
freegeoip.live provides a public HTTP API for software developers to
44
search the geolocation of IP addresses. It uses a database of IP addresses
55
that are associated to cities along with other relevant information like
66
time zone, latitude and longitude.
@@ -37,4 +37,4 @@ Parameters
3737
References
3838
----------
3939

40-
- `API Reference <http://freegeoip.net/>`_
40+
- `API Reference <https://freegeoip.live/>`_

geocoder/freegeoip.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def time_zone(self):
9494

9595
class FreeGeoIPQuery(MultipleResultsQuery):
9696
"""
97-
FreeGeoIP.net
97+
FreeGeoIP.live
9898
=============
99-
freegeoip.net provides a public HTTP API for software developers to
99+
freegeoip.live provides a public HTTP API for software developers to
100100
search the geolocation of IP addresses. It uses a database of IP addresses
101101
that are associated to cities along with other relevant information like
102102
time zone, latitude and longitude.
@@ -107,12 +107,12 @@ class FreeGeoIPQuery(MultipleResultsQuery):
107107
108108
API Reference
109109
-------------
110-
http://freegeoip.net/
110+
https://freegeoip.live/
111111
"""
112112
provider = 'freegeoip'
113113
method = 'geocode'
114114

115-
_URL = 'https://freegeoip.net/json/'
115+
_URL = 'https://freegeoip.live/json/'
116116
_RESULT_CLASS = FreeGeoIPResult
117117
_KEY_MANDATORY = False
118118

0 commit comments

Comments
 (0)