LACMTA / metro-api-v2

Docs: https://lacmta.github.io/metro-api-v2/ Dev: https://dev-metro-api-v2.ofhq3vd1r7une.us-west-2.cs.amazonlightsail.com/docs
https://lacmta.github.io/metro-api-v2/
0 stars 3 forks source link

Create Custom Schedule Pages Endpoint #153

Closed matikin9 closed 1 year ago

matikin9 commented 1 year ago

THIS ISSUE IS STILL A DRAFT

This endpoint will power the redesigned Schedule page as defined in this Figma: https://www.figma.com/file/hGHBpaYBoZB6ZSJdEat0tj/Schedules?node-id=89%3A144&t=iALhZCxiEG38Thrg-0

It needs to pull in and store data that is currently in Metro.net's WordPress site, which can be accessed via the WP REST API.

It needs to provide:

Structure:

[
    {
        agency_id: 'LACMTA_rail',
        routes: [
            {
                line_label: 'A Line',
                route_id: '801',
                color: '#001122',
                icon_url: 'https://....',
                description: {
                    terminus_1: 'Downtown Los Angeles',
                    terminus_2: 'Long Beach',
                    via: ''
                }
            },{
                ...
            }
        ]
    },
    {
        agency_id: 'LACMTA',
        routes: [
            ...
        ]
    }
]
albertkun commented 1 year ago

closed by #162