Skip to main content

Add CSV support to your Addok instance.

Project description

# Addok plugin add CSV geocoding endpoints

## Install

pip install addok-csv

## API

This plugin adds the following endpoints:

  • /search/csv

  • /reverse/csv

### Query parameters

  • data: the CSV file to process

  • delimiter (optional): the CSV delimiter (, or ;); if not given, we try to guess

  • quote (optional): CSV quote

  • encoding (optional): the encoding of the file (default to ‘utf-8-sig’)

  • columns (multiple): the columns, ordered, to be used for geocoding; if no column is given, all columns will be used

  • with_bom: if true, and if the encoding if utf-8, the returned CSV will contain a BOM (for Excel users…)

  • lat/lon (optional): center to bias the search

Any filter can be passed as key=value querystring, where key is the filter name and value is the column name containing the filter value for each row. For example, if there is a column “code_insee” and we want to use it for “citycode” filtering, we would pass citycode=code_insee as query string parameter.

## Config

  • CSV_ENCODING: default encoding to open CSV files (default: ‘utf-8-sig’)

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

addok-csv-1.0.0rc1.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

addok_csv-1.0.0rc1-py3-none-any.whl (6.5 kB view hashes)

Uploaded 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