Skip to main content

Generate a map of geolocations

https://github.com/amiralis/geo-mapper/blob/master/include/map.png

Example

To use as a library.

>>> import geomap
>>> m = geomap.Map(args.projection)
>>> lon =[37.7833, ...]
>>> lat = [-122.4167, ...]
>>> m.add_coordinates(lon, lat)
# to show the map
>>> m.generate_map()
# to save to a file
>>> m.generate_map(output='map.png')

To use as a standalone program.

# to show the map
$ geo-map coordinates.txt
# to save to a file
$ geo-map coordinates.txt -o map.pdf

The input is a comma separated values (CSV) file, the first value is the longitude and the second values is the latitude.

37.7833, -122.4167
42.3581, 71.0636
.
.
.

Installation

To install geomap, simply:

$ pip install geomap

Download files

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

Source Distribution

geomap-0.2.1.tar.gz (249.7 kB view details)

Uploaded Source

Built Distribution

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

geomap-0.2.1-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: geomap-0.2.1.tar.gz
  • Upload date:
  • Size: 249.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for geomap-0.2.1.tar.gz
Algorithm Hash digest
SHA256 93ee08d5508b1cad8678f79b1ecccd2829a6a065d042137eae0b7e5cae30d379
MD5 03f6f9f352db3a13d1efecfade6c4063
BLAKE2b-256 e68c98f6d759cc44f5451858b28bbd5155395a5749b61b01393c572ac26c9ed6

See more details on using hashes here.

File details

Details for the file geomap-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for geomap-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6c3baf43d94ca56d5a2d8bb798bb1fa2ad1036dfeaebbba2a398c12ef1bdbfc5
MD5 5e9c5bfba36140e1d15b4b5b98bc4287
BLAKE2b-256 bb13ef239f86f79bae353aa48cfc7ae0e92ba6c609a88fe4164929be5d7ed789

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2

1 file

0.1

1 file

Supported by

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