Giter Club home page Giter Club logo

pelias-importer-trentino-opendata's Introduction

Pelias Trentino

Scripts e Immagini Docker per l'elaborazione di opendata del Trentino da importare in Pelias

Dati

  • Numeri civici comune di Trento
  • Nomi di vie del comune di Trento
  • Numeri civici comune di Rovereto
  • Nomi di vie del comune di Rovereto
  • Numeri civici OpenStreetMap
  • Rete stradale e nomi di vie OpenStreetMap
  • Punti di interesse OpenStreetMap

Utilizzo via docker

https://github.com/DigitalCommonsLab/docker/blob/master/projects/italy-trentino/README.md

API endpoints

https://github.com/pelias/documentation/#endpoint-descriptions

Utilizzo via bash

(da utilizzare solo per debug)

./setup.sh
./bin/download
./bin/prepare

Directories

/data contiene dati importabili in Pelias /tmp contiene dati temporanei scaricati e di pre-processamento

Scripts

setup.sh install tool indispensabili per download e trasformazione dati

./bin/download.default.conf lista file remoti da scaricare, spostare questo file nella repo /docker/projects/italy-trentino

./bin/download scarica tutte le datasource ed estrae file compressi

./bin/prepare associa il nome della strada ad ogni civico con il codice strada prendendolo dal file csv trasformazione e conversione dei dati scaricati in formato importabile in pelias

Altri Scripts

./bin/csvWkt2LatLon.js converte file csv con colonna geometria in format WKT in csv con colonne lat,lon (da centroide o simile)

./bin/csv2polyline.js converte i file csv in formato .polyline importabile come road network in Pelias .0sv

Utility

File temporanei

file che possono essere eliminati per liberare spazio su disco, dopo i comandi di import

rm -rf /data/openaddresses
rm -rf /data/openstreetmap
rm -rf /data/polylines
cd /data/interpolation
rm -rf -- !("street.db"|"address.db")
cd /data/placeholder
rm -rf -- !("store.sqlite3")

Image

Tests

Query elasticsearch instance:

curl -X GET "localhost:9200/_search" -H 'Content-Type: application/json' -d'
{
    "query": {
        "simple_query_string" : {
            "query" : "povo"
        }
    }
}
'

result

Query pelias api:

curl -X GET "http://peliasvm:4000/v1/search?text=povo" -H 'Content-Type: application/json'

result

pelias-importer-trentino-opendata's People

Contributors

stefanocudini avatar ffais avatar

Watchers

 avatar Maurizio Napolitano avatar James Cloos avatar

pelias-importer-trentino-opendata's Issues

rewrite using GULPJS to automate pipeline

tzdata blocking docker image building

after command
docker build -t dockeimage .
output blocked and wait input from user

...
Setting up tzdata (2019a-0ubuntu0.18.04) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------

Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.

  1. Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc
  2. America     5. Arctic     8. Europe    11. SystemV
  3. Antarctica  6. Asia       9. Indian    12. US
Geographic area: 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.