Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 1.07 KB
package aviasales
type Route struct {
AirlineIata string `json:"airline_iata" bson:"airline_iata"`
AirlineIcao string `json:"airline_icao" bson:"airline_icao"`
DepartureAirportIata string `json:"departure_airport_iata" bson:"departure_airport_iata"`
DepartureAirportIcao string `json:"departure_airport_icao" bson:"departure_airport_icao"`
ArrivalAirportIata string `json:"arrival_airport_iata" bson:"arrival_airport_iata"`
ArrivalAirportIcao string `json:"arrival_airport_icao" bson:"arrival_airport_icao"`
Codeshare bool `json:"codeshare" bson:"codeshare"`
Transfers int `json:"transfers" bson:"transfers"`
Planes []string `json:"planes" bson:"planes"`
}
// DataRoutes a list of routes from the database.
//
// Documentation:
// https://support.travelpayouts.com/hc/ru/articles/203956163#15
//
// Example URI:
// http://api.travelpayouts.com/data/routes.json
func (a *AviasalesApi) DataRoutes() (routes []Route, err error) {
err = a.getJson("data/routes.json", map[string]string{}, &routes)
return
}
You can’t perform that action at this time.