Returns a list of matching postcodes and respective available data.

bulk_postcode_lookup(postcodes)

Arguments

postcodes

Accepts a list of postcodes. Accepts up to 100 postcodes. For only one postcode use postcode_lookup.

Value

A list of length one.

See also

postcode_lookup for documentation.

Examples

# \donttest{ pc_list <- list( postcodes = c("PR3 0SG", "M45 6GN", "EX165BL")) # spaces are ignored bulk_postcode_lookup(pc_list)
#> [[1]] #> [[1]]$query #> [1] "PR3 0SG" #> #> [[1]]$result #> [[1]]$result$postcode #> [1] "PR3 0SG" #> #> [[1]]$result$quality #> [1] 1 #> #> [[1]]$result$eastings #> [1] 351012 #> #> [[1]]$result$northings #> [1] 440302 #> #> [[1]]$result$country #> [1] "England" #> #> [[1]]$result$nhs_ha #> [1] "North West" #> #> [[1]]$result$longitude #> [1] -2.746251 #> #> [[1]]$result$latitude #> [1] 53.85663 #> #> [[1]]$result$european_electoral_region #> [1] "North West" #> #> [[1]]$result$primary_care_trust #> [1] "North Lancashire Teaching" #> #> [[1]]$result$region #> [1] "North West" #> #> [[1]]$result$lsoa #> [1] "Wyre 006A" #> #> [[1]]$result$msoa #> [1] "Wyre 006" #> #> [[1]]$result$incode #> [1] "0SG" #> #> [[1]]$result$outcode #> [1] "PR3" #> #> [[1]]$result$parliamentary_constituency #> [1] "Wyre and Preston North" #> #> [[1]]$result$admin_district #> [1] "Wyre" #> #> [[1]]$result$parish #> [1] "Myerscough and Bilsborrow" #> #> [[1]]$result$admin_county #> [1] "Lancashire" #> #> [[1]]$result$admin_ward #> [1] "Brock with Catterall" #> #> [[1]]$result$ced #> [1] "Wyre Rural East" #> #> [[1]]$result$ccg #> [1] "NHS Fylde and Wyre" #> #> [[1]]$result$nuts #> [1] "Lancaster and Wyre" #> #> [[1]]$result$codes #> [[1]]$result$codes$admin_district #> [1] "E07000128" #> #> [[1]]$result$codes$admin_county #> [1] "E10000017" #> #> [[1]]$result$codes$admin_ward #> [1] "E05009934" #> #> [[1]]$result$codes$parish #> [1] "E04005340" #> #> [[1]]$result$codes$parliamentary_constituency #> [1] "E14001057" #> #> [[1]]$result$codes$ccg #> [1] "E38000226" #> #> [[1]]$result$codes$ccg_id #> [1] "02M" #> #> [[1]]$result$codes$ced #> [1] "E58000832" #> #> [[1]]$result$codes$nuts #> [1] "TLD44" #> #> [[1]]$result$codes$lsoa #> [1] "E01025547" #> #> [[1]]$result$codes$msoa #> [1] "E02005324" #> #> [[1]]$result$codes$lau2 #> [1] "E07000128" #> #> #> #> #> [[2]] #> [[2]]$query #> [1] "M45 6GN" #> #> [[2]]$result #> [[2]]$result$postcode #> [1] "M45 6GN" #> #> [[2]]$result$quality #> [1] 1 #> #> [[2]]$result$eastings #> [1] 380402 #> #> [[2]]$result$northings #> [1] 406021 #> #> [[2]]$result$country #> [1] "England" #> #> [[2]]$result$nhs_ha #> [1] "North West" #> #> [[2]]$result$longitude #> [1] -2.297262 #> #> [[2]]$result$latitude #> [1] 53.55047 #> #> [[2]]$result$european_electoral_region #> [1] "North West" #> #> [[2]]$result$primary_care_trust #> [1] "Bury" #> #> [[2]]$result$region #> [1] "North West" #> #> [[2]]$result$lsoa #> [1] "Bury 019C" #> #> [[2]]$result$msoa #> [1] "Bury 019" #> #> [[2]]$result$incode #> [1] "6GN" #> #> [[2]]$result$outcode #> [1] "M45" #> #> [[2]]$result$parliamentary_constituency #> [1] "Bury South" #> #> [[2]]$result$admin_district #> [1] "Bury" #> #> [[2]]$result$parish #> [1] "Bury, unparished area" #> #> [[2]]$result$admin_county #> NULL #> #> [[2]]$result$admin_ward #> [1] "Pilkington Park" #> #> [[2]]$result$ced #> NULL #> #> [[2]]$result$ccg #> [1] "NHS Bury" #> #> [[2]]$result$nuts #> [1] "Greater Manchester North East" #> #> [[2]]$result$codes #> [[2]]$result$codes$admin_district #> [1] "E08000002" #> #> [[2]]$result$codes$admin_county #> [1] "E99999999" #> #> [[2]]$result$codes$admin_ward #> [1] "E05000677" #> #> [[2]]$result$codes$parish #> [1] "E43000156" #> #> [[2]]$result$codes$parliamentary_constituency #> [1] "E14000612" #> #> [[2]]$result$codes$ccg #> [1] "E38000024" #> #> [[2]]$result$codes$ccg_id #> [1] "00V" #> #> [[2]]$result$codes$ced #> [1] "E99999999" #> #> [[2]]$result$codes$nuts #> [1] "TLD37" #> #> [[2]]$result$codes$lsoa #> [1] "E01004989" #> #> [[2]]$result$codes$msoa #> [1] "E02001037" #> #> [[2]]$result$codes$lau2 #> [1] "E08000002" #> #> #> #> #> [[3]] #> [[3]]$query #> [1] "EX165BL" #> #> [[3]]$result #> [[3]]$result$postcode #> [1] "EX16 5BL" #> #> [[3]]$result$quality #> [1] 1 #> #> [[3]]$result$eastings #> [1] 294478 #> #> [[3]]$result$northings #> [1] 112252 #> #> [[3]]$result$country #> [1] "England" #> #> [[3]]$result$nhs_ha #> [1] "South West" #> #> [[3]]$result$longitude #> [1] -3.50197 #> #> [[3]]$result$latitude #> [1] 50.90006 #> #> [[3]]$result$european_electoral_region #> [1] "South West" #> #> [[3]]$result$primary_care_trust #> [1] "Devon" #> #> [[3]]$result$region #> [1] "South West" #> #> [[3]]$result$lsoa #> [1] "Mid Devon 005C" #> #> [[3]]$result$msoa #> [1] "Mid Devon 005" #> #> [[3]]$result$incode #> [1] "5BL" #> #> [[3]]$result$outcode #> [1] "EX16" #> #> [[3]]$result$parliamentary_constituency #> [1] "Tiverton and Honiton" #> #> [[3]]$result$admin_district #> [1] "Mid Devon" #> #> [[3]]$result$parish #> [1] "Tiverton" #> #> [[3]]$result$admin_county #> [1] "Devon" #> #> [[3]]$result$admin_ward #> [1] "Westexe" #> #> [[3]]$result$ced #> [1] "Tiverton West" #> #> [[3]]$result$ccg #> [1] "NHS Devon" #> #> [[3]]$result$nuts #> [1] "Devon CC" #> #> [[3]]$result$codes #> [[3]]$result$codes$admin_district #> [1] "E07000042" #> #> [[3]]$result$codes$admin_county #> [1] "E10000008" #> #> [[3]]$result$codes$admin_ward #> [1] "E05003531" #> #> [[3]]$result$codes$parish #> [1] "E04003055" #> #> [[3]]$result$codes$parliamentary_constituency #> [1] "E14000996" #> #> [[3]]$result$codes$ccg #> [1] "E38000230" #> #> [[3]]$result$codes$ccg_id #> [1] "15N" #> #> [[3]]$result$codes$ced #> [1] "E58000304" #> #> [[3]]$result$codes$nuts #> [1] "TLK43" #> #> [[3]]$result$codes$lsoa #> [1] "E01020079" #> #> [[3]]$result$codes$msoa #> [1] "E02004168" #> #> [[3]]$result$codes$lau2 #> [1] "E07000042" #> #> #> #>
# The function needs a list of length one. This won't work: bulk_postcode_lookup(list("PR3 0SG", "M45 6GN", "EX165BL"))
#> Warning: Bad Request (HTTP 400).
# }