中的thim thim thim -this Answer thim -the Answer that Answer tht tht Answer thim this Answers标记某些颜色的高速公路。具体来说,您只需为带有水和设置水颜色以外的所有功能的LAT/LON坐标的一个像素地图(尺寸= 1x1)创建请求。纯红色(0xff0000)。这样的东西:
https://maps.googleapis.com/maps/api/staticmap?¢er={YOUR_LAT},{YOUR_LON}&zoom={YOUR_ZOOM}&size=1x1&style=feature:all|visibility:off&style=feature:highways|visibility:on&style=feature:highways|color:0xFF0000&key={YOUR_API_KEY}
然后下载并检查颜色。如果纯红色(0xff0000)用户在高速公路上(如果不是),则是在高速公路上。您需要时间进行此检查,以便准确地进入高速公路进入/退出。