Return specific fields only
ksatirli opened this issue · comments
Hello there,
first of all: thanks for making this kind of data accessible. I have been playing around with the API and was wondering if you could help me with the following:
Right now when I make a call to /stopareacode/$stopareacode I get a lot of properties returned that I have no need for. Is there a way to retrieve only specific fields, for example by adding a "fields" parameter to the request and providing a comma-separated list that outlines the fields I want.
I am thinking along the lines of: ?fields=DestinationName50,TransportType,LinePublicNumber and then get the following output:
{
"stopareacode": {
"00000000": {
"Passes": {
"CXX_000000_A000_00_0": {
"DestinationName50": "Destination Name",
"TransportType": "Transport Type",
"LinePublicNumber": "123"
}
}
}
}
}