Ejemplo n.º 1
0
func createFareAttribute(r map[string]string) *gtfs.FareAttribute {
	a := new(gtfs.FareAttribute)

	a.Id = getString("fare_id", r, true)
	a.Price = getString("price", r, false)
	a.Currency_type = getString("currency_type", r, true)
	a.Payment_method = getInt("payment_method", r, false)
	a.Transfers = getInt("transfers", r, true)
	a.Transfer_duration = getInt("transfer_duration", r, false)

	return a
}