[go: up one dir, main page]

CN1932922B - Method for Accurately Displaying Real-time Traffic Information - Google Patents

Method for Accurately Displaying Real-time Traffic Information Download PDF

Info

Publication number
CN1932922B
CN1932922B CN2006101498630A CN200610149863A CN1932922B CN 1932922 B CN1932922 B CN 1932922B CN 2006101498630 A CN2006101498630 A CN 2006101498630A CN 200610149863 A CN200610149863 A CN 200610149863A CN 1932922 B CN1932922 B CN 1932922B
Authority
CN
China
Prior art keywords
latitude
longitude
coordinate
offset
difference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2006101498630A
Other languages
Chinese (zh)
Other versions
CN1932922A (en
Inventor
王刚
杜勇
刘文韬
周一新
王晶晶
诸彤宇
吕卫锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING TRAFFIC INFORMATION CENTER
Original Assignee
BEIJING TRAFFIC INFORMATION CENTER
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING TRAFFIC INFORMATION CENTER filed Critical BEIJING TRAFFIC INFORMATION CENTER
Priority to CN2006101498630A priority Critical patent/CN1932922B/en
Publication of CN1932922A publication Critical patent/CN1932922A/en
Application granted granted Critical
Publication of CN1932922B publication Critical patent/CN1932922B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Traffic Control Systems (AREA)

Abstract

本发明公开了一种准确显示实时路况信息的方法,该方法包括步骤:确定路况信息所在道路的行车方向;根据行车方向以及预设的坐标偏移值,调整路况信息的显示位置,保证调整后的显示位置与原显示位置平行。本发明根据道路等级和行车方向,对路况信息的显示位置进行了相应调整,清晰地区分和表现了双向路上不同的情况,从而准确显示道路交通的路况信息,为用户出行提供了准确的交通信息服务。本发明还公开了一种准确显示实时路况信息的装置。

Figure 200610149863

The invention discloses a method for accurately displaying real-time road condition information. The method comprises the steps of: determining the driving direction of the road where the road condition information is located; adjusting the display position of the road condition information according to the driving direction and a preset coordinate offset value to ensure The display position of is parallel to the original display position. According to the road grade and driving direction, the present invention adjusts the display position of the road condition information accordingly, clearly distinguishes and shows different situations on the two-way road, thereby accurately displaying the road condition information of the road traffic, and providing accurate traffic information for users to travel Serve. The invention also discloses a device for accurately displaying real-time road condition information.

Figure 200610149863

Description

准确显示实时路况信息的方法 Method for Accurately Displaying Real-time Traffic Information

技术领域technical field

本发明涉及智能交通技术领域,尤其涉及一种准确显示实时路况信息的方法和装置。The invention relates to the technical field of intelligent transportation, in particular to a method and a device for accurately displaying real-time road condition information.

背景技术Background technique

如今,城市道路交通状况日趋紧张,传统的交通指挥模式已经不能满足需要,人们希望变被动指挥为主动输导,在没有到达堵车地区之前就能够预知交通状况,防止发生堵塞。Nowadays, the traffic situation on urban roads is becoming increasingly tense, and the traditional traffic command mode can no longer meet the needs. People hope to change from passive command to active guidance, so that they can predict the traffic situation before reaching the traffic jam area and prevent congestion.

因此,智能交通系统(ITS)技术应运而生,它是通过将先进的信息技术、数据通讯传输技术、电子传感技术、控制技术及计算机技术等有效地集成运用于整个地面交通管理系统,而建立的一种在大范围内、全方位发挥作用的系统,能够实时、准确、高效的管理综合交通运输。ITS是未来交通系统的发展方向。Therefore, the intelligent transportation system (ITS) technology emerges at the historic moment. It effectively integrates advanced information technology, data communication transmission technology, electronic sensor technology, control technology and computer technology into the entire ground traffic management system, and A system that functions in a wide range and in an all-round way has been established, which can manage comprehensive transportation in real time, accurately and efficiently. ITS is the development direction of the future transportation system.

其中,实时路况信息发布系统是ITS的具体应用,是一种有效的面向公众的交通信息服务平台。它将交通路况信息通过控制平台,可靠、实时地进行发布,用户可以通过网络、移动终端、车载终端或个人数字助理(PersonalDigital Assistant,PDA)等多种途径及时掌握当前交通信息。一般地,实时路况信息是由交通信息服务平台以地图图层的形式生成,然后传递给终端用户。目前,通用的做法是将实时路况信息以不同颜色的线条的方式来区分和表示。Among them, the real-time traffic information release system is a specific application of ITS, and it is an effective public-oriented traffic information service platform. It releases traffic and road condition information reliably and in real time through the control platform, and users can grasp the current traffic information in a timely manner through various channels such as the Internet, mobile terminals, vehicle terminals, or personal digital assistants (Personal Digital Assistant, PDA). Generally, real-time traffic information is generated by the traffic information service platform in the form of a map layer, and then delivered to end users. At present, the general practice is to distinguish and represent the real-time traffic condition information in the form of lines of different colors.

但是,由于电子地图只是对实际道路的抽象,所以在地图上显示的道路并不能完全表现出实际道路的交通特性。特别是,双向道路在地图中通常只用一根线条表示,如果直接按照原有道路的坐标显示实时路况信息,那么正向行驶和反向行驶的路况信息会重叠在一起,难以区分出双向道路上的路况信息。However, since the electronic map is only an abstraction of the actual road, the road displayed on the map cannot fully represent the traffic characteristics of the actual road. In particular, two-way roads are usually represented by only one line on the map. If real-time traffic information is displayed directly according to the coordinates of the original road, the traffic information of forward driving and reverse driving will overlap, making it difficult to distinguish two-way roads. traffic information on .

以图1为例,AB段代表实际中的两条双向道路,但是由于这两条道路抽象的坐标是一致的,导致了路况信息重叠在一起,只能统一用AB线段表示这两条双向道路的路况信息。假设AB线段目前是红色,代表拥堵,那么到底是从A到B拥堵,还是从B到A拥堵?这是个很难确定的问题。Taking Figure 1 as an example, the AB segment represents two two-way roads in reality, but because the abstract coordinates of the two roads are consistent, the road condition information overlaps together, so the two two-way roads can only be represented by the AB line segment traffic information. Assuming that the line segment AB is currently red, representing congestion, is it congested from A to B, or from B to A? This is a difficult question to determine.

发明内容Contents of the invention

本发明的目的是提供一种准确显示实时路况信息的方法和装置,以解决由于路况信息重叠而导致的实时路况信息显示不准确的问题。The object of the present invention is to provide a method and device for accurately displaying real-time road condition information, so as to solve the problem of inaccurate display of real-time road condition information due to overlap of road condition information.

为此,本发明采用如下技术方案:For this reason, the present invention adopts following technical scheme:

一种准确显示实时路况信息的方法,包括步骤:确定路况信息所在道路的行车方向;根据行车方向以及预设的坐标偏移值,调整所述路况信息的显示位置,保证调整后的显示位置与原显示位置平行。A method for accurately displaying real-time road condition information, comprising the steps of: determining the driving direction of the road where the road condition information is located; adjusting the display position of the road condition information according to the driving direction and a preset coordinate offset value, so as to ensure that the adjusted display position is consistent with the The original display position is parallel.

所述确定路况信息所在道路的行车方向,包括步骤:获取道路起点经度和纬度、止点经度和纬度;根据经度和纬度确定起点和止点的位置关系,确定道路行车方向。Said determining the driving direction of the road where the road condition information is located includes the steps of: obtaining the longitude and latitude of the starting point and the longitude and latitude of the ending point of the road; determining the positional relationship between the starting point and the ending point according to the longitude and latitude, and determining the driving direction of the road.

所述经度和纬度,是从发布所述实时路况信息的系统中的地图文件中读取得到的。The longitude and latitude are read from the map file in the system that issues the real-time road condition information.

所述坐标偏移值,是依据发布所述实时路况信息的系统中的地图缩放等级动态设置的。The coordinate offset value is dynamically set according to the zoom level of the map in the system that issues the real-time road condition information.

所述根据经度和纬度确定起点和止点的位置关系,确定道路行车方向,包括以下步骤:Said determining the positional relationship between the starting point and the end point according to the longitude and latitude, and determining the road driving direction may include the following steps:

判断起点、止点的经度差值绝对值是否大于或等于纬度差值绝对值,Determine whether the absolute value of the longitude difference between the starting point and the ending point is greater than or equal to the absolute value of the latitude difference,

若是,if,

比较起点经度与止点经度的大小:Compare the size of the longitude of the starting point and the longitude of the ending point:

若起点经度大,则确定道路行车方向与正东方向的夹角范围是,大于等于-180度且小于等于-135度,或,大于等于135度且小于等于180度;If the longitude of the starting point is large, determine that the angle range between the driving direction of the road and the due east direction is greater than or equal to -180 degrees and less than or equal to -135 degrees, or greater than or equal to 135 degrees and less than or equal to 180 degrees;

若止点经度大,则确定道路行车方向与正东方向的夹角范围是,大于等于-45度且小于等于45度;If the longitude of the dead point is large, determine that the angle range between the driving direction of the road and the due east direction is greater than or equal to -45 degrees and less than or equal to 45 degrees;

否则,otherwise,

比较起点纬度与止点纬度的大小:Compare the latitude of the starting point and the latitude of the ending point:

若起点纬度大,则确定道路行车方向与正东方向的夹角范围是,大于-135度且小于-45度;If the latitude of the starting point is large, determine that the angle between the driving direction of the road and the due east direction is greater than -135 degrees and less than -45 degrees;

若止点纬度大,则确定道路行车方向与正东方向的夹角范围是,大于45度且小于135。If the latitude of the dead point is large, then determine that the angle range between the driving direction of the road and the due east direction is greater than 45 degrees and less than 135 degrees.

所述调整路况信息的显示位置,包括以下步骤:The adjustment of the display position of the road condition information includes the following steps:

判断道路行车方向与正东方向的夹角范围,Determine the angle range between the driving direction of the road and the due east direction,

若大于等于-45度且小于等于45度时,设置起点、止点的纬度分别减少所述坐标偏移值;If it is greater than or equal to -45 degrees and less than or equal to 45 degrees, set the latitude of the starting point and the ending point to reduce the coordinate offset value respectively;

若大于-135度且小于-45度时,设置起点、止点的经度分别减少所述坐标偏移值;If it is greater than -135 degrees and less than -45 degrees, set the longitude of the start point and end point to reduce the coordinate offset value respectively;

若大于45度且小于135时,设置起点、止点的经度分别增加所述坐标偏移值;If it is greater than 45 degrees and less than 135 degrees, set the longitude of the starting point and the end point to increase the coordinate offset value respectively;

否则,设置起点、止点的纬度分别增加所述坐标偏移值。Otherwise, set the latitude of the start point and the end point to increase the coordinate offset value respectively.

一种准确显示实时路况信息的装置,包括接收单元、存储单元、控制单元和显示单元;所述接收单元用于,接收实时路况信息;所述存储单元用于,存储预先设置的坐标偏移值;所述控制单元用于,确定路况信息所在道路的行车方向;并根据所述行车方向和坐标偏移值,对所述路况信息的显示位置进行调整,保证调整后的显示位置与原显示位置平行;所述显示单元用于,对控制单元调整后的路况信息进行显示。A device for accurately displaying real-time road condition information, comprising a receiving unit, a storage unit, a control unit and a display unit; the receiving unit is used to receive real-time road condition information; the storage unit is used to store preset coordinate offset values The control unit is used to determine the driving direction of the road where the road condition information is located; and adjust the display position of the road condition information according to the driving direction and coordinate offset value, so as to ensure that the adjusted display position is the same as the original display position parallel; the display unit is used to display the road condition information adjusted by the control unit.

所述坐标偏移值的设置依据包括:发布所述实时路况信息的系统中的地图缩放等级。The basis for setting the coordinate offset value includes: the zoom level of the map in the system that issues the real-time road condition information.

所述经度和纬度是由发布所述实时路况信息的系统中的地图文件提供的。The longitude and latitude are provided by map files in the system that distributes the real-time traffic information.

所述控制单元包括计算单元和判断单元;所述计算单元用于,计算道路起止点的经度差值和纬度差值;所述判断单元用于,比较所述计算单元提供的经度差值和纬度差值,确定道路行车方向。The control unit includes a calculation unit and a judgment unit; the calculation unit is used to calculate the longitude difference and the latitude difference between the starting and ending points of the road; the judgment unit is used to compare the longitude difference and the latitude provided by the calculation unit The difference is used to determine the driving direction of the road.

所述控制单元还包括执行单元;所述执行单元用于,根据所述判断单元确定的行车方向,以及所述坐标偏移值,对所述路况信息的显示位置进行调整。The control unit further includes an execution unit; the execution unit is configured to adjust the display position of the road condition information according to the driving direction determined by the judging unit and the coordinate offset value.

可见,本发明根据道路等级和行车方向,对路况信息的显示位置进行了相应调整,清晰地区分和表现了双向路上不同的情况,从而准确显示道路交通的路况信息,为用户出行提供了准确的交通信息服务。It can be seen that the present invention adjusts the display position of the road condition information according to the road grade and driving direction, clearly distinguishes and shows different situations on the two-way road, thereby accurately displaying the road condition information of the road traffic and providing accurate travel information for users. traffic information service.

附图说明Description of drawings

图1为现有技术中路况信息显示示意图;FIG. 1 is a schematic diagram of road condition information display in the prior art;

图2为本发明的流程图;Fig. 2 is a flowchart of the present invention;

图3为实施例中的流程图;Fig. 3 is the flowchart in the embodiment;

图4为实施例中路况信息显示位置向南偏移示意图;Fig. 4 is a schematic diagram showing a southward offset of the display position of the road condition information in the embodiment;

图5为实施例中路况信息显示位置向北偏移示意图;Fig. 5 is a schematic diagram showing a northward deviation of the display position of road condition information in the embodiment;

图6为实施例中路况信息显示示意图;Fig. 6 is a schematic diagram of road condition information display in the embodiment;

图7为本发明中装置的结构示意图。Fig. 7 is a schematic structural diagram of the device in the present invention.

具体实施方式Detailed ways

本发明通过对路况信息显示位置进行调整,将重叠在一起的路况信息区分开来,以准确表示实际道路的交通状况。The present invention distinguishes the overlapped road condition information by adjusting the display position of the road condition information, so as to accurately represent the traffic condition of the actual road.

为了便于理解本发明,首先介绍实时路况信息发布系统中的几个概念。In order to facilitate the understanding of the present invention, several concepts in the real-time road condition information distribution system are firstly introduced.

实时路况信息:用道路的拥堵等级来表示,分为畅通、缓慢和拥堵三个等级。拥堵等级以道路上行驶车辆的平均车速为衡量标准,例如,平均车速大于40千米/小时的为畅通;平均车速介于20千米/小时和40千米/小时的为缓慢;平均车速小于20千米/小时的为拥堵。Real-time traffic information: represented by road congestion levels, which are divided into three levels: smooth, slow and congested. The level of congestion is measured by the average speed of vehicles on the road. For example, if the average speed is greater than 40 km/h, it is smooth; if the average speed is between 20 km/h and 40 km/h, it is slow; if the average speed is less than 20 km/h is congestion.

道路等级:分为主要道路、辅助道路和通行能力较差的道路三个等级。例如,主要道路包括城市高速路、快速路、国道和省道;辅助道路包括县道和乡道;通行能力较差的道路包括胡同和一般街道。Road grades: divided into three grades: main roads, auxiliary roads and roads with poor traffic capacity. For example, major roads include urban highways, expressways, national highways, and provincial roads; auxiliary roads include county roads and township roads; roads with poor traffic capacity include hutongs and general streets.

地图缩放等级:分为四个等级。例如,第一级比例尺为1∶40980米,显示主要道路;第二级比例尺为1∶20490米,显示主要道路和辅助道路;第三级比例尺为1∶10245,显示所有道路;第四级比例尺为1∶5122.5米,显示所有道路。Map zoom level: divided into four levels. For example, the scale of the first level is 1:40980 meters, showing the main roads; the scale of the second level is 1:20490 meters, showing the main roads and auxiliary roads; the scale of the third level is 1:10245, showing all roads; the scale of the fourth level It is 1:5122.5 meters, showing all roads.

本发明对路况信息显示位置调整的过程,实际上是依据道路等级和地图缩放等级,对原有道路的起止点经纬度坐标进行偏移的过程。该过程的关键是确定坐标偏移大小和偏移方向,而偏移方向与路况信息所在道路的行车方向是对应的。The process of adjusting the display position of the road condition information in the present invention is actually a process of offsetting the latitude and longitude coordinates of the start and end points of the original road according to the road grade and the map zoom grade. The key to this process is to determine the coordinate offset size and offset direction, and the offset direction corresponds to the driving direction of the road where the road condition information is located.

如图2所示,本发明中准确显示实时路况信息的方法包括:As shown in Figure 2, the method for accurately displaying real-time road condition information among the present invention comprises:

步骤201:依据实际道路的道路等级和地图缩放等级,设置合理的坐标偏移值;Step 201: Set a reasonable coordinate offset value according to the road level of the actual road and the zoom level of the map;

步骤202:确定路况信息所在道路的行车方向,从而得到偏移方向;Step 202: Determine the driving direction of the road where the road condition information is located, so as to obtain the offset direction;

确定路况信息所在道路的行车方向,是通过确定道路所在直线段起止点的经度差值和纬度差值,并比较经度差值和纬度差值而实现的;道路的行车方向与偏移方向有一定的对应关系,从而可以得到偏移方向。道路的行车方向与偏移方向的对应关系在实施例中有详细叙述。Determining the driving direction of the road where the road condition information is located is achieved by determining the longitude difference and latitude difference between the starting and ending points of the straight line segment where the road is located, and comparing the longitude difference and latitude difference; the driving direction of the road and the offset direction have a certain The corresponding relationship, so that the offset direction can be obtained. The corresponding relationship between the driving direction of the road and the offset direction is described in detail in the embodiment.

步骤203:根据坐标偏移值和偏移方向,对路况信息的显示位置进行调整。Step 203: Adjust the display position of the road condition information according to the coordinate offset value and offset direction.

其中,调整的基本原则是保证调整后的显示位置与原来的显示位置保持平行。Wherein, the basic principle of the adjustment is to ensure that the adjusted display position remains parallel to the original display position.

下面结合图3、图4、图5和图6,对本发明的实施例进行阐述。Embodiments of the present invention will be described below with reference to FIG. 3 , FIG. 4 , FIG. 5 and FIG. 6 .

步骤301:依据地图缩放等级,设置合理的坐标偏移值;Step 301: Set a reasonable coordinate offset value according to the zoom level of the map;

地图缩放等级为第一级时,此时显示主要道路,即只对主要道路的路况信息进行偏移,取偏移值为0.0005;地图缩放等级为第二级时,此时显示主要道路和辅助道路,即只对主要道路和辅助道路进行偏移,取偏移值为0.0003;地图缩放等级为三级和第四级时,此时显示所有道路,取偏移值为0,即不进行偏移。When the map zoom level is the first level, the main road is displayed at this time, that is, only the road condition information of the main road is offset, and the offset value is 0.0005; when the map zoom level is the second level, the main road and auxiliary roads are displayed at this time Roads, that is, only the main roads and auxiliary roads are offset, and the offset value is 0.0003; when the map zoom level is level 3 and level 4, all roads are displayed at this time, and the offset value is 0, that is, no offset shift.

步骤302:读取道路所在直线段止点经度与起点经度,并判断二者差值,若为正,执行步骤303;若为负,执行步骤306;Step 302: Read the longitude of the end point and the longitude of the starting point of the straight line segment where the road is located, and judge the difference between the two. If it is positive, execute step 303; if it is negative, execute step 306;

其中,起点经纬度坐标和止点经纬度坐标是通过地图文件中读取到的。Wherein, the latitude and longitude coordinates of the starting point and the latitude and longitude coordinates of the ending point are read from the map file.

如图4所示,设置x轴正方向为正东,y轴正方向为正北,那么,可以由x坐标值代表点坐标的经度值,由y坐标值代表点坐标的纬度值。As shown in Figure 4, set the positive direction of the x-axis to be due east, and the positive direction of the y-axis to be due north, then the x-coordinate value can represent the longitude value of the point coordinate, and the y-coordinate value can represent the latitude value of the point coordinate.

步骤303:判断止点纬度与起点纬度差值,若为正,执行步骤304;若为负,执行步骤305;Step 303: Determine the difference between the latitude of the stop point and the latitude of the starting point, if it is positive, execute step 304; if it is negative, execute step 305;

步骤304:比较经度差值绝对值是否大于或等于纬度差值绝对值,若是,则确定行车方向与x轴正方向夹角在0~45度之间,得到偏移方向向南;否则,则确定行车方向与x轴正方向夹角在45~90度之间,得到偏移方向向东;Step 304: Compare whether the absolute value of the longitude difference is greater than or equal to the absolute value of the latitude difference, if yes, determine that the angle between the driving direction and the positive direction of the x-axis is between 0 and 45 degrees, and obtain the offset direction to the south; otherwise, then Make sure that the angle between the driving direction and the positive direction of the x-axis is between 45 and 90 degrees, and the offset direction is eastward;

其中,偏移方向与行车方向是对应的,也即在确定道路的实际行车方向后,就可以得知偏移方向。Wherein, the offset direction corresponds to the driving direction, that is, the offset direction can be known after the actual driving direction of the road is determined.

可以假设,行车方向为东,那么应该保证偏移后的线段和偏移前的线段平行,也即可以向北或向南偏移;偏移的一个基本原则是向道路的外侧偏移,若行车方向向东,则判断应往南偏移。It can be assumed that the driving direction is east, so it should be ensured that the line segment after the offset is parallel to the line segment before the offset, that is, it can be offset to the north or south; a basic principle of the offset is to offset to the outside of the road, if If the driving direction is east, it is judged that it should be shifted to the south.

步骤305:比较经度差值绝对值是否大于或等于纬度差值绝对值,若是,则确定行车方向与x轴正方向夹角在-45~0度之间,得到偏移方向向南;否则,则确定行车方向与x轴正方向夹角在-90~-45度之间,得到偏移方向向西;Step 305: Compare whether the absolute value of the longitude difference is greater than or equal to the absolute value of the latitude difference, if yes, determine that the angle between the driving direction and the positive direction of the x-axis is between -45° and 0°, and obtain the offset direction to the south; otherwise, Then determine that the angle between the driving direction and the positive direction of the x-axis is between -90 and -45 degrees, and the offset direction is westward;

步骤306:判断止点纬度与起点纬度差值,若为正,执行步骤307;若为负,执行步骤308;Step 306: Determine the difference between the latitude of the stop point and the latitude of the starting point, if it is positive, execute step 307; if it is negative, execute step 308;

步骤307:比较经度差值绝对值是否大于或等于纬度差值绝对值,若是,则确定行车方向与x轴正方向夹角在135~180度之间,得到偏移方向向北;否则,则确定行车方向与x轴正方向夹角在90~135度之间,得到偏移方向向东;Step 307: Compare whether the absolute value of the longitude difference is greater than or equal to the absolute value of the latitude difference, if yes, determine that the angle between the driving direction and the positive direction of the x-axis is between 135° and 180°, and obtain the offset direction to the north; otherwise, then Make sure that the angle between the driving direction and the positive direction of the x-axis is between 90 and 135 degrees, and the offset direction is eastward;

步骤308:比较经度差值绝对值是否大于或等于纬度差值绝对值,若是,则确定行车方向与x轴正方向夹角在-180~-135度之间,得到偏移方向向北;否则,则确定行车方向与x轴正方向夹角在-135~-90度之间,得到偏移方向向西。Step 308: Compare whether the absolute value of the longitude difference is greater than or equal to the absolute value of the latitude difference, if yes, determine that the angle between the driving direction and the positive direction of the x-axis is between -180 and -135 degrees, and obtain the offset direction to the north; otherwise , it is determined that the angle between the driving direction and the positive direction of the x-axis is between -135 and -90 degrees, and the offset direction is westward.

步骤309:根据步骤304、步骤305、步骤307和步骤308确定的偏移方向,以及步骤301设置的坐标偏移值,对线段的起止点经纬度进行相应调整。Step 309: According to the offset direction determined in Step 304, Step 305, Step 307, and Step 308, and the coordinate offset value set in Step 301, adjust the latitude and longitude of the start and end points of the line segment accordingly.

其中:in:

偏移方向向南时,起止点经度坐标不变,纬度坐标减去坐标偏移值;When the offset direction is southward, the longitude coordinates of the start and end points remain unchanged, and the latitude coordinates subtract the coordinate offset value;

偏移方向向东时,起止点经度坐标加上坐标偏移值,纬度坐标不变;When the offset direction is east, the longitude coordinates of the starting and ending points are added to the coordinate offset value, and the latitude coordinates remain unchanged;

偏移方向向北时,起止点经度坐标不变,纬度坐标加上坐标偏移值;When the offset direction is northward, the longitude coordinates of the starting and ending points remain unchanged, and the latitude coordinates are added to the coordinate offset value;

偏移方向向西时,起止点经度坐标减去坐标偏移值,纬度坐标不变。When the offset direction is westward, the longitude coordinates of the starting and ending points are subtracted from the coordinate offset value, and the latitude coordinates remain unchanged.

通过以上的描述,可以总结出a、偏移方向和调整操作的对应关系如表1所示。其中,a表示行车方向与x轴正方向夹角。Through the above description, it can be concluded that the corresponding relationship between a, the offset direction and the adjustment operation is shown in Table 1. Among them, a represents the angle between the driving direction and the positive direction of the x-axis.

表1Table 1

  aa   偏移方向offset direction   调整操作Adjust operation   [-45°,45°][-45°, 45°]   南 South   纬度坐标(y)减去坐标偏移值Latitude coordinate (y) minus coordinate offset value   (45°,135°)(45°, 135°)   东 East   经度坐标(x)加上坐标偏移值Longitude coordinate (x) plus coordinate offset value   (-135°,-45°)(-135°, -45°)   西 West   经度坐标(x)减去坐标偏移值Longitude coordinate (x) minus coordinate offset value   [-180°,-135°]或[135°,180  °][-180°, -135°] or [135°, 180°]   北 north   纬度坐标(y)加上坐标偏移值Latitude coordinate (y) plus coordinate offset value

那么,对于图4所示的情况,a在[-45°,45°]范围内,所以要对原线段AB进行向南偏移处理,偏移后的线段A’B’与AB平行,且能够真实表示道路的路况信息。对于图5所示的情况,a在[-180°,-135°]范围内,所以要对原线段AB进行向北偏移处理,偏移后的线段A’B’与AB平行,且能够真实表示道路的路况信息。对于a在其它范围的情况,原理相同,在此不再赘述。Then, for the situation shown in Figure 4, a is in the range of [-45°, 45°], so the original line segment AB should be offset to the south, and the offset line segment A'B' is parallel to AB, and It can truly represent the road condition information of the road. For the situation shown in Figure 5, a is within the range of [-180°, -135°], so the original line segment AB needs to be offset northward, and the offset line segment A'B' is parallel to AB, and can It truly represents the road condition information of the road. For the case where a is in other ranges, the principle is the same, and will not be repeated here.

如图6所示,通过采用本发明对表示路况信息的道路线段进行位置调整,图1中重叠在一起的AB线段已经区分开来,分别是CD段和EF段,CD段表示从A向B的道路,EF段表示从B向A的道路,可以很容易辨别哪条道路是拥堵的。可见,通过本发明的方法,能够清晰的表示双向道路的实时路况信息。As shown in Figure 6, by adopting the present invention to adjust the position of the road segment representing road condition information, the overlapping AB segment in Figure 1 has been distinguished, which are respectively CD segment and EF segment, and CD segment represents from A to B The EF segment represents the road from B to A, and it is easy to identify which road is congested. It can be seen that, through the method of the present invention, real-time road condition information of two-way roads can be clearly represented.

除了上述实施例中最优的实现方案以外,对于道路行车方向(a大小)、与偏移方向的关系可以根据情况进行调整,只要保证偏移后的道路显示位置与原道路所在显示位置平行即可。比如,在a等于45度的时候,可以设置偏移方向向东,执行经度坐标(x)加上坐标偏移值的操作。In addition to the optimal implementation scheme in the above-mentioned embodiments, the relationship between the road driving direction (a size) and the offset direction can be adjusted according to the situation, as long as the offset road display position is parallel to the original road display position. Can. For example, when a is equal to 45 degrees, you can set the offset direction to the east, and perform the operation of adding the coordinate offset value to the longitude coordinate (x).

本发明还公开了一种准确显示实时路况信息的装置,如图7所示,包括接收单元701、存储单元702、控制单元703和显示单元704。The present invention also discloses a device for accurately displaying real-time road condition information, as shown in FIG. 7 , which includes a receiving unit 701 , a storage unit 702 , a control unit 703 and a display unit 704 .

接收单元701主要负责接收实时路况信息;还负责接收路况信息所在道路起点的经度和纬度、止点的经度和纬度。其中,经度和纬度是由实时路况信息发布系统中的地图文件提供的。The receiving unit 701 is mainly responsible for receiving real-time road condition information; it is also responsible for receiving the longitude and latitude of the starting point and the longitude and latitude of the ending point of the road where the road condition information is located. Wherein, the longitude and latitude are provided by the map file in the real-time traffic information release system.

存储单元702主要用于存储预先设置的坐标偏移值,坐标偏移值是根据道路等级或地图缩放等级设置的。地图缩放等级为第一级时,取偏移值为0.0005;地图缩放等级为第二级时取偏移值为0.0003;地图缩放等级为三级和第四级时,取偏移值为0。The storage unit 702 is mainly used for storing preset coordinate offset values, and the coordinate offset values are set according to road level or map zoom level. When the map zoom level is the first level, the offset value is 0.0005; when the map zoom level is the second level, the offset value is 0.0003; when the map zoom level is the third level and the fourth level, the offset value is 0.

控制单元703负责整个装置的中心控制工作,包括,根据所述经度和纬度,确定路况信息所在道路的行车方向;并根据所述行车方向和坐标偏移值,对所述路况信息的显示位置进行调整,调整时保证调整后的显示位置和原来的显示位置保持平行。The control unit 703 is responsible for the central control work of the entire device, including determining the driving direction of the road where the road condition information is located according to the longitude and latitude; and controlling the display position of the road condition information according to the driving direction and coordinate offset value Adjustment, when adjusting, ensure that the adjusted display position remains parallel to the original display position.

如图7所示,控制单元703的功能由计算单元710、判断单元711和执行单元712来完成。计算单元710用于对所述经度和纬度分别进行计算;判断单元711用于比较起点经度和止点经度,以及比较起点纬度和止点纬度,并比较所述计算单元得到的计算结果;执行单元712负责根据判断单元711得到的结果,以及存储单元702存储的坐标偏移值,对路况信息的显示位置进行调整。As shown in FIG. 7 , the functions of the control unit 703 are completed by a calculation unit 710 , a judgment unit 711 and an execution unit 712 . The calculation unit 710 is used to calculate the longitude and latitude respectively; the judgment unit 711 is used to compare the longitude of the starting point and the longitude of the end point, and compare the latitude of the starting point and the latitude of the end point, and compare the calculation results obtained by the calculation unit; the execution unit 712 is in charge of adjusting the display position of the road condition information according to the result obtained by the judging unit 711 and the coordinate offset value stored in the storage unit 702 .

优选地,确定道路行车方向与正东方向的夹角是大于等于-45度且小于等于45度时,设置起点、止点的纬度分别减少所述坐标偏移值;是大于-135度且小于-45度时,设置起点、止点的经度分别减少所述坐标偏移值;是大于45度且小于135时,设置起点、止点的经度分别增加所述坐标偏移值;其余的情况下,设置起点、止点的纬度分别增加所述坐标偏移值。Preferably, when it is determined that the angle between the road driving direction and the due east direction is greater than or equal to -45 degrees and less than or equal to 45 degrees, the latitude of the starting point and the end point are respectively reduced by the coordinate offset value; it is greater than -135 degrees and less than When -45 degrees, set the longitude of the starting point and the end point to reduce the coordinate offset value respectively; when it is greater than 45 degrees and less than 135 degrees, set the longitude of the starting point and the end point to increase the coordinate offset value respectively; in other cases , set the latitude of the start point and end point to increase the coordinate offset value respectively.

显示单元704负责显示路况信息,主要是对控制单元调整后的路况信息进行显示。一般地,实时路况信息是由交通信息服务平台以地图图层的形式生成,然后传递给终端用户。目前,通用的做法是将实时路况信息以不同颜色的线条的方式来区分和表示。The display unit 704 is responsible for displaying road condition information, mainly displaying the road condition information adjusted by the control unit. Generally, real-time traffic information is generated by the traffic information service platform in the form of a map layer, and then delivered to end users. At present, the general practice is to distinguish and represent the real-time traffic condition information in the form of lines of different colors.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (3)

1. method that accurately shows real-time road condition information is characterized in that described method comprises:
Obtain road starting point longitude and latitude, stop longitude and latitude;
Determine that according to longitude and latitude the position of starting point and stop concerns, determines the road travel direction;
According to direction of traffic and default coordinate offset amount, adjust the display position of described traffic information, guarantee that adjusted display position is parallel with former display position, and the original display position translation round about of the display position of the opposite direction of traffic of direction;
Wherein, determine the road travel direction, adjust the display position of described traffic information according to direction of traffic and coordinate offset amount in advance, comprise: the difference of judging described road stop longitude and starting point longitude, if just, then judge stop latitude and starting point latitude difference, if just, whether then compare the longitude absolute difference more than or equal to the latitude absolute difference, if determine that then direction of traffic and X-axis positive dirction angle are between 0~45 degree, and it is to the south to obtain the offset direction, when being offset, the terminal longitude coordinate is constant, and latitude coordinate deducts the coordinate offset value;
Judge the difference of described road stop longitude and starting point longitude, if just, then judge stop latitude and starting point latitude difference,, whether then compare the longitude absolute difference more than or equal to the latitude absolute difference if just, if not, then determine direction of traffic and X-axis positive dirction angle between 45~90 degree, and obtain the offset direction eastwards, when being offset, the terminal longitude coordinate adds the coordinate offset value, and latitude coordinate is constant;
Judge the difference of described road stop longitude and starting point longitude, if just, then judge stop latitude and starting point latitude difference,, whether then compare the longitude absolute difference more than or equal to the latitude absolute difference if negative, if, then determine direction of traffic and X-axis positive dirction angle between-45~0 degree, and it is to the south to obtain the offset direction, when being offset, the terminal longitude coordinate is constant, and latitude coordinate deducts the coordinate offset value;
Judge the difference of described road stop longitude and starting point longitude, if just, then judge stop latitude and starting point latitude difference,, whether then compare the longitude absolute difference more than or equal to the latitude absolute difference if negative, if not, then determine direction of traffic and X-axis positive dirction angle between-90~-45 degree, and obtain the offset direction westwards, when being offset, the terminal longitude coordinate deducts the coordinate offset value, and latitude coordinate is constant;
Judge the difference of described road stop longitude and starting point longitude, if it is negative, then judge stop latitude and starting point latitude difference,, whether then compare the longitude absolute difference more than or equal to the latitude absolute difference if just, if, then determine direction of traffic and X-axis positive dirction angle between 135~180 degree, and obtain the offset direction northwards, when being offset, the terminal longitude coordinate is constant, and latitude coordinate adds the coordinate offset value;
Judge the difference of described road stop longitude and starting point longitude, if it is negative, then judge stop latitude and starting point latitude difference,, whether then compare the longitude absolute difference more than or equal to the latitude absolute difference if just, if not, then determine direction of traffic and X-axis positive dirction angle between 90~135 degree, and obtain the offset direction eastwards, when being offset, the terminal longitude coordinate adds the coordinate offset value, and latitude coordinate is constant;
Judge the difference of described road stop longitude and starting point longitude, if it is negative, then judge stop latitude and starting point latitude difference,, whether then compare the longitude absolute difference more than or equal to the latitude absolute difference if negative, if, then determine direction of traffic and X-axis positive dirction angle between-180~-135 degree, and obtain the offset direction northwards, when being offset, the terminal longitude coordinate is constant, and latitude coordinate adds the coordinate offset value;
Judge the difference of described road stop longitude and starting point longitude, if it is negative, then judge stop latitude and starting point latitude difference,, whether then compare the longitude absolute difference more than or equal to the latitude absolute difference if negative, if not, then determine direction of traffic and X-axis positive dirction angle between-135~-90 degree, and obtain the offset direction westwards, when being offset, the terminal longitude coordinate deducts the coordinate offset value, and latitude coordinate is constant;
Wherein, the X-axis positive dirction is due east, and being provided with according to the map zoom level of coordinate offset value carried out.
2. the method for accurate demonstration real-time road condition information according to claim 1 is characterized in that,
Described starting point longitude and latitude, stop longitude and latitude are to read in the map file from the system that issues described real-time road condition information to obtain.
3. the method for accurate demonstration real-time road condition information according to claim 1 and 2 is characterized in that, described coordinate offset value,
Be to dynamically arrange according to the map zoom level in the system of the described real-time road condition information of issue.
CN2006101498630A 2006-10-27 2006-10-27 Method for Accurately Displaying Real-time Traffic Information Expired - Fee Related CN1932922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101498630A CN1932922B (en) 2006-10-27 2006-10-27 Method for Accurately Displaying Real-time Traffic Information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101498630A CN1932922B (en) 2006-10-27 2006-10-27 Method for Accurately Displaying Real-time Traffic Information

Publications (2)

Publication Number Publication Date
CN1932922A CN1932922A (en) 2007-03-21
CN1932922B true CN1932922B (en) 2010-10-06

Family

ID=37878731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101498630A Expired - Fee Related CN1932922B (en) 2006-10-27 2006-10-27 Method for Accurately Displaying Real-time Traffic Information

Country Status (1)

Country Link
CN (1) CN1932922B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102044162B (en) * 2009-10-15 2013-06-19 深圳市赛格导航科技股份有限公司 Vehicle early warning analyzing and processing method and system
CN102956137A (en) * 2011-08-25 2013-03-06 上海博泰悦臻电子设备制造有限公司 Method and device for displaying real-time road conditions
TWI454662B (en) * 2011-11-11 2014-10-01 Skyeyes Gps Technology Co Path planning system and the method thereof
CN103568763B (en) * 2013-10-28 2016-05-18 芜湖市顺昌汽车配件有限公司 A kind of vehicle driving control system and control method thereof
CN106205133B (en) * 2016-09-12 2018-09-25 深圳市海力特科技有限责任公司 The method for identifying urban road travel direction based on Floating Car GPS information
CN108091157B (en) * 2016-11-21 2021-07-30 阿里巴巴(中国)有限公司 A method and device for displaying road condition information
CN115979291A (en) * 2023-01-05 2023-04-18 长城汽车股份有限公司 Method, device, electronic device and vehicle for displaying map bar graph
CN117149930A (en) * 2023-08-29 2023-12-01 浙江中控信息产业股份有限公司 Structured road network data generation method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5991690A (en) * 1997-07-02 1999-11-23 Trimble Navigation Limited Navigation system incorporating simplified location display
CN1573296A (en) * 2003-06-05 2005-02-02 Lg电子株式会社 Apparatus and method for controlling traffic information display in navigation system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5991690A (en) * 1997-07-02 1999-11-23 Trimble Navigation Limited Navigation system incorporating simplified location display
CN1573296A (en) * 2003-06-05 2005-02-02 Lg电子株式会社 Apparatus and method for controlling traffic information display in navigation system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JP 特开2006-3089 A,全文.
JP特开2006-113013A 2006.04.27
JP特开平7-19889A 1995.01.20

Also Published As

Publication number Publication date
CN1932922A (en) 2007-03-21

Similar Documents

Publication Publication Date Title
US10809090B2 (en) Electronic map display method and apparatus
CN106777811B (en) A design and development method of traffic canalization map
EP3719449A1 (en) Driving condition specific sensor quality index
JP2021184243A (en) Road information data confirmation method, equipment and computer storage media
CN102903240A (en) Real-time traffic status sensing system based on vehicular Beidou positioning terminal
CN108204819B (en) Map data automatic detection method and device and hybrid navigation system
CN102054354B (en) Method for semi-automatically collecting and updating electronic map
CN1932922B (en) Method for Accurately Displaying Real-time Traffic Information
CN103389104A (en) A method of three-dimensional directional navigation synchronizing with two-dimensional navigation and an apparatus thereof
WO2015129365A1 (en) Automatic driving assistance system and method, and computer program
CN100452109C (en) Method for obtaining everage speed of city road section traffic flow
WO2020192123A1 (en) Method for improving accuracy of positioning traffic accident site
CN106355927A (en) GPS marker point determination method, trajectory optimization method and device
CN104281746A (en) Method for generating traffic safety road characteristic graphs on basis of point-cloud
US20120179366A1 (en) Map drawing device
CN104613975B (en) Method and apparatus, server and the system of streetscape figure are shown and sent in navigation
WO2021135147A1 (en) Electronic horizon creation method and system
CN103700259B (en) Real-time traffic method of discrimination
JP2019053394A (en) Automatic driving support device and computer program
CN108615385A (en) Road conditions appraisal procedure and device, vehicle and Cloud Server
CN108898862A (en) The determination method, apparatus and electronic equipment of traffic light intersection
CN111613050B (en) Road data processing method, device, equipment and storage medium
CN102401661A (en) Intelligent navigation robot
CN102645226A (en) Navigation method capable of being more accurate
WO2024066881A1 (en) Map navigation method and apparatus, and computer device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101006

Termination date: 20121027