Skip to content

Instantly share code, notes, and snippets.

@stevenday
Last active September 30, 2015 13:02
Show Gist options
  • Save stevenday/cbe598d1f4a6b4a08a42 to your computer and use it in GitHub Desktop.
Save stevenday/cbe598d1f4a6b4a08a42 to your computer and use it in GitHub Desktop.
Example mapit postcode JSON output
{
wgs84_lat: 51.121736288836274,
coordsyst: "G",
shortcuts: {
WMC: 65717,
ward: {
county: 53220,
district: 7803
},
council: {
county: 2244,
district: 2467
}
},
wgs84_lon: -0.24685957449359425,
postcode: "RH11 0LQ",
easting: 522790,
areas: {
2244: {
parent_area: null,
generation_high: 25,
all_names: {
},
id: 2244,
codes: {
ons: "45",
gss: "E10000032",
unit_id: "16417"
},
name: "West Sussex County Council",
country: "E",
type_name: "County council",
generation_low: 1,
country_name: "England",
type: "CTY"
},
2467: {
parent_area: null,
generation_high: 25,
all_names: {
},
id: 2467,
codes: {
ons: "45UF",
gss: "E07000227",
unit_id: "16340"
},
name: "Horsham District Council",
country: "E",
type_name: "District council",
generation_low: 1,
country_name: "England",
type: "DIS"
},
7803: {
parent_area: 2467,
generation_high: 25,
all_names: {
},
id: 7803,
codes: {
ons: "45UFGX",
gss: "E05007664",
unit_id: "16366"
},
name: "Rusper and Colgate",
country: "E",
type_name: "District council ward",
generation_low: 1,
country_name: "England",
type: "DIW"
},
11811: {
parent_area: null,
generation_high: 25,
all_names: {
},
id: 11811,
codes: {
ons: "08",
gss: "E15000008",
unit_id: "41421"
},
name: "South East",
country: "E",
type_name: "European region",
generation_low: 1,
country_name: "England",
type: "EUR"
},
40467: {
parent_area: null,
generation_high: 25,
all_names: {
},
id: 40467,
codes: {
ons: "E02006588"
},
name: "Horsham 001",
country: "E",
type_name: "Middle Layer Super Output Area (Full)",
generation_low: 13,
country_name: "England",
type: "OMF"
},
47661: {
parent_area: null,
generation_high: 25,
all_names: {
},
id: 47661,
codes: {
ons: "E02006588"
},
name: "Horsham 001",
country: "E",
type_name: "Middle Layer Super Output Area (Generalised)",
generation_low: 13,
country_name: "England",
type: "OMG"
},
53220: {
parent_area: 2244,
generation_high: 25,
all_names: {
},
id: 53220,
codes: {
unit_id: "16397"
},
name: "Warnham and Rusper",
country: "E",
type_name: "County council electoral division",
generation_low: 12,
country_name: "England",
type: "CED"
},
56627: {
parent_area: 2467,
generation_high: 25,
all_names: {
},
id: 56627,
codes: {
ons: "45UF018",
gss: "E04009964",
unit_id: "16382"
},
name: "Rusper",
country: "E",
type_name: "Civil parish/community",
generation_low: 12,
country_name: "England",
type: "CPC"
},
65717: {
parent_area: null,
generation_high: 25,
all_names: {
},
id: 65717,
codes: {
gss: "E14000753",
unit_id: "25130"
},
name: "Horsham",
country: "E",
type_name: "UK Parliament constituency",
generation_low: 13,
country_name: "England",
type: "WMC"
},
97817: {
parent_area: null,
generation_high: 25,
all_names: {
},
id: 97817,
codes: {
ons: "E01031676"
},
name: "Horsham 001D",
country: "E",
type_name: "Lower Layer Super Output Area (Full)",
generation_low: 13,
country_name: "England",
type: "OLF"
},
132195: {
parent_area: null,
generation_high: 25,
all_names: {
},
id: 132195,
codes: {
ons: "E01031676"
},
name: "Horsham 001D",
country: "E",
type_name: "Lower Layer Super Output Area (Generalised)",
generation_low: 13,
country_name: "England",
type: "OLG"
},
900000: {
parent_area: null,
generation_high: 19,
all_names: {
},
id: 900000,
codes: {
},
name: "House of Commons",
country: "",
type_name: "UK Parliament",
generation_low: 1,
country_name: "-",
type: "WMP"
},
900001: {
parent_area: null,
generation_high: 25,
all_names: {
},
id: 900001,
codes: {
},
name: "European Parliament",
country: "",
type_name: "European Parliament",
generation_low: 1,
country_name: "-",
type: "EUP"
}
},
northing: 137296
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment