How to get all tube stations list, fare and station details?


#1

Hi there,

I am new to TFL API and got confused, anyone can help to get the following requirements done using TFL API.

  1. How to get all the stations list of the tube by lines like Bakerloo, Central, Circle etc.
  2. How to get station details with geolocation and other information.
  3. Fare between Source and Destination station.

However, I am able to access all the tube line using the below-mentioned API.

https://api.tfl.gov.uk/line/mode/tube

Please help me.

Thank you.

Regards
Pavan


#2

If you look at the link you posted there are URLs to get the line data, such as …

https://api.tfl.gov.uk/Line/Route?ids=Central&serviceTypes=Regular


#3

Hi Briantist!

Thank you so much of your response, but that API URL returns only Bus related information which is not appropriated for Tube (underground stations). However, in given API URL I have changed serviceTypes=Night then I got tube data but that I am not looking for. What I am looking Stop Name by line name or id. See below example: That I want for in format.

Line Name: Central
From Epping To Ealing Broadway
Station List
Epping
Theydon Bois
Debden
Loughton
Hainault
Grange Hill
Chigwell
Buckhurst Hill
Roding Valley
Woodford
South Woodford
Snaresbrook
Leytonstone
Leyton
Stratford
Mile End
Bethnal Green
Liverpool Street Underground
Bank
St Paul’s
Chancery Lane
Holborn
Tottenham Court Road
Oxford Circus
Bond Street
Marble Arch
Lancaster Gate
Queensway
Notting Hill Gate
Holland Park
Shepherd’s Bush
White City
East Acton
North Acton
West Acton
Ealing Broadway

Please help.

Regards,
Pavan


#4

Oh yes, the returned data in the original call is wrong!

You use this format

https://api.tfl.gov.uk/line/bakerloo/route

To get the line route for a tube line, but only the start and ends

https://api.tfl.gov.uk/line/bakerloo/arrivals

Gives the whole line arrivals. I think they are in order. You can use the arrivals API for each stop point to get individual services

https://api.tfl.gov.uk/line/bakerloo/sequence/outbound

is supposed to give the sequences, but it doesn’t seem to be working right now.

There is also the Trackernet system, which uses odd codes, but basically “B” is “Bakerloo” and “BST” is “Baker Street”.

https://api.tfl.gov.uk/TrackerNet/PredictionDetailed/B/BST

Looking at the code I’m getting back from

https://api.tfl.gov.uk/line/bakerloo/stoppoints

It seems to be returning the data for https://api.tfl.gov.uk/StopPoint/940GZZLUBST rather than the whole line. This, I would suggest, is a bug!


#5

Hi Brian,

Thank you so much for your helpful response. I have tried all these combinations but still not able to get the correct information with a respective line.

If I am supposed to using https://api.tfl.gov.uk/line/bakerloo/arrivals API gives station name but they are not in subsequent stations they are random.

And for each station’s details (like to get geolocation) I have to make a separate call using https://api.tfl.gov.uk/stoppoint/Waterloo Underground Station API which is costly for the mobile devices to use the user’s mobile data. Moreover, it won’t give stations sequence.

Please help, if I am supposed to follow the above-mentioned steps to get the line route details how to get stations in the correct order.

Regards,
Pavan


#6

Hi

This PHP class was built from TfL data I scraped some time ago. I can use it to build a reasonable map, so I think it’s OK.

public function loadDataManual()
{
    $this->arrLineData = [
        'tube/tfl_data/tfl_1-BAK_-390106-y05.xml' => [
            "0.5" => 'Harrow & Wealdstone Station',
            1 => 'Kenton',
            2 => 'South Kenton',
            3 => 'North Wembley',
            4 => 'Wembley Central',
            5 => 'Stonebridge Park',
            6 => 'Harlesden',
            7 => 'Willesden Junction',
            8 => 'Kensal Green',
            9 => 'Queen\'s Park (London)',
            10 => 'Kilburn Park',
            11 => 'Maida Vale',
            12 => 'Warwick Avenue',
            13 => 'Paddington',
            14 => 'Edgware Road',
            15 => 'Marylebone',
            16 => 'Baker Street',
            17 => 'Regent\'s Park',
            18 => 'Oxford Circus',
            19 => 'Piccadilly Circus',
            20 => 'Charing Cross',
            21 => 'Embankment',
            22 => 'Waterloo',
            23 => 'Lambeth North',
            24 => 'Elephant & Castle'
        ],
        'tube/tfl_data/tfl_1-CEN_-1' => [
            "20.1" => 'Woodford',
            "20.2" => 'Roding Valley',
            "20.3" => 'Chigwell',
            "20.4" => 'Grange Hill',
            "20.5" => "Hainault",
            "20.51" => 'Fairlop',
            "20.52" => 'Barkingside',
            "20.53" => 'Newbury Park',
            "20.54" => 'Gants Hill',
            "20.55" => 'Redbridge',
            "20.56" => 'Wanstead',
            22 => 'Leytonstone'
        ],
        'tube/tfl_data/tfl_1-CEN_-2' => [
            43 => 'North Acton',
            "43.1" => 'West Acton',
            "43.2" => 'Ealing Broadway'
        ],
        'tube/tfl_data/tfl_1-CEN_-670104-y05.xml' => [
            "0.5" => 'Epping',
            1 => 'Theydon Bois',
            2 => 'Debden',
            3 => 'Loughton',
            4 => 'Buckhurst Hill',
            9 => 'Woodford',
            10 => 'South Woodford',
            11 => 'Snaresbrook',
            22 => 'Leytonstone',
            23 => 'Leyton',
            24 => 'Stratford',
            25 => 'Mile End',
            26 => 'Bethnal Green',
            27 => 'Liverpool Street',
            28 => 'Bank',
            29 => 'St. Paul\'s',
            30 => 'Chancery Lane',
            31 => 'Holborn',
            32 => 'Tottenham Court Road',
            33 => 'Oxford Circus',
            34 => 'Bond Street',
            35 => 'Marble Arch',
            36 => 'Lancaster Gate',
            37 => 'Queensway',
            38 => 'Notting Hill Gate',
            39 => 'Holland Park',
            40 => 'Shepherd\'s Bush (Central Line)',
            41 => 'White City',
            42 => 'East Acton',
            43 => 'North Acton',
            46 => 'Hanger Lane',
            47 => 'Perivale',
            48 => 'Greenford',
            49 => 'Northolt',
            50 => 'South Ruislip',
            51 => 'Ruislip Gardens',
            52 => 'West Ruislip'
        ],
        'tube/tfl_data/tfl_1-CIR_-310101-y05.xml' => [
            11 => 'Edgware Road',
            12 => 'Paddington',
            13 => 'Bayswater',
            14 => 'Notting Hill Gate',
            15 => 'High Street Kensington',
            16 => 'Earl\'s Court',
            17 => 'Gloucester Road',
            18 => 'South Kensington',
            19 => 'Sloane Square',
            20 => 'Victoria',
            21 => 'St James\'s Park',
            22 => 'Westminster',
            23 => 'Embankment',
            24 => 'Temple',
            25 => 'Blackfriars',
            26 => 'Mansion House',
            28 => 'Cannon Street',
            29 => 'Monument',
            30 => 'Tower Hill',
            1 => 'Aldgate',
            2 => 'Liverpool Street',
            3 => 'Moorgate',
            4 => 'Barbican',
            5 => 'Farringdon',
            6 => Tube::KINGSX,
            7 => 'Euston Square',
            8 => 'Great Portland Street',
            9 => 'Baker Street',
            10 => 'Edgware Road',
            32 => 'Paddington (H&C Line)',
            33 => 'Royal Oak',
            34 => 'Westbourne Park',
            35 => 'Ladbroke Grove',
            36 => 'Latimer Road',
            37 => 'Wood Lane',
            38 => 'Shepherd\'s Bush Market',
            39 => 'Goldhawk Road',
            40 => 'Hammersmith (Ham & City Line)'
        ],
        'tube/tfl_data/tfl_1-DIS_-1450101-y05.xml' => [
            "0.5" => 'Upminster',
            1 => 'Upminster Bridge',
            2 => 'Hornchurch',
            3 => 'Elm Park',
            4 => 'Dagenham East',
            5 => 'Dagenham Heathway',
            6 => 'Becontree',
            7 => 'Upney',
            8 => 'Barking',
            9 => 'East Ham',
            10 => 'Upton Park',
            11 => 'Plaistow',
            12 => 'West Ham',
            13 => 'Bromley-By-Bow',
            14 => 'Bow Road',
            15 => 'Mile End',
            16 => 'Stepney Green',
            17 => 'Whitechapel',
            18 => 'Aldgate East',
            20 => 'Tower Hill',
            21 => 'Monument',
            22 => 'Cannon Street',
            23 => 'Mansion House',
            24 => 'Mansion House',
            25 => 'Blackfriars',
            26 => 'Temple',
            27 => 'Embankment',
            28 => 'Westminster',
            29 => 'St James\'s Park',
            30 => 'Victoria',
            31 => 'Sloane Square',
            32 => 'South Kensington',
            33 => 'Gloucester Road',
            89 => 'High Street Kensington',
            90 => 'Notting Hill Gate',
            91 => 'Bayswater',
            92 => 'Paddington',
            34 => 'Edgware Road',
            35 => 'Paddington',
            36 => 'Bayswater',
            37 => 'Notting Hill Gate',
            38 => 'High Street Kensington',
            39 => 'Earl\'s Court',
            41 => 'West Brompton',
            42 => 'Fulham Broadway',
            43 => 'Parsons Green',
            44 => 'Putney Bridge',
            45 => 'East Putney',
            46 => 'Southfields',
            47 => 'Wimbledon Park',
            48 => 'Wimbledon'
        ],
        'tube/tfl_data/tfl_1-DIS_-2.xml' => [
            39 => 'Earl\'s Court',
            49 => 'West Kensington',
            50 => 'Barons Court',
            51 => 'Hammersmith',
            52 => 'Ravenscourt Park',
            53 => 'Stamford Brook',
            54 => 'Turnham Green',
            55 => 'Gunnersbury',
            56 => 'Kew Gardens',
            57 => 'Richmond (London)'
        ],
        'tube/tfl_data/tfl_1-DIS_-3.xml' => [
            54 => 'Turnham Green',
            58 => 'Chiswick Park',
            59 => 'Acton Town',
            60 => 'Ealing Common',
            61 => 'Ealing Broadway'
        ],
        'tube/tfl_data/tfl_1-DIS_-33333.xml' => [
            54 => "Earl's Court",
            58 => 'Kensington (Olympia)'
        ],
        'tube/tfl_data/tfl_1-HAM_-310101-y05.xml' => [
            "0.5" => 'Barking',
            1 => 'East Ham',
            2 => 'Upton Park',
            3 => 'Plaistow',
            4 => 'West Ham',
            5 => 'Bromley-By-Bow',
            6 => 'Bow Road',
            7 => 'Mile End',
            8 => 'Stepney Green',
            9 => 'Whitechapel',
            10 => 'Aldgate East',
            11 => 'Aldgate',
            12 => 'Liverpool Street',
            13 => 'Moorgate',
            14 => 'Barbican',
            15 => 'Farringdon',
            16 => Tube::KINGSX,
            17 => 'Euston Square',
            18 => 'Great Portland Street',
            19 => 'Baker Street',
            20 => 'Edgware Road',
            21 => 'Paddington (H&C Line)',
            22 => 'Royal Oak',
            23 => 'Westbourne Park',
            24 => 'Ladbroke Grove',
            25 => 'Latimer Road',
            26 => 'Wood Lane',
            27 => 'Shepherd\'s Bush Market',
            28 => 'Goldhawk Road',
            29 => 'Hammersmith (Ham & City Line)'
        ],
        'tube/tfl_data/tfl_1-JUB_-130110-y05.xml' => [
            "0.5" => 'Stratford',
            1 => 'West Ham',
            2 => 'Canning Town',
            3 => 'North Greenwich',
            4 => 'Canary Wharf',
            5 => 'Canada Water',
            6 => 'Bermondsey',
            7 => 'London Bridge Station',
            8 => 'Southwark',
            9 => 'Waterloo',
            10 => 'Westminster',
            11 => 'Green Park',
            12 => 'Bond Street',
            13 => 'Baker Street',
            14 => 'St.John\'s Wood',
            15 => 'Swiss Cottage',
            16 => 'Finchley Road',
            17 => 'West Hampstead',
            18 => 'Kilburn',
            19 => 'Willesden Green',
            20 => 'Dollis Hill',
            21 => 'Neasden',
            22 => 'Wembley Park',
            23 => 'Kingsbury',
            24 => 'Queensbury',
            25 => 'Canons Park',
            26 => 'Stanmore'
        ],
        'tube/tfl_data/tfl_1-MET_-1575301-y05.xml' => [
            "0.5" => 'Aldgate',
            1 => 'Liverpool Street',
            2 => 'Moorgate',
            3 => 'Barbican',
            4 => 'Farringdon',
            5 => Tube::KINGSX,
            6 => 'Euston Square',
            7 => 'Great Portland Street',
            8 => 'Baker Street',
            9 => 'Finchley Road',
            10 => 'Willesden Green',
            11 => 'Wembley Park',
            12 => 'Preston Road',
            13 => 'Northwick Park',
            14 => 'Harrow-on-the-Hill',
            15 => 'West Harrow',
            16 => 'Rayners Lane',
            17 => 'Eastcote',
            18 => 'Ruislip Manor',
            19 => 'Ruislip',
            20 => 'Ickenham',
            21 => 'Hillingdon',
            22 => 'Uxbridge'
        ],
        'tube/tfl_data/tfl_1-MET_-2' => [
            14 => 'Harrow-on-the-Hill',
            23 => 'North Harrow',
            24 => 'Pinner',
            25 => 'Northwood Hills',
            26 => 'Northwood',
            27 => 'Moor Park',
            28 => 'Croxley',
            'Watford'
        ],
        'tube/tfl_data/tfl_1-MET_-3' => [
            30 => 'Moor Park',
            32 => 'Rickmansworth',
            33 => 'Chorleywood',
            34 => 'Chalfont & Latimer',
            36 => 'Chesham'
        ],
        'tube/tfl_data/tfl_1-MET_-4' => [
            34 => 'Chalfont & Latimer',
            37 => 'Amersham'
        ],
        'tube/tfl_data/tfl_1-NTN_-540124-y05.xml' => [
            "0.5" => 'High Barnet',
            1 => 'Totteridge & Whetstone',
            2 => 'Woodside Park',
            3 => 'West Finchley',
            5 => 'Finchley Central',
            6 => 'East Finchley',
            7 => 'Highgate',
            8 => 'Archway',
            9 => 'Tufnell Park',
            10 => 'Kentish Town',
            21 => 'Camden Town',
            22 => 'Mornington Crescent',
            23 => 'Euston',
            24 => 'Warren Street',
            25 => 'Goodge Street',
            26 => 'Tottenham Court Road',
            27 => 'Leicester Square',
            28 => 'Charing Cross',
            29 => 'Embankment',
            30 => 'Waterloo',
            40 => 'Kennington Station',
//                'Nine Elms',
//                'Battersea Power'
        ],
        'tube/tfl_data/tfl_1-NTN_-550101-y05.xml' => [
            5 => 'Finchley Central',
            4 => 'Mill Hill East'
        ],
        'tube/tfl_data/tfl_1-NTN_-4' => [
            12 => 'Edgware',
            13 => 'Burnt Oak',
            14 => 'Colindale',
            15 => 'Hendon Central',
            16 => 'Brent Cross Station',
            17 => 'Golders Green',
            18 => 'Hampstead Station',
            19 => 'Belsize Park',
            20 => 'Chalk Farm',
            21 => 'Camden Town',
            31 => 'Euston',
            32 => Tube::KINGSX,
            33 => 'Angel',
            34 => 'Old Street',
            35 => 'Moorgate',
            36 => 'Bank',
            37 => 'London Bridge Station',
            38 => 'Borough Station',
            39 => 'Elephant & Castle',
            40 => 'Kennington Station',
            41 => 'Oval',
            42 => 'Stockwell',
            43 => 'Clapham North',
            44 => 'Clapham Common',
            45 => 'Clapham South',
            46 => 'Balham',
            47 => 'Tooting Bec Station',
            48 => 'Tooting Broadway',
            49 => 'Colliers Wood',
            50 => 'South Wimbledon',
            51 => 'Morden'
        ],
        'tube/tfl_data/tfl_1-NTN_-9' => [],
        'tube/tfl_data/tfl_1-PIC_-520101-y05.xml' => [
            "0.5" => 'Cockfosters',
            1 => 'Oakwood',
            2 => 'Southgate',
            3 => 'Arnos Grove',
            4 => 'Bounds Green',
            5 => 'Wood Green Station',
            6 => 'Turnpike Lane',
            7 => 'Manor House',
            8 => 'Finsbury Park',
            9 => 'Arsenal',
            10 => 'Holloway Road',
            11 => "Caledonian Road",
            12 => Tube::KINGSX,

            13 => 'Russell Square',
            14 => 'Holborn',
            15 => 'Covent Garden',
            16 => 'Leicester Square',
            17 => 'Piccadilly Circus',
            18 => 'Green Park',
            19 => 'Hyde Park Corner',
            20 => 'Knightsbridge',
            21 => 'South Kensington',
            22 => 'Gloucester Road',
            23 => 'Earl\'s Court',
            24 => 'Barons Court',
            25 => 'Hammersmith',
            28 => 'Turnham Green',
            30 => 'Acton Town',
            31 => 'Ealing Common',
            33 => 'North Ealing',
            34 => 'Park Royal',
            35 => 'Alperton',
            36 => 'Sudbury Town',
            37 => 'Sudbury Hill',
            38 => 'South Harrow',
            39 => 'Rayners Lane',
            40 => 'Eastcote',
            41 => 'Ruislip Manor',
            42 => 'Ruislip',
            43 => 'Ickenham',
            44 => 'Hillingdon',
            45 => 'Uxbridge'
        ],
        'tube/tfl_data/tfl_1-PIC_-2' => [
            30 => 'Acton Town',
            46 => 'South Ealing',
            47 => 'Northfields',
            48 => 'Boston Manor',
            49 => 'Osterley',
            50 => 'Hounslow East',
            51 => 'Hounslow Central',
            52 => 'Hounslow West',
            53 => 'Hatton Cross',
            54 => 'Heathrow T4',
            55 => 'Heathrow T123',
            56 => 'Heathrow T5'

        ],
        'tube/tfl_data/tfl_1-VIC_-360101-y05.xml' => [
            "0.5" => 'Walthamstow Central',
            1 => 'Blackhorse Road',
            2 => 'Tottenham Hale',
            3 => 'Seven Sisters',
            4 => 'Finsbury Park',
            5 => 'Highbury & Islington',
            6 => Tube::KINGSX,
            7 => 'Euston',
            8 => 'Warren Street',
            9 => 'Oxford Circus',
            10 => 'Green Park',
            11 => 'Victoria',
            12 => 'Pimlico',
            13 => 'Vauxhall',
            14 => 'Stockwell',
            15 => 'Brixton'
        ],
        'tube/tfl_data/tfl_1-WAC_-60102-y05.xml' => [
            "0.5" => 'Bank',
            1 => 'Waterloo'
        ],

        'tube/tfl_data/tfl_25-DLR_-60-y05.xml' => [
            "0.5" => 'Lewisham',
            1 => 'Elverson Road',
            2 => 'Deptford Bridge',
            3 => 'Greenwich Station',
            4 => 'Cutty Sark',
            5 => 'Island Gardens',
            6 => 'Mudchute',
            7 => 'Crossharbour',
            8 => 'South Quay',
            9 => 'Heron Quays',
            10 => 'Canary Wharf', //DLR Station
            11 => 'West India Quay',
            12 => 'Poplar',
            13 => 'Blackwall',
            14 => 'East India',
            15 => 'Canning Town',
            16 => 'West Silvertown', //DLR Station
            17 => 'Pontoon Dock',
            18 => 'London City Airport',
            19 => 'King George V',
            20 => 'Woolwich Arsenal' // DLR
        ],
        'tube/tfl_data/tfl_25-DLR_-2' => [
            21 => 'Beckton',
            22 => 'Gallions Reach',
            23 => 'Cyprus',
            24 => 'Beckton Park',
            25 => 'Royal Albert',
            26 => 'Prince Regent',
            27 => 'Custom House',
            28 => 'Royal Victoria',
            15 => 'Canning Town',
            29 => 'Star Lane',
            30 => 'West Ham',
            31 => 'Abbey Road', // DLR Station
            32 => 'Stratford High Street',
            33 => 'Stratford',
            39 => 'Stratford International' //DLR
        ],
        'tube/tfl_data/tfl_25-DLR_-3' => [
            33 => 'Stratford',
            34 => 'Pudding Mill Lane',
            35 => 'Bow Church', // DLR
            36 => 'Devons Road',
            37 => 'Langdon Park',
            38 => 'All Saints',
            12 => 'Poplar',
            41 => 'Westferry',
            42 => 'Limehouse',
            43 => 'Shadwell', //DLR
            44 => 'Tower Gateway',
            45 => 'Bank'
        ],

        'tube/tfl_data/tfl_25-DLR_-4' => [
            33 => 'Stratford',
            34 => 'Pudding Mill Lane',
            35 => 'Bow Church', // DLR
            36 => 'Devons Road',
            37 => 'Langdon Park',
            38 => 'All Saints',
            12 => 'Poplar',
            41 => 'Westferry',
            42 => 'Limehouse',
            43 => 'Shadwell', //DLR
            44 => 'Tower Gateway',
            45 => 'Bank'
        ]


    ];
}

public function loadDataManualMore()
{
    $this->arrStationData[] = [
        "fpNorth" => 51.5098,
        "fpEast" => -0.2242,
        "strName" => "Wood Lane"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.502778,
        "fpEast" => 0.0225,
        "strName" => "West Silvertown DLR"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.502222,
        "fpEast" => 0.031944,
        "strName" => "Pontoon Dock"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.503611,
        "fpEast" => 0.048889,
        "strName" => "London City Airport"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.501972,
        "fpEast" => 0.062778,
        "strName" => "King George V"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.490,
        "fpEast" => 0.069,
        "strName" => "Woolwich Arsenal DLR"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.5207,
        "fpEast" => 0.0042,
        "strName" => "Star Lane"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.532,
        "fpEast" => 0.004,
        "strName" => "Abbey Road DLR"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.5379,
        "fpEast" => -0.0006,
        "strName" => "Stratford High Street"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.5275,
        "fpEast" => -0.0208,
        "strName" => "Bow Church DLR"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.515173,
        "fpEast" => -0.014119,
        "strName" => "Langdon Park"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.5448,
        "fpEast" => -0.0086,
        "strName" => "Stratford International DLR"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.511711,
        "fpEast" => -0.056214,
        "strName" => "Shadwell DLR"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.4646,
        "fpEast" => -0.1705,
        "strName" => "Clapham Junction"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.5552,
        "fpEast" => -0.1514,
        "strName" => "Gospel Oak"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.5234,
        "fpEast" => -0.0768,
        "strName" => "Shoreditch High Street"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.4779823,
        "fpEast"  => -0.1372073,
        "strName" => "Battersea Power"
    ];
    $this->arrStationData[] = [
        "fpNorth" => 51.4797643,
        "fpEast"  => -0.1284424,
        "strName" => "Nine Elms"
    ];
   ("kilburn high road");
   ("south hampstead");
   ("watford junction");
   ("hoxton");
   ("haggerston");
   ("dalston junction");
   ("canonbury");
   ("west croydon");
   ("norwood junction");
   ("anerley");
   ("sydenham", "https://en.wikipedia.org/wiki/Sydenham_(London)_railway_station");
   ("crystal palace");
   ("forest hill");
   ("honor oak park");
   ("brockley");
   ("woodgrange park");
   ("wanstead park");
   ("leytonstone high road");
   ("leyton midland road");
   ("walthamstow queens road");
   ("south tottenham");
   ("harringay green lanes");
   ("crouch hill");
   ("upper holloway");
   ("imperial wharf");
   ("acton central");
   ("south acton");
   ("cassiobridge", "https://en.wikipedia.org/wiki/Cassiobridge_tube_station");
   ("watford vicarage road", "https://en.wikipedia.org/wiki/Watford_Vicarage_Road_tube_station");
   ("watford high street");
   ("bushey");
   ("carpenders park");
   ("hatch end");
   ("headstone lane");
   ("chadwell heath");
   ("shenfield");
   ("brentwood");
   ("harold wood");
   ("gidea park");
   ("goodmayes");
   ("seven kings");
   ("ilford");
   ("manor park");
   ("forest gate");
   ("maryland");
    if (true) {
        $this->arrLineData["-XR1_-1"] = [
            "Shenfield",
            "Brentwood",
            "Harold Wood",
            "Gidea Park",
            "Romford",
            "Chadwell Heath",
            "Goodmayes",
            "Seven Kings",
            "Ilford",
            "Manor Park",
            "Forest Gate",
            "Maryland",
            "Stratford",
            "Liverpool Street"
        ];
        $this->arrLineData["-XR1_-CENTER"] = [
            "Liverpool Street",
            "Farringdon",
            "Tottenham Court Road",
            "Bond Street",
            "Paddington"
        ];
        $this->arrLineData["-XR1_-3"] = [
            "Abbey Wood",
            "Woolwich Arsenal",
            "Custom House",
            "Canary Wharf"
        ];
        $this->arrLineData["-XR1_-2"] = [
            "Paddington",
            "Acton Main Line",
            "Ealing Broadway",
            "West Ealing",
            "Hanwell",
            "Southall",
            "Hayes & Harlington",
            "heathrow Terminals 1 2 3",
            "Heathrow Terminal 5"
        ];
    }
   ("acton main line");
   ("west ealing");
   ("hanwell");
   ("southall");
   ("hayes & Harlington");
   ("abbey wood");
   ("woolwich arsenal");
   ("Caledonian Road & Barnsbury");
   ("camden road");
   ("kentish town west");
   ("hampstead heath");
   ("Finchley Road & Frognal");
   ("brondesbury");
   ("brondesbury park");
   ("kensal rise");
    $this->arrLineData["-OVE_-"] = [
        "West Croydon",
        "Norwood Junction",
        "Anerley",
        "Sydenham",
        "Crystal Palace",
        "Sydenham",
        "Forest Hill",
        "Honor Oak Park",
        "Brockley",
        "New Cross Gate",
        "Surrey Quays",
        "New Cross",
        "Surrey Quays",
        "Canada Water",
        "Rotherhithe",
        "Wapping",
        "Shadwell",
        "Whitechapel",
        "Shoreditch High Street",
        "Hoxton",
        "Haggerston",
        "Dalston Junction",
        "Canonbury",
        "Highbury & Islington",
        "Caledonian Road & Barnsbury",
        "Camden Road",
        "Kentish Town West",
        "Gospel Oak",
        "Hampstead Heath",
        "Finchley Road & Frognal",
        "West Hampstead",
        "Brondesbury",
        "Brondesbury Park",
        "Kensal Rise",
        "Willesden Junction",
        "Acton Central",
        "South Acton",
        "Gunnersbury",
        "Kew Gardens",
        "Richmond"
    ];
    $this->arrLineData["-OVE_-EXTRA-"] = [
        "Stratford",
        "Hackney Wick", "Homerton", "Hackney Central", "Dalston Kingsland", "Canonbury",

    ];
    $this->arrLineData["-OVE_-222-"] = [
        "Clapham Junction",
        "Imperial Wharf",
        "West Brompton",
        "Kensington (Olympia)",
        "Shepherd's Bush (Central Line)",
        "Willesden Junction"
    ];
   ("Wandsworth Road");
   ("clapham high street");
   ("denmark hill");
   ("peckham rye");
   ("queens road peckham");
    $this->arrLineData["-OVE_-3-"] = [
        "Clapham Junction",
        "Wandsworth Road",
        "Clapham High Street",
        "Denmark Hill",
        "Peckham Rye",
        "Queens Road Peckham",
        "Surrey Quays"
    ];
   ("Barking Riverside", "https://en.wikipedia.org/wiki/Barking_Riverside");
    $this->arrLineData["-OVE_-GOBLIN-"] = [
        "Barking Riverside",
        "Barking",
        "Woodgrange Park",
        "Wanstead Park",
        "Leytonstone High Road",
        "Leyton Midland Road",
        "Walthamstow Queen's Road",
        "Blackhorse Road",
        "South Tottenham",
        "Harringay Green Lanes",
        "Crouch Hill",
        "Upper Holloway",
        "Gospel Oak"
    ];
    $this->arrLineData["-OVE_-DC-"] = [
        'Watford Junction',
        'Bushey',
        'Carpenders Park',
        'Hatch End',
        'Headstone Lane',
        'Harrow & Wealdstone Station',
        'Kenton',
        'South Kenton',
        'North Wembley',
        'Wembley Central',
        'Stonebridge Park',
        'Harlesden',
        'Willesden Junction',
        'Kensal Green',
        'Queen\'s Park (London)',
        'Kilburn High Road',
        'South Hampstead',
        'Euston'
    ];
   ("romford");
   ("emerson park");
    $this->arrLineData["-OVE_-UPMINTER-"] = [
        "Romford",
        "Emerson Park",
        "Upminster"
    ];
   ("hackney downs");
   ("clapton");
   ("st james street");
   ("wood street");
   ("highams park");
   ("chingford");
    $this->arrLineData["-OVE_-CHING-"] = [
        "Liverpool Street",
        "Bethnal Green",
        "Cambridge Heath",
        "Hackney Downs",
        "Clapton",
        "St James Street",
        "Walthamstow Central",
        "Wood Street",
        "Highams Park",
        "Chingford"
    ];
   ("cambridge heath");
   ("rectory road");
   ("stoke Newington");
   ("bruce grove");
   ("white hart lane");
   ("silver street");
   ("edmonton green");
   ("southbury");
   ("turkey street");
   ("theobalds grove");
   ("cheshunt");
    $this->arrLineData["-OVE_-CHESHUNT-"] = [
        "Liverpool Street",
        "Bethnal Green",
        "Cambridge Heath",
        "Hackney Downs",
        "Rectory Road",
        "Stoke Newington",
        "Seven Sisters",
        "Bruce Grove",
        "White Hart Lane",
        "Silver Street",
        "Edmonton Green",
        "Southbury",
        "Turkey Street",
        "Theobalds Grove",
        "Cheshunt"
    ];
   ("bush hill park");
   ("enfield town");
    $this->arrLineData["-OVE_-ENFIELDT-"] = [
        "Edmonton Green",
        "Bush Hill Park",
        "Enfield Town"
    ];
}
}

#7

Thanks Brain,

This will work I strongly believed on it.

Once again, Thank you very much for your help.

Regards,
Pavan


#8

No problem. Always happy to try to help…