Skip to main content

Generate a map of geolocations

Project description

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

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

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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

Supported by

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