previous bookSpeaking of which, the basic function of dodging the camera is achieved, but there are three core problems:
(1) Slow
(2) Failure at a distance
(3) Map restrictions
The first problem: it is simpler to divide the thousands of cameras by administrative district and bring the number with them, so that when the route is segmented and avoided by piece, the speed of the comprehensive test is increased by 50%.
//find each segment of the STEP route
let wayDistrictsCamera = [];
(city => {
if ( == "110100") {
(cityDistrict => {
wayDistrictsCamera = ((cf => == ));
})
}
})
Second problem: slightly more complicated, when the end point is set to one of the six ring entrances, the planning succeeds and is indeed the route I have practiced offline, but when I set the end point to a foreign province, it fails. So a feature was added to allow setting a waypoint (more than one for fear of affecting efficiency, though I didn't try 😄), and the waypoint was set to this Sixth Ring entrance, and planning was successful.
The third problem: the simplest and the most difficult, yes, need money ability! Personally, I use the interface of the Highlander, according to each function is a limit on the number of calls, so if it crashes, it proves that there are a lot of friends to experience it. 😄
At first it is also out of interest and really have this need, just think of practicing a little, consumed some time, feel quite fun, and also quite practical, I used a few times myself 😄 also to the need of friends to provide a convenient.