Skip to main content

A simple wrapper for Google's geocoding api.

Get address data from coordinates or coordinates from an address in one function call. No need to bother with creation of requests and parsing of responses. Distance from a Location to another is available as a method.

from gloc import Location

location = Location.from_coordinates(57.696994, 11.986500)

same_location = Location.from_address("Skånegatan 59, 412 52 Göteborg, Sweden")

distance = location.distance_to(same_location)

Put an api-key in a file named google_api_key.txt in working directory or set environment variable GOOGLE_API_KEY.

Release files for gloc 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gloc 0.2.1
File Size Uploaded
gloc-0.2.1.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gloc 0.2.1
File Interpreter ABI Platform
gloc-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / gloc-0.2.1.tar.gz

Download URL gloc-0.2.1.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9f4a550ec1ae7556ffa31d514956713675439c703fb70e54104e54c0466bf050
BLAKE2b-256 checksum
How to use checksums
0e6b87d96cceea38183a5127f38ddb42c1a9301e9b0ec14000d3c72ec3aec753
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release files / gloc-0.2.1-py3-none-any.whl

Download URL gloc-0.2.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4f52176b9eb9b7dd0ce554a974e95b44c3058e57bb3a203ab71b3a5676f81ce
BLAKE2b-256 checksum
How to use checksums
f0b93cb28bd4b191f6305e93022be182789026cb8bb3c24b0273d7a7e9f2217a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page