type Route struct {
ID ID `json:"id"` // Identifier of the route, eg: "route:RAT:M6"
Name string `json:"name"` // Name of the route
Frequence bool `json:"is_frequence"` // If the route has frequency or not. Can only be “False”, but may be “True” in the future
Line Line `json:"line"` // Line is the line it is connected to
Direction Container `json:"direction"` // Direction is the direction of the route (Place or POI)
PhysicalModes []PhysicalMode `json:"physical_modes"` // PhysicalModes of the line
GeoJSON GeoJSON `json:"geo_json"`
}
According to the following JSON struct:
type jsonRoute struct {
ID *ID `json:"id"`
Name *string `json:"name"`
Line *Line `json:"line"`
Direction *Container `json:"direction"`
// Value to process
Frequence string `json:"is_frequence"`
}
PhysicalModes and GeoJSON of Route struct seems to be ignored when unmarshalling process ?!
In struct Route ;
According to the following JSON struct:
PhysicalModes
andGeoJSON
of Route struct seems to be ignored when unmarshalling process ?!