Giter Club home page Giter Club logo

pafconvert's Introduction

PAFConvert

PAFConvert is a tool that converts the CSV Postcode Address File (PAF) available from Royal Mail's Address Management Unit into a fairly flat Microsoft SQL Server database.

It creates an addresses table containing the majority of the data from the PAF, with lookups to a localities and thoroughfares table.

The expected schema for a Microsoft SQL Server database to which this data could be imported is provided, including relevant indexes, views and stored procedures for address and postcode search.

The tool is written in .NET 5 and is therefore cross-platform. CSVHelper is used to import data quickly from CSV. SQLite is used to do the conversion internally.


Using the tool

You may need to compile the application.

  1. Ensure you have the .NET 5.0 console runtime installed.
  2. Configure the database connection strings in appsettings.json.
    Note that the default StagingDB value of Data Source=:memory: creates an ephemeral in-memory database for the conversion. This takes about 3GB of RAM but is quickest.
  3. Place the CSV PAF.csv file in the application directory.
  4. Run the tool: dotnet PAFConvert.dll.

Licensing

The tool is provided with no warranty of fitness for purpose and is released under the MIT Licence.

pafconvert's People

Contributors

aim29 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

raigad

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.