https://github.com/caffe1neadd1ct/open-names-geohash-uk-generator
Quick tool written in PHP 7.2 on top of a number of symfony/silly/portphp and co-ordniate packages. Currently converts the open names british national grid references to long/lat and geohashs.
https://github.com/caffe1neadd1ct/open-names-geohash-uk-generator
geohash mysql php postcodes
Last synced: 4 months ago
JSON representation
Quick tool written in PHP 7.2 on top of a number of symfony/silly/portphp and co-ordniate packages. Currently converts the open names british national grid references to long/lat and geohashs.
- Host: GitHub
- URL: https://github.com/caffe1neadd1ct/open-names-geohash-uk-generator
- Owner: Caffe1neAdd1ct
- License: gpl-3.0
- Created: 2017-12-11T09:17:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-22T14:54:40.000Z (almost 8 years ago)
- Last Synced: 2025-06-15T03:46:22.437Z (5 months ago)
- Topics: geohash, mysql, php, postcodes
- Language: PHP
- Homepage:
- Size: 94.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Open Names GeoHash and Long/Lat Generator
## Intro
Quick tool written in PHP 7.2 on top of a number of symfony/silly/portphp and co-ordniate packages. Currently converts the open names british national grid references to long/lat and geohashs.
## Usage
### Installation
- `git clone git@github.com:Caffe1neAdd1ct/open-names-geohash-uk-generator.git`
- Install PHP 7.2 and Composer https://getcomposer.org/download/
- `php composer install`
- Configure the app inside app/config/config.yaml
- Create schema and pull in app/config/postcodes.sql
### Open Names Data Download
- Navigate to https://www.ordnancesurvey.co.uk/opendatadownload/products.html
- Find the "OS Open Names" product
- Tick to download this product, scroll to the bottom and continue
- Enter your life details and await your download URL to arrive via the electroic postal service
- Pop the downloaded .zip into `data/opname_csv_gb.zip`
### Turning the cogs
Run by either executing the index.php file:
- chmod +x index.php
- ./index.php extract
- ./index.php process
Or running it through a php executable:
- php index.php extract
- php index.php process