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.

Files for addok-csv, version 1.0.0rc1
Filename, size File type Python version Upload date Hashes
Filename, size addok_csv-1.0.0rc1-py3-none-any.whl (6.5 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size addok-csv-1.0.0rc1.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page