Skip to content

Commit 57c4ae5

Browse files
docs: add Geocodio Enterprise usage section to README
Add documentation showing how to use the library with Geocodio Enterprise by passing api.enterprise.geocod.io as the hostname parameter.
1 parent 9fbbe6c commit 57c4ae5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,25 @@ except InvalidRequestError as e:
131131
print(f"Invalid request: {e}")
132132
```
133133
134+
Geocodio Enterprise
135+
-------------------
136+
137+
To use this library with Geocodio Enterprise, pass `api.enterprise.geocod.io` as the `hostname` parameter when initializing the client:
138+
139+
```python
140+
from geocodio import GeocodioClient
141+
142+
# Initialize client for Geocodio Enterprise
143+
client = GeocodioClient(
144+
"YOUR_API_KEY",
145+
hostname="api.enterprise.geocod.io"
146+
)
147+
148+
# All methods work the same as with the standard API
149+
response = client.geocode("1600 Pennsylvania Ave, Washington, DC")
150+
print(response.results[0].formatted_address)
151+
```
152+
134153
Documentation
135154
-------------
136155

0 commit comments

Comments
 (0)