一种提升交通事故地点定位准确率的方法A Method to Improve the Accuracy of Location Location of Traffic Accidents
技术领域Technical field
本发明属于智能交通技术领域,应用于交通事故地点的定位,具体涉及一种提升交通事故地点定位准确率的方法。The invention belongs to the technical field of intelligent transportation, is applied to the location of traffic accident locations, and specifically relates to a method for improving the location accuracy of traffic accident locations.
背景技术Background technique
近年来,随着我国城市化的逐步深入,经济的快速发展,机动车保有量迅速增长,城市的交通问题也越发突出,其中道路交通事故对城市交通运行的影响最大。发生道路交通事故后,交警需赶赴现场调查和处理事故,在出具的交通事故认定书中,交警需记录交通事故的发生位置和其他相关信息,这些信息不仅仅用于事故责任判定等法律事故,还用于城市交通事故黑点治理和交通安全预警等交通安全管理工作,随着城市交通安全形势越来越严峻,交通环境的治理和改善迫在眉睫。In recent years, with the gradual deepening of urbanization and rapid economic development in China, the number of motor vehicles has increased rapidly, and urban traffic problems have become more prominent. Among them, road traffic accidents have the greatest impact on urban traffic operations. After a road traffic accident occurs, the traffic police must rush to the scene to investigate and deal with the accident. In the traffic accident certification issued, the traffic police must record the location of the traffic accident and other related information. This information is not only used for accident liability determination and other legal accidents, It is also used for traffic safety management work such as urban traffic accident black spot management and traffic safety early warning. As the urban traffic safety situation becomes more and more severe, the governance and improvement of the traffic environment is imminent.
城市交通事故黑点治理,即通过对事故发生地点等信息的统计和分析,判断出事故高发、相对最为危险的道路和交叉口进行治理。这些需要进行安全改善和治理的区域被称为黑点,判断黑点需要基于大量的历史事故数据,因此需要将事故地点简洁有效地记录存储下来,进而将事故地点数据在电子地图上准确的定位和统计分析。据统计,经过复杂的事故地点记录的语义识别与人工整理,事故地点的定位率仅能够达到58%,剩余的地点记录完全无法定位。Urban traffic accident blackspot management is to determine the relatively most dangerous roads and intersections with high incidence of accidents through statistics and analysis of the location of the accident and other information. These areas that need safety improvement and governance are called black spots. The judgment of black spots needs to be based on a large amount of historical accident data. Therefore, the accident location needs to be recorded and stored concisely and effectively, and the accident location data can be accurately located on the electronic map. And statistical analysis. According to statistics, after complex semantic recognition and manual sorting of accident location records, the location rate of accident locations can only reach 58%, and the remaining location records cannot be located at all.
交通事故信息的记录均为文本信息,如“美丰路丽和苑门口”、“朝阳路珠江路西侧路段处”、“超华商贸城D区仓库门前通道”等,没有格式要求和限制,具有人为因素的模糊性,而且文本信息并不能直接在电子地图上得以体现,也难以被拆分为有效的可利用信息,而且事后很难被核实其所描述的真实的准确位置。The records of traffic accident information are all text information, such as "Meifeng Road Liheyuan Gate", "Chaoyang Road Zhujiang Road West Section", "Chaohua Trade City D District Warehouse Gate", etc., without format requirements and Restrictions, with the ambiguity of human factors, and the text information cannot be directly reflected on the electronic map, and it is difficult to split into effective usable information, and it is difficult to verify the true and accurate location described afterwards.
目前,针对交通事故地点定位的方法,专利CN200410044508提出一种实现汽车交通事故自动记录的方法,利用汽车上配置的无线通信设备上的IPV6地址确认事故发生地点。专利CN201320002998.X提出基于NFC与GPS的交通违章协管定位系统,采用移动定位终端和多个BFC热点之间的数据交互,获取交通事故的位置信息。专利CN201210297477.1提出交通事故地点语义表述信息的自动记录与定位方法,根据用户对路段、侧向、方位、距离、参照点等的选择实现地点记录和定位。At present, for the method of locating the location of traffic accidents, patent CN200410044508 proposes a method to realize automatic recording of automobile traffic accidents, using the IPV6 address on the wireless communication device configured on the car to confirm the location of the accident. Patent CN201320002998.X proposes a traffic violation coordination positioning system based on NFC and GPS, which uses data interaction between a mobile positioning terminal and multiple BFC hotspots to obtain location information of traffic accidents. Patent CN201210297477.1 proposes an automatic recording and positioning method for semantic representation information of traffic accident locations, which realizes location recording and positioning according to the user's selection of road sections, lateral directions, directions, distances, reference points, etc.
但专利CN200410044508和专利CN201320002998.X都是依赖于车载设备、移动定位终端和无限通信网络状况,不能普遍适用,同时,不能适用于交警的日常工作规范;专利CN201210297477.1的方法中,用户与系统的互动比较多,不适用与对事故文本信息的定位。However, the patent CN200410044508 and the patent CN201320002998.X both rely on vehicle equipment, mobile positioning terminals and wireless communication network conditions, and cannot be universally applied. At the same time, they cannot be applied to the daily work specifications of traffic police; in the method of patent CN201210297477.1, users and systems There are many interactions, which is not applicable to the positioning of the accident text information.
发明内容Summary of the invention
本发明的目的在于提供一种提升交通事故地点定位准确率的方法,该方法可解决现有交通事故地点定位不准确的问题,具体技术方案如下:The purpose of the present invention is to provide a method for improving the accuracy of the location of traffic accidents, which can solve the problem of inaccurate location of the existing traffic accident locations. The specific technical solutions are as follows:
一种提升交通事故地点定位准确率的方法,所述方法根据交通事故信息记录的事故发生位置的文本消息,通过分词的方法提取关键地理位置信息,结合城市地图shpefile文件和城市兴趣点POI利用空间算法确定事故发生的具体位置,具体包括步骤:A method for improving the accuracy of traffic accident location location. The method extracts key geographic location information through word segmentation based on the text message of the accident location recorded by the traffic accident information, and combines the city map shpefile file and the city point of interest POI utilization space The algorithm determines the specific location of the accident, including the following steps:
S1、提取交通事故信息记录中事故发生位置的文本信息;S1. Extract the text information of the accident location in the traffic accident information record;
S2、根据交通事故信息记录中的事故发生地点,对文本信息进行分词处理,提取得到事故发生地点中道路、建筑、门店等具有标志性的地点名称信息;S2, according to the accident location in the traffic accident information record, perform word segmentation processing on the text information, and extract the landmark location name information such as roads, buildings, and stores in the accident location;
S3、判断所述地点名称信息中是否包含道路信息,若有,则将分词处理后得到的所有道路对应的道路名称作为集合L
i={L
1,L
2,L
3,...,L
i},并将除道路名称 外的所有地点名称信息作为集合P
i={P
1,P
2,P
3,...,P
i},进入步骤S4;若没有,则直接提取交通事故信息记录中的POI点坐标或多个POI点坐标的重心点作为对应交通事故的地点坐标;
S3. Determine whether the location name information includes road information, and if so, use the road names corresponding to all roads obtained after word segmentation as a set Li = {L 1 ,L 2 ,L 3 ,...,L i }, and take all location name information except road names as a set P i ={P 1 ,P 2 ,P 3 ,...,P i }, go to step S4; if not, directly extract traffic accident information The POI point coordinates in the record or the center of gravity of multiple POI point coordinates are used as the location coordinates of the corresponding traffic accident;
S4、基于道路信息判断道路数量,若道路数量仅有一条,则通过道路名称与地图shpefile文件、POI点坐标的结合,利用POI点投影到道路的方法获得交通事故的地点坐标;若道路数量有两条,则通过道路名称结合shpefile文件,利用空间算法获得所有道路之间的交叉点,计算所述交叉点组成多边形的重心坐标,将所述重心坐标作为对应交通事故的地点坐标。S4. Judge the number of roads based on the road information. If there is only one road, use the method of combining the road name with the map shpefile and POI point coordinates to obtain the location coordinates of the traffic accident by projecting the POI points onto the road; if the number of roads is there If there are two, the road name is combined with the shpefile file to obtain the intersection points between all roads using a spatial algorithm, and the center of gravity coordinates of the polygon formed by the intersections are calculated, and the center of gravity coordinates are used as the location coordinates of the corresponding traffic accident.
进一步的,步骤S3中,若所述地点名称信息中不包含道路消息,则通过WEB地图服务供应商的地理编码API解析、POI词库匹配等途径获得建筑、门店等POI坐标,得到的POI坐标即作为事故地点坐标;若在事故地点信息中包含不止一个POI,则取这些POI的重心点作为交通事故的地点坐标。Further, in step S3, if the location name information does not contain road information, the POI coordinates of buildings, stores, etc. are obtained through the geocoding API analysis of the WEB map service provider, POI thesaurus matching, etc., and the obtained POI coordinates That is, as the coordinates of the accident location; if more than one POI is included in the accident location information, take the center of gravity of these POIs as the location coordinates of the traffic accident.
进一步的,步骤S4中,若地点名称信息中只包含一条道路,交通事故的地点坐标确定方法为:Further, in step S4, if the location name information contains only one road, the method for determining the location coordinates of the traffic accident is:
A、利用故信息中的建筑、门店等信息,通过WEB地图服务供应商的地理编码API解析、POI词库匹配等途径获得建筑、门店等POI点坐标;A. Use the building, store and other information in the old information to obtain the POI point coordinates of the building, store, etc. through the geocoding API analysis of the WEB map service provider, POI thesaurus matching, etc.;
B、提取道路名称,结合地图shpefile文件,得到关于该道路名称的所有路段集合;B. Extract the road name and combine with the map shpefile file to obtain a collection of all road sections about the road name;
C、遍历所有路段集合,计算POI点坐标到交通事故发生路段的距离,取最短距离的路段作为目标道路;C. Traverse all the road section sets, calculate the distance from the POI point coordinates to the road section where the traffic accident occurred, and take the road section with the shortest distance as the target road;
D、获取目标路段的两个端点坐标,将POI点投影到该路段上,得到的投影点位坐标即为事故地点坐标。D. Obtain the coordinates of the two end points of the target road section, and project the POI point onto the road section. The obtained projection point coordinates are the coordinates of the accident site.
进一步的,步骤S4中,若地点名称信息中只包含两条道路,交通事故的地点坐标确定方法为:Further, in step S4, if the location name information contains only two roads, the method for determining the location coordinates of the traffic accident is:
a、提取两条道路名称,结合地图shpefile文件,得到关于两条道路的所 有路段集合L
i={L
1,L
2,L
3,...,L
i};
a, extracting two road name, binding shpefile map file, get all links set on two roads L i = {L 1, L 2, L 3, ..., L i};
b、采用遍历的方法,遍历两条道路的所有路段,获取相交路段集合L′
i={L′
1,L′
2,L′
3,...,L′
i},并计算所有交叉点坐标;
b. Using the traversal method, traverse all the road sections of the two roads, obtain the set of intersecting road sections L′ i ={L′ 1 ,L′ 2 ,L′ 3 ,...,L′ i }, and calculate all the intersections coordinate;
c、判断交叉点个数个数,若所述交叉点个数小于3,则事故地点坐标即为交叉点坐标的平均值;若交叉点个数不小于3,则事故地点坐标为交叉点组成的多边形的重心点坐标。c. Judge the number of intersections. If the number of intersections is less than 3, the coordinates of the accident site are the average of the intersection coordinates; if the number of intersections is not less than 3, the coordinates of the accident site are composed of intersections The coordinates of the center of gravity of the polygon.
进一步的,所述交叉点个数小于3时交通事故的地点坐标计算公式为:Further, the calculation formula for the location coordinates of the traffic accident when the number of intersections is less than 3 is:
其中,X、Y分别为交通事故地点坐标的横坐标数值和纵坐标数值,假设两条道路的交叉点分别为M、N,则X
M、Y
M和X
N、Y
N交叉点M、N的横坐标数值和纵坐标数值;
Among them, X and Y are the abscissa and ordinate values of the coordinates of the traffic accident location respectively. Assuming that the intersection of two roads is M and N respectively, then X M , Y M and X N , Y N intersection M, N The abscissa value and ordinate value of;
所述交叉点个数大于等于3时交通事故的地点坐标计算公式为:The calculation formula for the location coordinates of a traffic accident when the number of intersections is greater than or equal to 3 is:
其中,n为交叉点个数。
Among them, n is the number of intersections.
本发明的提升交通事故地点定位准确率的方法,通过记录交通事故信息记录的事故发生位置的文本信息做分词处理后得到地点名称信息,在此基础上结合城市地图shpefile文件和城市兴趣点POI,利用空间算法确定事故发生 的具体位置;其中,若地点名称信息中不包含相关道路名称时,则直接通过交通事故信息记录中的POI坐标点来进行事故发生地点坐标的获取;若地点名称信息中包含相关道路名称时,则需通过WEB地图服务供应商的地理编码API解析、POI词库匹配等途径获得建筑、门店等POI坐标,得到的POI坐标即作为事故地点坐标,利用空间算法确定事故地点坐标;与现有技术相比,本发明改变了获取事故定位信息需依靠外界设备的现状,解决了现有交通事故地点定位不准确的问题;同时,本发明可以通过事故信息记录中的位置信息,结合城市地图shpfile文件和城市POI点,确定交通事故的空间位置;为城市事故统计、事故黑点排查、事故预警等分析提供数据支撑。The method for improving the location accuracy of a traffic accident location of the present invention is to obtain location name information after word segmentation processing by recording the text information of the accident location recorded by the traffic accident information, and on this basis, combining the city map shpefile file and the city point of interest POI, Use spatial algorithms to determine the specific location of the accident; among them, if the location name information does not contain the relevant road name, the POI coordinate points in the traffic accident information record are directly used to obtain the coordinates of the accident location; if the location name information is When the relevant road name is included, it is necessary to obtain the POI coordinates of buildings, stores, etc. through the geocoding API analysis of the WEB map service provider, POI thesaurus matching, etc. The obtained POI coordinates are used as the coordinates of the accident location, and the space algorithm is used to determine the accident location Coordinates; Compared with the prior art, the present invention changes the current situation of relying on external equipment to obtain accident location information, and solves the problem of inaccurate location of the existing traffic accident location; at the same time, the present invention can use the location information in the accident information record , Combined with city map shpfile files and city POI points to determine the spatial location of traffic accidents; provide data support for city accident statistics, accident black spot investigation, accident warning and other analysis.
附图说明Description of the drawings
图1为本发明实施例中所述提升交通事故地点定位准确率的方法的流程框框图示意;FIG. 1 is a schematic block diagram of the flow of the method for improving the accuracy of the location of a traffic accident according to an embodiment of the present invention;
图2~图6为本发明实施例中地点名称信息含有不同数量道路的交通事故地点坐标求解示意图。2 to 6 are schematic diagrams of solving the coordinates of traffic accident locations where the location name information contains different numbers of roads in an embodiment of the invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present invention.
参阅图1,在本发明实施例中,提供了一种提升交通事故地点定位准确率的方法,所述方法根据交通事故信息记录的事故发生位置的文本消息,通过分词的方法提取关键地理位置信息,结合城市地图shpefile文件和城市兴趣点POI利用空间算法确定事故发生的具体位置,具体包括步骤:Referring to FIG. 1, in an embodiment of the present invention, a method for improving the location accuracy of a traffic accident location is provided. The method extracts key geographic location information by word segmentation according to the text message of the accident location recorded by the traffic accident information , Combining the city map shpefile file and the city point of interest POI to use the spatial algorithm to determine the specific location of the accident, including the following steps:
S1、提取交通事故信息记录中事故发生位置的文本信息。S1. Extract the text information of the accident location in the traffic accident information record.
S2、根据交通事故信息记录中的事故发生地点,对文本信息进行分词处 理,提取得到事故发生地点中道路、建筑、门店等具有标志性的地点名称信息;例如“萧林路”、“中华路”、“苏果超市”、“大润发”等。S2. According to the accident location in the traffic accident information record, perform word segmentation on the text information, and extract the landmark location name information such as roads, buildings, and stores in the accident location; for example, "Xiaolin Road", "Zhonghua Road" ", "Suguo Supermarket", "RT-Mart", etc.
S3、判断地点名称信息中是否包含道路信息,若有,则将分词处理后得到的所有道路对应的道路名称作为集合L
i={L
1,L
2,L
3,...,L
i},并将除道路名称外的所有地点名称信息作为集合P
i={P
1,P
2,P
3,...,P
i},进入步骤S4;若没有,则直接提取交通事故信息记录中的POI点坐标或多个POI点坐标的重心点作为对应交通事故的地点坐标,具体的,通过WEB地图服务供应商的地理编码API解析、POI词库匹配等途径获得建筑、门店等POI坐标,得到的POI坐标即作为事故地点坐标;若在事故地点信息中包含不止一个POI,则取这些POI的重心点作为交通事故的地点坐标。
S3. Determine whether the location name information contains road information, and if so, use the road names corresponding to all roads obtained after word segmentation as a set Li = {L 1 ,L 2 ,L 3 ,...,L i } , And take all location name information except road names as the set P i ={P 1 ,P 2 ,P 3 ,...,P i }, go to step S4; if not, directly extract the traffic accident information record The POI point coordinates or the center of gravity of multiple POI point coordinates are used as the location coordinates corresponding to the traffic accident. Specifically, the POI coordinates of buildings, stores, etc., are obtained through the geocoding API analysis of the WEB map service provider, POI word database matching, etc., The obtained POI coordinates are the coordinates of the accident location; if more than one POI is included in the accident location information, the center of gravity of these POIs is taken as the location coordinates of the traffic accident.
S4、基于道路信息判断道路数量,若道路数量仅有一条,则通过道路名称与地图shpefile文件、POI点坐标的结合,利用POI点投影到道路的方法获得交通事故的地点坐标;若道路数量有两条,则通过道路名称结合shpefile文件,利用空间算法获得所有道路之间的交叉点,计算交叉点组成多边形的重心坐标,将重心坐标作为对应交通事故的地点坐标。S4. Judge the number of roads based on the road information. If there is only one road, use the method of combining the road name with the map shpefile and POI point coordinates to obtain the location coordinates of the traffic accident by projecting the POI points onto the road; if the number of roads is there For two, the intersections between all roads are obtained by the road name combined with the shpefile file, and the spatial algorithm is used to calculate the center of gravity coordinates of the polygon that forms the intersection, and the center of gravity coordinates are used as the coordinates of the location of the corresponding traffic accident.
在实施例中,若地点名称信息中只包含一条道路,交通事故的地点坐标确定方法为:In the embodiment, if only one road is included in the location name information, the method for determining the location coordinates of the traffic accident is:
首先,利用故信息中的建筑、门店等信息,通过WEB地图服务供应商的地理编码API解析、POI词库匹配等途径获得建筑、门店等POI点坐标;然后,提取道路名称,结合地图shpefile文件,得到关于该道路名称的所有路段集合;随后,遍历所有路段集合,计算POI点坐标到交通事故发生路段的距离,取最短距离的路段作为目标道路;最后,获取目标路段的两个端点坐标,将POI点投影到该路段上,得到的投影点位坐标即为事故地点坐标;参阅图1,假设交通事故的事发地点为O,路段AB和路段CD为同一条道路的上下行,路段AB的端点坐标分别为A(X
A,Y
A)、B(X
B,Y
B),路段CD的端点坐标 分别为C(X
C,Y
C)、D(X
D,Y
D);坐标点P(P
X,P
Y)为POI点中到路段AB最短距离的点,则事发地点O(X,Y)的横坐标数值X和纵坐标数值Y的求解公式为:
First, use the building, store and other information in the old information to obtain the POI point coordinates of the building, store, etc. through the geocoding API analysis of the WEB map service provider, POI vocabulary matching, etc.; then, extract the road name and combine the map shpefile file , Get the set of all road sections about the road name; then, traverse all the road section sets, calculate the distance from the POI point coordinates to the road section where the traffic accident occurs, and take the shortest distance road section as the target road; finally, get the two end coordinates of the target road section, Project the POI point onto the road section, and the obtained projected point coordinates are the coordinates of the accident location; refer to Figure 1, assuming that the accident location of the traffic accident is O, road section AB and road section CD are the same road up and down, road section AB The endpoint coordinates of are respectively A(X A ,Y A ), B(X B ,Y B ), and the endpoint coordinates of road section CD are C(X C ,Y C ), D(X D ,Y D ); coordinate points P(P X , P Y ) is the point with the shortest distance from the road section AB in the POI point, and the solution formula for the abscissa value X and the ordinate value Y of the incident location O(X,Y) is:
其中,k
AB为路段AB的斜率。
Among them, k AB is the slope of section AB.
在具体实施例中,若地点名称信息中只包含两条道路,交通事故的地点坐标确定方法为:In a specific embodiment, if only two roads are included in the location name information, the method for determining the location coordinates of a traffic accident is:
首先,提取两条道路名称,结合地图shpefile文件,得到关于两条道路的所有路段集合L
i={L
1,L
2,L
3,...,L
i};然后,采用遍历的方法,遍历两条道路的所有路段,获取相交路段集合L′
i={L′
1,L′
2,L′
3,...,L′
i},并计算所有交叉点坐标;最后,判断交叉点个数个数,若交叉点个数小于3,则事故地点坐标即为交叉点坐标的平均值;若交叉点个数不小于3,则事故地点坐标为交叉点组成的多边形的重心点坐标。
First, extract the road name two, binding shpefile map file, get all links set on two roads L i = {L 1, L 2, L 3, ..., L i}; then traversal method, Traverse all the sections of the two roads, obtain the set of intersecting sections L′ i ={L′ 1 ,L′ 2 ,L′ 3 ,...,L′ i }, and calculate the coordinates of all the intersections; finally, determine the intersection If the number of intersections is less than 3, the coordinates of the accident site are the average of the coordinates of the intersections; if the number of intersections is not less than 3, the coordinates of the accident site are the coordinates of the center of gravity of the polygon formed by the intersections.
参阅图3,若道路AB和道路EF之间的含有一个交叉点M,其中路段AB的端点坐标分别为A(X
A,Y
A)、B(X
B,Y
B),路段EF端点坐标分别为、E(X
E,Y
E)、F(X
F,Y
F),交叉点M的坐标M(X
M,Y
M)的横坐标值X
M和纵坐标值Y
M的求解公式分别为:
Referring to Figure 3, if there is an intersection M between the road AB and the road EF, the end coordinates of the road section AB are A(X A ,Y A ) and B(X B ,Y B ), and the end coordinates of the road section EF are respectively For, E(X E ,Y E ), F(X F ,Y F ), the formulas for solving the abscissa value X M and the ordinate value Y M of the coordinate M (X M , Y M ) of the intersection M are respectively :
其中,k
AB为路段AB的斜率,k
EF为路段EF的斜率。
Among them, k AB is the slope of section AB, and k EF is the slope of section EF.
若交通事故发生在一条道路为双行道、一条为单行道转为双行道的位置,参阅图4,两条道路之间存在3个交叉点,具体的,路段EF与路段HI为同一条道路的上下行,路段AM与路段BN、路段DK为同一条道路,路段AM 为单行道,路段BN和路段DK为同一条道路的上下行,M(X
M,Y
M)为路段AM与路段EF的交叉点坐标,N(X
N,Y
N)为路段BN与路段HI的交叉点坐标,K(X
K,Y
K)为路段DK与路段HI的交叉点,O(X,Y)为事故地点坐标;此时,交通事故的地点坐标计算公式为:
If a traffic accident occurs at a location where one road is a two-way road, and the other is a one-way road that turns into a two-way road, refer to Figure 4. There are three intersections between the two roads. Specifically, section EF and section HI are on the same road. Up and down, section AM is the same road as section BN and section DK, section AM is a one-way street, section BN and section DK are the same road up and down, M (X M , Y M ) is the difference between section AM and section EF Intersection coordinates, N (X N , Y N ) is the intersection coordinate of road section BN and road section HI, K (X K , Y K ) is the intersection point of road section DK and road section HI, O (X, Y) is the accident location Coordinates; at this time, the calculation formula for the location coordinates of a traffic accident is:
其中,n为交叉点个数。
Among them, n is the number of intersections.
参阅图5,在其他实施例中,若两条道路均为双行道,即路段AB与路段CD为同一条道路的上下行,路段EF与路段HI为同一条道路的上下行,M(X
M,Y
M)为路段AB与路段EF的交叉点坐标,N(X
N,Y
N)为路段AB与路段HI的交叉点坐标,G(X
G,Y
G)为路段CD与路段EF的交叉点坐标,K(X
K,Y
K)为路段CD与路段HI的交叉点坐标,O(X,Y)为事故地点坐标;同样的,采用公式:
Referring to Figure 5, in other embodiments, if the two roads are both two-lane roads, that is, section AB and section CD are the up and down lines of the same road, section EF and section HI are the up and down lines of the same road, M(X M ,Y M ) is the coordinate of the intersection of road section AB and section EF, N(X N ,Y N ) is the coordinate of the intersection of road section AB and section HI, G(X G ,Y G ) is the intersection of road section CD and road section EF Point coordinates, K (X K , Y K ) is the coordinate of the intersection of road section CD and road section HI, and O (X, Y) is the coordinates of the accident location; the same formula is used:
和
进行 O(X,Y)的横坐标X和纵坐标Y的值求取,获得交通事故的地点坐标。
with Calculate the values of the abscissa X and ordinate Y of O(X, Y) to obtain the location coordinates of the traffic accident.
参阅图6,当两条道路中含有一条单行道AB,另一条为包含路段EF和路段HI上下行的道路,单行道AB路路段EF和路段HI的交叉点分别为M、N,且两个交叉点的横纵坐标值分别为X
M、Y
M和X
N、Y
N,则可得到交通事故的地点坐标O(X,Y),则横坐标数值X和纵坐标数值Y的求解公式为:
Refer to Figure 6, when two roads contain a one-way road AB, and the other is a road that includes the up and down roads EF and HI, the intersection of the one-way AB road section EF and the road section HI is M, N, and two The abscissa and ordinate values of the intersection are X M , Y M and X N , Y N , then the location coordinates of the traffic accident O(X,Y) can be obtained, and the solution formula for the abscissa value X and the ordinate value Y is :
获得的坐标点O(X,Y)即交通事故的坐标地点。
The obtained coordinate point O(X, Y) is the coordinate location of the traffic accident.
本发明的提升交通事故地点定位准确率的方法,通过记录交通事故信息记录的事故发生位置的文本信息做分词处理后得到地点名称信息,在此基础上结合城市地图shpefile文件和城市兴趣点POI,利用空间算法确定事故发生的具体位置;其中,若地点名称信息中不包含相关道路名称时,则直接通过交通事故信息记录中的POI坐标点来进行事故发生地点坐标的获取;若地点名称信息中包含相关道路名称时,则需通过WEB地图服务供应商的地理编码API解析、POI词库匹配等途径获得建筑、门店等POI坐标,得到的POI坐标即作为事故地点坐标,利用空间算法确定事故地点坐标;与现有技术相比,本发明改变了获取事故定位信息需依靠外界设备的现状,解决了现有交通事故地点定位不准确的问题;同时,本发明可以通过事故信息记录中的位置信息,结合城市地图shpfile文件和城市POI点,确定交通事故的空间位置;为城市事故统计、事故黑点排查、事故预警等分析提供数据支撑。The method for improving the location accuracy of a traffic accident location of the present invention is to obtain location name information after word segmentation processing by recording the text information of the accident location recorded by the traffic accident information, and combining the city map shpefile file and the city point of interest POI on this basis, Use spatial algorithms to determine the specific location of the accident; among them, if the location name information does not contain the relevant road name, the POI coordinate points in the traffic accident information record are directly used to obtain the coordinates of the accident location; if the location name information is When the relevant road name is included, it is necessary to obtain the POI coordinates of buildings, stores, etc. through the geocoding API analysis of the WEB map service provider, POI thesaurus matching, etc. The obtained POI coordinates are used as the coordinates of the accident location, and the space algorithm is used to determine the accident location Coordinates; Compared with the prior art, the present invention changes the current situation of relying on external equipment to obtain accident location information, and solves the problem of inaccurate location of the existing traffic accident location; at the same time, the present invention can use the location information in the accident information record , Combined with city map shpfile files and city POI points to determine the spatial location of traffic accidents; provide data support for city accident statistics, accident black spot investigation, accident warning and other analysis.
以上仅为本发明的较佳实施例,但并不限制本发明的专利范围,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员而言,其依然可以对前述各具体实施方式所记载的技术方案进行修改,或者对其中部 分技术特征进行等效替换。凡是利用本发明说明书及附图内容所做的等效结构,直接或间接运用在其他相关的技术领域,均同理在本发明专利保护范围之内。The above are only the preferred embodiments of the present invention, but do not limit the scope of the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, for those skilled in the art, they can still comment on the foregoing specific The technical solutions recorded in the implementation manners are modified, or some of the technical features are equivalently replaced. Any equivalent structure made by using the contents of the specification and drawings of the present invention, directly or indirectly used in other related technical fields, is similarly within the protection scope of the present invention.