Why can Amap traffic lights count seconds?

Article source: https://www.zhihu.com/question/545653479/answer/3098666967

1 Internal employee confided

My daily job is actually to be responsible for the traffic lights in my own area. I go to check the time early in the morning and then publish it to the backend. Yes, it’s calculated, and it’s done manually. Please forgive me for any errors.

It’s really hard work! But I still hope they remember it carefully when recording, because some intersections are really inaccurate!

Recommend an open source and free Spring Boot practical project:

https://github.com/javastacks/spring-boot-best-practice

2 The real inside story

99% algorithm + 1% traffic control data cooperative access.

Don’t doubt the boundaries of the algorithm. Not only is the traffic light guessed, but now it also has a green band passing function that recommends speed.

Big data makes travel better, and will also make travel safer!

News report

Among them, the traffic light countdown and waiting rounds are calculated:

Some user comments:

  • "What kind of black technology is this? How does Gaode know how long the red light will be at the intersection ahead?"
  • Some people also believe that Amap has access to traffic light data in the city where it is located, thus realizing the function of red light timing and countdown.

In fact, the implementation of the traffic light countdown function is not as straightforward as accessing real-life traffic light data, but is the result of Amap’s years of in-depth innovation in the transportation field and the evolution of computing power - what users see in Amap The red light countdown and the number of red light waiting rounds are all the results of "calculation".

Out of curiosity, I searched for patents and found this:

CN114463969A Traffic light cycle duration mining method, electronic equipment and computer program product AutoNavi Software Company

After a cursory reading, I feel that the traffic light cycle can indeed be determined through this algorithm. Then to implement the traffic light countdown, we also need to determine the time from the current moment to the start of a traffic light cycle. This problem may be achieved by using the real-time start and stop information of the navigation vehicle?

Recommended recent popular articles:

1. Compilation of 1,000+ Java interview questions and answers (2022 latest version)

2. Explosive! Java coroutines are coming. . .

3. Spring Boot 2.x tutorial, so complete!

4. Stop filling the screen with explosive categories and try the decorator mode. This is the elegant way! !

5. "Java Development Manual (Songshan Edition)" is newly released, download it quickly!

If you think it’s good, don’t forget to like and retweet!

Guess you like

Origin blog.csdn.net/youanyyou/article/details/132857878