Skip to main content

Automates creation of requests to, and parsing of response from Google's geocoding API.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gloc-0.2.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gloc-0.2.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file gloc-0.2.1.tar.gz.

File metadata

  • Download URL: gloc-0.2.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for gloc-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9f4a550ec1ae7556ffa31d514956713675439c703fb70e54104e54c0466bf050
MD5 b15d1533688ff1f25146377c331c5fa4
BLAKE2b-256 0e6b87d96cceea38183a5127f38ddb42c1a9301e9b0ec14000d3c72ec3aec753

See more details on using hashes here.

File details

Details for the file gloc-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: gloc-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for gloc-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4f52176b9eb9b7dd0ce554a974e95b44c3058e57bb3a203ab71b3a5676f81ce
MD5 a6d646f8926abdf549231a1d01455eb9
BLAKE2b-256 f0b93cb28bd4b191f6305e93022be182789026cb8bb3c24b0273d7a7e9f2217a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page