Catalog PyPI
PACKAGE EXPLORERView in registry

address2img

PyPI

A module to convert addresses to images using mapnik

Versions collected1
Direct dependencies0From release 1.1
Last observed20 Oct, 19:21 UTC

README

Version 1.1 documentation
# address2img
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()

```

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.129 Nov 20180

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
marmig0404/address2img

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:21 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:dde1becd002a6a8c4bc58efe8f8c223dc68de7c3789733b8c29128084607e703