Reverse Geocoder
-----------------
Reverse Geocoder takes a latitude / longitude coordinate and returns the nearest town/city.
This library improves on an existing library called reverse_geocode developed by Richard Penman in the following ways:
1. Besides city and country, this library also returns the administrative 1 & 2 regions, latitude and longitude
2. The performance is much faster since a parallelized K-D tree is implemented
(See https://github.com/thampiman/reverse-geocoder for performance comparison)
Supports Python 2 and 3. You can also load a custom data source. Fore more help, see https://github.com/thampiman/reverse-geocoder.
Example usage:
>>> import reverse_geocoder as rg
>>> coordinates = (51.5214588,-0.1729636),(9.936033, 76.259952),(37.38605,-122.08385)
>>> rg.search(coordinates)
[{'name': 'Bayswater',
'cc': 'GB',
'lat': '51.51116',
'lon': '-0.18426',
'admin1': 'England',
'admin2': 'Greater London'},
{'name': 'Cochin',
'cc': 'IN',
'lat': '9.93988',
'lon': '76.26022',
'admin1': 'Kerala',
'admin2': 'Ernakulam'},
{'name': 'Mountain View',
'cc': 'US',
'lat': '37.38605',
'lon': '-122.08385',
'admin1': 'California',
'admin2': 'Santa Clara County'}]
Raw data
{
"_id": null,
"home_page": "https://github.com/thampiman/reverse-geocoder",
"name": "reverse_geocoder",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Ajay Thampi",
"author_email": "ajay.thampi@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0b/0f/b7d5d4b36553731f11983e19e1813a1059ad0732c5162c01b3220c927d31/reverse_geocoder-1.5.1.tar.gz",
"platform": "UNKNOWN",
"description": "Reverse Geocoder\n-----------------\nReverse Geocoder takes a latitude / longitude coordinate and returns the nearest town/city.\nThis library improves on an existing library called reverse_geocode developed by Richard Penman in the following ways:\n1. Besides city and country, this library also returns the administrative 1 & 2 regions, latitude and longitude\n2. The performance is much faster since a parallelized K-D tree is implemented \n(See https://github.com/thampiman/reverse-geocoder for performance comparison)\n\nSupports Python 2 and 3. You can also load a custom data source. Fore more help, see https://github.com/thampiman/reverse-geocoder.\n\nExample usage:\n >>> import reverse_geocoder as rg\n >>> coordinates = (51.5214588,-0.1729636),(9.936033, 76.259952),(37.38605,-122.08385)\n >>> rg.search(coordinates)\n [{'name': 'Bayswater', \n 'cc': 'GB', \n 'lat': '51.51116',\n 'lon': '-0.18426', \n 'admin1': 'England', \n 'admin2': 'Greater London'}, \n {'name': 'Cochin', \n 'cc': 'IN', \n 'lat': '9.93988',\n 'lon': '76.26022', \n 'admin1': 'Kerala', \n 'admin2': 'Ernakulam'},\n {'name': 'Mountain View', \n 'cc': 'US', \n 'lat': '37.38605',\n 'lon': '-122.08385', \n 'admin1': 'California', \n 'admin2': 'Santa Clara County'}]",
"bugtrack_url": null,
"license": "lgpl",
"summary": "Fast, offline reverse geocoder",
"version": "1.5.1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0b0fb7d5d4b36553731f11983e19e1813a1059ad0732c5162c01b3220c927d31",
"md5": "a40c7329417b2d04e2af281f169068ec",
"sha256": "2a2e781b5f69376d922b78fe8978f1350c84fce0ddb07e02c834ecf98b57c75c"
},
"downloads": -1,
"filename": "reverse_geocoder-1.5.1.tar.gz",
"has_sig": false,
"md5_digest": "a40c7329417b2d04e2af281f169068ec",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2246559,
"upload_time": "2016-09-15T16:46:46",
"upload_time_iso_8601": "2016-09-15T16:46:46.277734Z",
"url": "https://files.pythonhosted.org/packages/0b/0f/b7d5d4b36553731f11983e19e1813a1059ad0732c5162c01b3220c927d31/reverse_geocoder-1.5.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2016-09-15 16:46:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "thampiman",
"github_project": "reverse-geocoder",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "numpy",
"specs": [
[
">=",
"1.11.0"
]
]
},
{
"name": "scipy",
"specs": [
[
">=",
"0.17.1"
]
]
}
],
"lcname": "reverse_geocoder"
}