@@ -31,6 +31,7 @@ type StopRequest struct {
3131 ServedByOnestopIds string `json:"served_by_onestop_ids"`
3232 ServedByRouteType * int `json:"served_by_route_type,string"`
3333 ServedByRouteTypes string `json:"served_by_route_types"`
34+ LocationType * int `json:"location_type,string"`
3435 IncludeAlerts bool `json:"include_alerts,string"`
3536 IncludeRoutes bool `json:"include_routes,string"`
3637 LicenseFilter
@@ -86,6 +87,13 @@ func (r StopRequest) RequestInfo() RequestInfo {
8687 Schema : newSRVal ("string" , "" , nil ),
8788 Extensions : newExt ("" , "served_by_route_types=1,2" , "served_by_route_types=1,2" ),
8889 }},
90+ & pref {Value : & param {
91+ Name : "location_type" ,
92+ In : "query" ,
93+ Description : `Filter by location_type: 0=stop/platform, 1=station, 2=entrance/exit, 3=generic node, 4=boarding area` ,
94+ Schema : newSRVal ("integer" , "" , nil ),
95+ Extensions : newExt ("" , "location_type=1" , "location_type=1" ),
96+ }},
8997 newPRef ("includeAlertsParam" ),
9098 newPRef ("includeRoutesParam" ),
9199 newPRef ("idParam" ),
@@ -167,6 +175,9 @@ func (r StopRequest) Query(ctx context.Context) (string, map[string]any) {
167175 if r .ServedByRouteTypes != "" {
168176 where ["served_by_route_types" ] = commaSplit (r .ServedByRouteTypes )
169177 }
178+ if r .LocationType != nil {
179+ where ["location_type" ] = * r .LocationType
180+ }
170181 where ["license" ] = checkLicenseFilter (r .LicenseFilter )
171182 return stopQuery , hw {
172183 "limit" : r .CheckLimit (),
0 commit comments