Query
路线便利设施停靠点
使用 getRouteStationsWithAmenities 查询在路线上的某一点搜索带有便利设施的充电站。当您想在餐厅、商店或其他便利设施附近规划充电停靠点时,此操作非常有用。
查询
沿路线搜索充电站需要 route_id、route_details_id、time_window 和 amenity_types。两个 ID 都可通过 getRoute 查询获取。使用 filter 参数根据特定条件缩小结果范围,并使用 first 和 after 参数对结果进行分页。
参数
route_id· ID· requiredroute_details_id· ID· requiredtime_window· RouteTimeWindow· requiredamenity_types· AmenityType· requiredAmenityType enum values
parkrestaurantmuseumcoffeehotelshoppingbathroomsupermarketplaygroundpharmacybakeryconvenience_storefilter· RouteStationsWithAmenityFilterfirst· Intafter· String字段
total_count· Intpage_info· PageInfonodes· RouteStationWithAmenities操作可能会失败。请考虑以下错误场景以正确处理。有关错误的更多信息 here.
maximum_distance_from_path_above_allowed- Provided maximum distance from path is not valid. The value must be less than or equal to 10 000 meters or an equivalent unit.
maximum_distance_from_station_above_allowed- Provided maximum distance from station is not valid. The value must be less than or equal to 1000 meters or an equivalent unit.
pagination_invalid_after- The cursor provided in $LOCATION is invalid.
pagination_invalid_first- The page size indicated in $LOCATION must value between 1 and $SIZE.
route_amenities_expired- This route has expired for this type of search. To ensure data accuracy, routes older than 24 hours cannot be used. Please create a new route and try again.
route_amenities_invalid_status- Cannot search stations and amenities in a route with status [object Object].
route_not_found- No route was found with the provided ID.
time_window_exceeds_route_duration- The specified time window center takes place after the estimated arrival time. All center times must take place between the estimated departure and arrival time.
time_window_margin_above_allowed- Provided time window margin is not valid. The value must be less than or equal to 45 minutes or an equivalent unit.
zero_or_negative_value_not_allowed- Zero or negative value for $LOCATION is not allowed.
此内容是否有帮助?