A python module to convert addresses to map images using open source map data sources and mapnik.
## Installation
address2img works on any system with mapnik 2.x or newer.
Mapnik must be installed before proceeding with install.
To test for mapnik, run
```bash
mapnik-config -v # Should return a version 2.x or newer
```
Use pip to install address2img
```bash
sudo python -m pip install address2img
```
## Basic Usage
To use address2img, the configuration file and mapnik xml file must be configured.
The configuration file is [config.ini](config.ini) by default. To configure the mapnik xml file, see [here](https://github.com/mapnik/mapnik/wiki/XMLConfigReference).
After the config and xml files are configured, usage is as simple as importing the module and calling the function.
```python
# importing map_maker file from address2img
from address2img import map_maker
# defining addresses for which render maps, must be a list
addresses = [
'Piazza del Duomo, 56126 Pisa PI, Italy',
'1600 Pennsylvania Ave NW, Washington, DC 20500',
]
# instantiating Map_Maker class with addresses
worker = map_maker.Map_Maker(addresses)
# calling make_map method of the Map_Maker instance
worker.make_map()
```
Metadata
Release files for address2img 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| address2img-1.1.tar.gz | 3.6 kB | Without provenance | Details for address2img-1.1.tar.gz |
Release files / address2img-1.1.tar.gz
| Download URL | address2img-1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1753798c536ce1e0688ef5acc7040deb5b5b7ebfcb67ece9b3d5586421c45f7
|
|
BLAKE2b-256 checksum How to use checksums |
3bf140d8b733d364867f5a01f3959cf6fc26c30bca4d7ae165d4aef69402df6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Security for address2img 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.