cairn-import-geonames 0.0.2-alpha

Geonames TSV importer for the Cairn geocoder.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Geonames TSV → populated-place `Place` stream.
//!
//! Phase 0 stub. Phase 1 wires `csv`.

#![allow(dead_code)]

use cairn_place::Place;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum ImportError {
    #[error("io: {0}")]
    Io(#[from] std::io::Error),
}

pub fn import(_tsv_path: &std::path::Path) -> Result<Vec<Place>, ImportError> {
    Ok(Vec::new())
}