Skip to content

Maybe a error, on the FareAttributes Trasformer #16

@p4535992

Description

@p4535992

Maybe I'm wrong, but this part of the code is correct?

if (data["currency_time"]) {
    this.push({ subject: subject, predicate: "http://schema.org/priceCurrency", object : '"' + data["currency_type"] + '"' });
  }

I'm not seeing the property "currency_time" on the documentation of gtfs.
If it's correct perhaps we should add a condition, like this:

if (data["currency_time"] && data["currency_type"]) {
    this.push({ subject: subject, predicate: "http://schema.org/priceCurrency", object : '"' + data["currency_type"] + '"' });
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions