Skip to content

Instantly share code, notes, and snippets.

@RCrowt
Created February 6, 2018 08:20
Show Gist options
  • Save RCrowt/21869022e668d9fafe205aefdfb3260a to your computer and use it in GitHub Desktop.
Save RCrowt/21869022e668d9fafe205aefdfb3260a to your computer and use it in GitHub Desktop.
A list of weird and edge-case UK addresses for testing
<?php
/**
* A list of weird and edge-case UK addresses for testing based on https://www.mjt.me.uk/posts/falsehoods-programmers-believe-about-addresses/
*/
return [
// Building with name.
'Royal Opera House, Covent Garden, London, WC2E 9DD',
// Numeric range building number.
'4-5 Bonhill Street, London, EC2A 4BX',
// Number Zero
'0 Egmont Road, Middlesbrough, TS4 2HT',
// Name and number range.
'Court, 4-6 Princes Road, Hull, HU5 2RD',
// Building name and numbers.
'Flat 1.4, Ziggurat Building, 60-66 Saffron Hill, London, EC1N 8QX',
// Building number used twice on 1 road.
'50 Ammanford Road, Tycroes, Ammanford, SA18 3QJ',
'50 Ammanford Road, Llandybie, Ammanford, SA18 3YF',
// First line not always building number.
'Flat 18, Da Vinci House, 44 Saffron Hill, London, EC1N 8FH',
// Building/business names can start with numbers.
'3 Store, 311-318 High Holborn, London, WC1V 7BN',
// Multiple streets/roads with same name in same town/city.
'High Street, London, W3 6LJ',
'High Street, London, W5 5DB',
// Addresses can have 'dependent streets'.
'6 Elm Avenue, Runcorn Road, Birmingham, B12 8QX',
// No street/road.
'Oakland, Fairseat, Sevenoaks, TN15 7LT',
// Duplicate streets/cities in different areas.
'10 High Street, Newport, PO30 1SS',
'10 High Street, Newport, NP20 1FQ',
// Multiple postcode in a single building.
'London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 3ES',
'London Borough of Enfield, Civic Centre, Silver Street, ENFIELD, EN1 9SA',
// Long address by lines.
'Femonco Life Insurances, Unit 3, Warwick House, 18 Forge Lane, Minworth Industrial Park, Minworth, SUTTON COLDFIELD, B76 1AH',
// Comma in address name
'Society of College, National & University Libraries, 102 Euston Street, London, NW1 2HA',
// Special Characters in names.
'St. Judes & St. Pauls C of E (Va) Primary School, 10 Kingsbury Road, London, N1 4AZ',
'1 Acre View, Bo’ness, EH51 9RQ',
'1 Highview Terrace, Westward Ho!, Bideford, EX39 1AQ',
'Kirkland, Lane, Mathias & Perry, North Muskham Prebend Church Street, Southwell, NG25 0HQ'
];
@antonykrstic
Copy link

came across this one the other day

// Forward slash in address
'0/3 32 Dowanhill Street, GLASGOW, G11 5HE'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment