geopy
Python Geocoding Toolbox
Decision gist · record as of 2026-08-14
Yes. geopy is a stable, actively maintained library with no known vulnerabilities, low install friction, and permissive licensing. It solves a common problem (address-to-coordinate conversion and distance calculation) with a clean API and support for multiple providers. Install it if you need geocoding or distance calculations in your application.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a user_agent parameter for Nominatim; third-party geocoding services may have rate limits or require API keys.
- Low install friction with a single runtime dependency (geographiclib).
- The package is actively maintained with a recent release, has been in production use since 2006, and supports current Python versions (3.8 to 3.15).
License · maintenance · safety
MIT (permissive) — MIT license is permissive and places no restrictions on commercial or private use, modification, or distribution—only requires preservation of copyright and license notices.
last release 2026-07-12 (33 days) · last repo commit 2026-07-12 · 4,840 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 19,001,861 downloads/mo, #1,075 on PyPI
Alternatives
Verify before relying
pip install geopy
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="my_app")
location = geolocator.geocode("175 5th Avenue NYC")
print(location.latitude, location.longitude)- Whether all supported geocoding services are documented with their individual rate limits and authentication requirements.
- Whether geographiclib is bundled or must be installed separately for distance calculations to work.
What it is and what it does
geopy is a mature geocoding and distance-calculation library that abstracts away the complexity of calling multiple web-based geocoding services. It lets you convert an address string into latitude/longitude coordinates, reverse that process to find an address from coordinates, and compute distances between geographic points using geodesic or great-circle methods. The library wraps services like OpenStreetMap Nominatim and Google Geocoding API, so you can switch providers without rewriting your code.
The package is designed for developers who need to work with geographic data in Python—whether building location-aware applications, analyzing spatial datasets, or integrating map-based features. It handles the HTTP calls, response parsing, and coordinate math internally, leaving you to focus on your application logic. The single runtime dependency (geographiclib) keeps the install footprint small.
Use it for
- Convert user-entered addresses into map coordinates for location-based search or mapping applications.
- Reverse-geocode GPS coordinates to display human-readable addresses in mobile or field-service apps.
- Calculate driving or straight-line distances between two locations for routing, delivery, or proximity analysis.
- Batch geocode a list of addresses to prepare geographic datasets for analysis or visualization.
- Switch between multiple geocoding providers (Nominatim, Google, etc.) without changing application code.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
geopy is a stable, actively maintained library with no known vulnerabilities, low install friction, and permissive licensing. It solves a common problem (address-to-coordinate conversion and distance calculation) with a clean API and support for multiple providers. Install it if you need geocoding or distance calculations in your application.
Install
geopy on PyPI
Before you install
Low install friction with a single runtime dependency (geographiclib). The package is actively maintained with a recent release, has been in production use since 2006, and supports current Python versions (3.8 to 3.15).
Requires a user_agent parameter for Nominatim; third-party geocoding services may have rate limits or require API keys.
License in practice
MIT license is permissive and places no restrictions on commercial or private use, modification, or distribution—only requires preservation of copyright and license notices.
Quickstart
pip install geopy
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="my_app")
location = geolocator.geocode("175 5th Avenue NYC")
print(location.latitude, location.longitude)
Verify before relying
- Whether all supported geocoding services are documented with their individual rate limits and authentication requirements.
- Whether geographiclib is bundled or must be installed separately for distance calculations to work.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagegeographiclib |
| Maintenance | Actively maintained 33 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 19,001,861 / month, #1,075 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Scientific/Engineering :: GISTopic :: Software Development :: Libraries :: Python Modules |
Evidence: geopy-2.5.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “distance between two locations”
- geopygeopy is a Python client for geocoding and distance calculation that…
- haversineCalculates great-circle distances between geographic coordinates on…
- edlibEdlib calculates edit distance (Levenshtein distance) between two…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also geocoder · haversine · censusgeocode · reverse-geocode · googlemaps · opencage · reverse_geocoder · smartystreets-python-sdk · azure-maps-search · pygeocodio