获取驾驶方向、自动完成/提前输入功能,并实时获取所有类型的Waze警报,包括事故、危险、交通拥堵、警察等
通过左下角和右上角的经纬度对,从Waze获取实时警报数据和堵车信息
支持所有Waze警报类型,包括:事故、路障、危险、交通堵塞、警察等
报警和堵塞 - 端点功能
| 对象 | 描述 |
|---|---|
bottom_left |
[必需] Bottom-left corner of the geographic rectangular area for which to get alerts and traffic jams. Specified as latitude, longitude pair. |
top_right |
[必需] Top-right corner of the geographic rectangular area for which to get alerts and traffic jams. Specified as latitude, longitude pair. |
max_alerts |
可选 Maximum number of alerts to fetch (to avoid fetching alerts set it to `0`). Default: 20. |
max_jams |
可选 Maximum number of traffic jams to fetch (to avoid fetching traffic jams, set it to `0`). Default: 20. |
alert_types |
可选 Only return alerts of specific types. Multiple alert types can be specified as a comma (,) separated list. Examples: `ACCIDENT` or `POLICE,HAZARD`. |
{
"status": "OK",
"request_id": "0d53c5e7-f6ec-4551-afa1-97614e84b49c",
"data": {
"alerts": [
{
"alert_id": "18882060-8cfd-4001-990c-f6f4eaaeec77",
"type": "ROAD_CLOSED",
"subtype": "ROAD_CLOSED_EVENT",
"reported_by": "dhschneider",
"description": "Construction",
"image": null,
"publish_datetime_utc": "2022-06-19T23:00:28.000Z",
"country": "US",
"city": "Brooklyn, NY",
"street": "Main St",
"latitude": 40.703241,
"longitude": -73.99067,
"num_thumbs_up": 4,
"alert_reliability": 10,
"alert_confidence": 2,
"near_by": null,
"comments": [],
"num_comments": 0
},
{
"alert_id": "c10c6959-5143-4e39-823d-867b2fb65f97",
"type": "POLICE",
"subtype": "POLICE_HIDING",
"reported_by": null,
"description": null,
"image": null,
"publish_datetime_utc": "2022-07-01T12:36:37.000Z",
"country": "US",
"city": "Manhattan, NY",
"street": "W Thames St",
"latitude": 40.708374,
"longitude": -74.0172,
"num_thumbs_up": 0,
"alert_reliability": 5,
"alert_confidence": 0,
"near_by": null,
"comments": [],
"num_comments": 0
},
{
"alert_id": "6d23cf09-ec98-4613-93ff-b92e31bad3a4",
"type": "HAZARD",
"subtype": "HAZARD_ON_ROAD_POT_HOLE",
"reported_by": null,
"description": null,
"image": null,
"publish_datetime_utc": "2022-07-01T11:20:14.000Z",
"country": "US",
"city": "Manhattan, NY",
"street": "7th Ave S",
"latitude": 40.735463,
"longitude": -74.001765,
"num_thumbs_up": 12,
"alert_reliability": 10,
"alert_confidence": 5,
"near_by": null,
"comments": [],
"num_comments": 0
},
{
"alert_id": "f935ceef-6150-4953-997b-a6eca7d477c6",
"type": "HAZARD",
"subtype": "HAZARD_ON_ROAD_CONSTRUCTION",
"reported_by": "fe2af97a28594b22918a06b3590121d6",
"description": null,
"image": null,
"publish_datetime_utc": "2022-07-01T12:16:13.000Z",
"country": "US",
"city": "Manhattan, NY",
"street": "10th Ave",
"latitude": 40.745401,
"longitude": -74.005836,
"num_thumbs_up": 4,
"alert_reliability": 10,
"alert_confidence": 1,
"near_by": null,
"comments": [],
"num_comments": 0
},
{
"alert_id": "2df904e7-2da7-4532-bf93-ff7239b06cba",
"type": "HAZARD",
"subtype": "HAZARD_ON_ROAD_CONSTRUCTION",
"reported_by": "iCone",
"description": "Roadwork - Caution [iCone]",
"image": null,
"publish_datetime_utc": "2022-07-01T07:49:00.000Z",
"country": "US",
"city": "Jersey City, NJ",
"street": "SR-7 E",
"latitude": 40.740053,
"longitude": -74.079706,
"num_thumbs_up": 82,
"alert_reliability": 10,
"alert_confidence": 5,
"near_by": null,
"comments": [],
"num_comments": 0
},
{
"alert_id": "a430d347-113f-45f2-bb6b-5b7e8e31415e",
"type": "HAZARD",
"subtype": "HAZARD_ON_SHOULDER_CAR_STOPPED",
"reported_by": null,
"description": null,
"image": null,
"publish_datetime_utc": "2022-07-01T12:22:33.000Z",
"country": "US",
"city": "Queens, NY",
"street": "I-495 E • Long Island Expwy",
"latitude": 40.738152,
"longitude": -73.797276,
"num_thumbs_up": 4,
"alert_reliability": 10,
"alert_confidence": 1,
"near_by": null,
"comments": [],
"num_comments": 0
},
{
"alert_id": "0383857a-adff-4f8c-ae1f-c5576aaed878",
"type": "JAM",
"subtype": "JAM_HEAVY_TRAFFIC",
"reported_by": null,
"description": null,
"image": null,
"publish_datetime_utc": "2022-07-01T12:12:20.000Z",
"country": "US",
"city": "Queens, NY",
"street": "Grand Central Pkwy E",
"latitude": 40.728002,
"longitude": -73.839175,
"num_thumbs_up": 0,
"alert_reliability": 10,
"alert_confidence": 2,
"near_by": null,
"comments": [],
"num_comments": 0
}
],
"jams": [{
"jam_id": "72275362",
"type": "NONE",
"level": 4,
"severity": 5,
"line_coordinates": [
{
"lat": 40.685257,
"lon": -74.000658
},
{
"lat": 40.687208,
"lon": -73.999693
},
{
"lat": 40.687855,
"lon": -73.999386
},
{
"lat": 40.688508,
"lon": -73.999078
},
{
"lat": 40.689192,
"lon": -73.99875
},
{
"lat": 40.68988,
"lon": -73.998409
},
{
"lat": 40.690553,
"lon": -73.998095
},
{
"lat": 40.691193,
"lon": -73.997792
}
],
"start_location": null,
"end_location": null,
"speed_kmh": 6.03,
"length_meters": 702,
"delay_seconds": 318,
"block_alert_id": null,
"block_alert_type": null,
"block_alert_description": null,
"block_alert_update_datetime_utc": null,
"block_start_datetime_utc": null,
"publish_datetime_utc": "2022-07-01T09:41:29.346Z",
"update_datetime_utc": "2022-07-01T12:39:30.557Z",
"country": "US",
"city": "Brooklyn, NY",
"street": "Hicks St"
},
{
"jam_id": "72461732",
"type": "NONE",
"level": 2,
"severity": 5,
"line_coordinates": [
{
"lat": 40.745658,
"lon": -73.973482
},
{
"lat": 40.745587,
"lon": -73.973145
},
{
"lat": 40.745574,
"lon": -73.972857
},
{
"lat": 40.745609,
"lon": -73.972573
},
{
"lat": 40.745676,
"lon": -73.972348
},
{
"lat": 40.745722,
"lon": -73.97221
},
{
"lat": 40.745788,
"lon": -73.972103
},
{
"lat": 40.747649,
"lon": -73.970482
},
{
"lat": 40.747899,
"lon": -73.970208
},
{
"lat": 40.748109,
"lon": -73.969843
},
{
"lat": 40.748164,
"lon": -73.969625
},
{
"lat": 40.748161,
"lon": -73.969463
},
{
"lat": 40.748118,
"lon": -73.969164
},
{
"lat": 40.748068,
"lon": -73.969006
},
{
"lat": 40.745234,
"lon": -73.964418
}
],
"start_location": null,
"end_location": null,
"speed_kmh": 19.12,
"length_meters": 1018,
"delay_seconds": 118,
"block_alert_id": null,
"block_alert_type": null,
"block_alert_description": null,
"block_alert_update_datetime_utc": null,
"block_start_datetime_utc": null,
"publish_datetime_utc": "2022-07-01T10:48:38.078Z",
"update_datetime_utc": "2022-07-01T12:39:32.972Z",
"country": "US",
"city": "Manhattan, NY",
"street": "I-495 E / Qns-Midtown Tun"
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/4814/waze+data+api/6003/alerts+and+jams?bottom_left=40.66615391742187,-74.13732147216798&top_right=40.772787404902594,-73.76818084716798&max_alerts=20&max_jams=20' --header 'Authorization: Bearer YOUR_API_KEY'
获取来自Waze的路线/驾车路线,包括沿途的警报。支持设置期望的到达时间
驾车路线 - 端点功能
| 对象 | 描述 |
|---|---|
source_coordinates |
[必需] Geographic coordinates (latitude, longitude pair) of the starting point |
destination_coordinates |
[必需] Geographic coordinates (latitude, longitude pair) of the destination |
return_route_coordinates |
可选 Whether to return route coordinate pairs (`route_coordinates` field) |
arrival_timestamp |
可选 Unix-timestamp (seconds since epoch) of the arrival time (in case not specified directions will be returned for current time) |
{
"status": "OK",
"request_id": "bb5977ad-2081-4f61-9950-cacde02a5cf0",
"data": [
{
"route_coordinates": [],
"route_name": "20 איילון צפון; 2 צפון",
"length_meters": 92119,
"duration_seconds": 3868,
"passes_through_danger_area": false,
"is_toll": false,
"is_hov": false,
"is_fastest": true,
"alerts": [],
"jams": [],
"traffic_label": "usual traffic"
},
{
"route_coordinates": [],
"route_name": "2 צפון; 4 צפון; 4",
"length_meters": 91225,
"duration_seconds": 4679,
"passes_through_danger_area": false,
"is_toll": false,
"is_hov": false,
"is_fastest": false,
"alerts": [],
"jams": [],
"traffic_label": "usual traffic"
},
{
"route_coordinates": [],
"route_name": "2 צפון; 6 צפון",
"length_meters": 109601,
"duration_seconds": 4807,
"passes_through_danger_area": false,
"is_toll": true,
"is_hov": false,
"is_fastest": false,
"alerts": [
{
"alert_id": "24",
"type": "HAZARD",
"subtype": "HAZARD_ON_SHOULDER_CAR_STOPPED",
"latitude": 32.411487,
"longitude": 35.021293
},
{
"alert_id": "06",
"type": "HAZARD",
"subtype": "NO_SUBTYPE",
"latitude": 32.562621,
"longitude": 35.03921
},
{
"alert_id": "67",
"type": "POLICE",
"subtype": "POLICE_VISIBLE",
"latitude": 32.770066,
"longitude": 35.055086
}
],
"jams": [],
"traffic_label": "usual traffic",
"toll_price": 41.34,
"toll_price_currency": "ILS",
"toll_road_name": null
},
{
"route_coordinates": [],
"route_name": "2 צפון; 6 צפון",
"length_meters": 109601,
"duration_seconds": 4806,
"passes_through_danger_area": false,
"is_toll": true,
"is_hov": true,
"is_fastest": false,
"alerts": [
{
"alert_id": "24",
"type": "HAZARD",
"subtype": "HAZARD_ON_SHOULDER_CAR_STOPPED",
"latitude": 32.411487,
"longitude": 35.021293
},
{
"alert_id": "06",
"type": "HAZARD",
"subtype": "NO_SUBTYPE",
"latitude": 32.562621,
"longitude": 35.03921
},
{
"alert_id": "67",
"type": "POLICE",
"subtype": "POLICE_VISIBLE",
"latitude": 32.770066,
"longitude": 35.055086
}
],
"jams": [],
"traffic_label": "usual traffic",
"hov_min_passengers": 2,
"toll_price": 41.34,
"toll_price_currency": "ILS",
"toll_road_name": null
}
]
}
curl --location --request GET 'https://zylalabs.com/api/4814/waze+data+api/6004/driving+directions?source_coordinates=32.0852999,34.78176759999999&destination_coordinates=32.7940463,34.989571' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
每秒查询的限制取决于请求的性质、端点和请求参数(结果数量、查询数量等)。平均每秒请求数约为20(软限制)。然而,我们可以根据您的需求进行扩展。如果您需要更高的每秒请求数,请与我们联系
是的 如果您需要更高的级别或数量 请联系我们我们很乐意为您提供量身定制的折扣计划
平均响应时间在1到3秒之间,取决于使用的端点和请求参数
目前,由于我们在后台使用Waze实时地图,API每个区域最多返回800条警报。如果您需要更多警报,请考虑将请求分成多个小区域的请求
GET警报与交通拥堵端点返回实时警报和交通拥堵信息,包括事故和警察在场等类型 GET驾驶路线端点提供路线详细信息,包括长度、持续时间和沿途警报
关键字段包括警报的 `alert_id`、`type`、`description`、`latitude` 和 `longitude`。对于行驶方向,字段包括 `route_name`、`length_meters`、`duration_seconds` 和 `alerts`
响应数据采用JSON格式结构化 警报嵌套在`data`对象中 而驾驶方向返回一个路线对象数组 每个对象包含关于路线及相关警报的相关细节
获取警报和拥堵端点提供事故、危险和警察的警报 获取行车路线端点提供路线选项、预计旅行时间和沿途警报
GET警报和拥堵端点接受地理坐标(左下角和右上角的纬度/经度)GET驾车路线端点允许用户指定起始和结束位置,以及期望的到达时间
用户可以通过调整警报的地理边界或指定驾驶路线的到达时间来自定义请求 这使得根据用户需求提供量身定制的结果
数据准确性通过Waze社区驱动的平台的实时更新得以保持,该平台持续报告事件和交通状况,确保及时和可靠的信息
典型的使用案例包括提供实时交通更新的导航应用程序 物流公司优化送货路线 以及通勤者根据当前交通状况和警报规划旅行
服务级别:
100%
响应时间:
732ms
服务级别:
100%
响应时间:
1,026ms
服务级别:
100%
响应时间:
605ms
服务级别:
100%
响应时间:
1,094ms
服务级别:
100%
响应时间:
756ms
服务级别:
100%
响应时间:
921ms
服务级别:
97%
响应时间:
3,142ms
服务级别:
100%
响应时间:
3,312ms
服务级别:
100%
响应时间:
2,699ms
服务级别:
100%
响应时间:
16ms
服务级别:
100%
响应时间:
600ms
服务级别:
100%
响应时间:
206ms
服务级别:
100%
响应时间:
953ms
服务级别:
100%
响应时间:
409ms
服务级别:
100%
响应时间:
254ms
服务级别:
100%
响应时间:
83ms
服务级别:
100%
响应时间:
1,527ms
服务级别:
100%
响应时间:
690ms
服务级别:
100%
响应时间:
781ms
服务级别:
100%
响应时间:
323ms