-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.txt
81 lines (50 loc) · 2.23 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Ordnance Survey OpenData Sources
================================
About
=====
This project contains various Ordnance Survey OpenData Sources processed from their raw CSV form.
For more info see:
http://www.ordnancesurvey.co.uk/oswebsite/opendata/
http://data.ordnancesurvey.co.uk/
http://parlvid.mysociety.org:81/os/
The project directory structure is listed below:
Code-Point Open
===============
This directory contains processed data dumps of the Code-Point Open Datasets - see http://www.ordnancesurvey.co.uk/oswebsite/products/code-point-open/index.html for more info.
Datasets available:
MongoDB
-------
There are two datasets for MongoDB, both are in 7Zip compression format: http://www.7-zip.org/
OS-Code-Point-Open-MongoDB-Dump.7z - use mongorestore.exe to import
OS-Code-Point-Open-MongoDB-JSON-Export.7z - use mongoimport to import (then manually build the indexes):
>db.PostCodes.ensureIndex({ PostCode : 1 })
>db.PostCodes.ensureIndex({ loc : '2d' })
You can then query using the following commands:
>db.PostCodes.find({ PostCode: 'AB101AA' })
>db.PostCodes.find({ loc : [-2.096647896, 57.14823188] })
>db.runCommand({ geoNear : "PostCodes", near : [-2.096647896, 57.14823188], num : 10 });
SQL2005
-------
A Microsoft SQL Server 2005 table script containing the data in the following columns:
[PostCode] [varchar](9),
[Longitude] [decimal](18, 15),
[Latitude] [decimal](18, 15)
Script is in 7Zip compression format: http://www.7-zip.org/
SQL2008
-------
A Microsoft SQL Server 2008 table script containing the data in the following column:
[PostCode] [varchar](9) NOT NULL,
[Coordinate] [geography] NOT NULL
Script is in 7Zip compression format: http://www.7-zip.org/
RavenDB
-------
A RavenDB Smuggler dump.
The document is in the format:
{"PostCode":"BB1 9NF","Location":{"Longitude":53.79244101,"Latitude":-2.472738685}}
See http://ravendb.net for more info.
Script is in 7Zip compression format: http://www.7-zip.org/
License:
========
This data contains Ordnance Survey data (c) Crown copyright and database right 2010.
Code-Point Open contains Royal Mail data (c) Royal Mail copyright and database right 2010.
Data may be used under the terms of the OS OpenData licence: http://parlvid.mysociety.org:81/os/licence.pdf