Method and apparatus for generating information

文档序号:1887004 发布日期:2021-11-26 浏览:21次 中文

阅读说明:本技术 用于生成信息的方法和装置 (Method and apparatus for generating information ) 是由 张时乐 吴金霖 于 2020-05-20 设计创作,主要内容包括:本申请公开了用于生成信息的方法和装置,涉及电子地图技术领域。具体实现方案为:获取目标位置的初始经纬度信息;确定初始经纬度信息对应的初始位置信息,其中,初始位置信息包括初始经纬度信息所属路段的初始路段标识;响应于确定出初始路段标识为主路的主路段标识,从预设的数据库中获取与已确定为主路段标识的初始路段标识对应的至少一个辅路段标识;基于所获取的至少一个辅路段标识,修正初始位置信息,得到目标位置的最终位置信息。该实现方式在确定出目标位置的初始经纬度信息所属路段为主路段时,可以利用预先建立的主路段标识和辅路段标识的对应关系,自动修正初始经纬度信息,提高了得到的最终位置信息的准确性。(The application discloses a method and a device for generating information, and relates to the technical field of electronic maps. The specific implementation scheme is as follows: acquiring initial longitude and latitude information of a target position; determining initial position information corresponding to the initial longitude and latitude information, wherein the initial position information comprises an initial road section identifier of a road section to which the initial longitude and latitude information belongs; in response to determining that the initial road segment identifier is the main road segment identifier of the main road, acquiring at least one auxiliary road segment identifier corresponding to the initial road segment identifier determined as the main road segment identifier from a preset database; and correcting the initial position information based on the acquired at least one auxiliary road section identifier to obtain final position information of the target position. When the realization mode determines that the road section to which the initial longitude and latitude information of the target position belongs is the main road section, the initial longitude and latitude information can be automatically corrected by utilizing the pre-established corresponding relation between the main road section identification and the auxiliary road section identification, and the accuracy of the obtained final position information is improved.)

1. A method for generating information, comprising:

acquiring initial longitude and latitude information of a target position;

determining initial position information corresponding to the initial longitude and latitude information, wherein the initial position information comprises an initial road section identifier of a road section to which the initial longitude and latitude information belongs;

in response to determining that the initial road segment identifier is a main road segment identifier of a main road, acquiring at least one auxiliary road segment identifier corresponding to the initial road segment identifier determined as the main road segment identifier from a preset database, wherein each main road segment identifier is set in the database corresponding to at least one auxiliary road segment identifier meeting preset conditions;

and correcting the initial position information based on the acquired at least one auxiliary road section identifier to obtain final position information of the target position.

2. The method according to claim 1, wherein the modifying the initial position information based on the acquired at least one auxiliary road segment identifier to obtain final position information of the target position comprises:

determining a target positioning point from the auxiliary road sections indicated by the acquired at least one auxiliary road section identification, wherein the target positioning point is a position point with the minimum distance from the position point indicated by the initial longitude and latitude information in each auxiliary road section;

determining longitude and latitude information corresponding to the target positioning point as target longitude and latitude information;

determining theoretical position information of the target position based on the target longitude and latitude information;

and determining the theoretical position information as final position information of the target position.

3. The method of claim 2, wherein the determining theoretical position information for the target location based on the target longitude and latitude information comprises:

and sending the target longitude and latitude information to the map platform so that the map platform determines a target auxiliary road section identification corresponding to the target longitude and latitude information, updates the target longitude and latitude information based on the target auxiliary road section identification, and determines theoretical position information of the target position based on the updated target longitude and latitude information.

4. The method according to claim 1, wherein the database includes a plurality of main segment identifiers and auxiliary segment identifiers provided in correspondence with the respective main segment identifiers;

the database is obtained by the following steps:

acquiring a plurality of main road section identifications and a plurality of auxiliary road section identifications;

for a main road section identifier in the plurality of main road section identifiers, determining an auxiliary road section of which the distance between the main road section identifier and the main road section indicated by the main road section identifier is smaller than a preset threshold value;

and correspondingly setting the determined auxiliary road section identification of the auxiliary road section and the main road section identification to generate the database.

5. The method according to one of claims 1-4, wherein the method further comprises:

determining the initial position information as final position information of the target position in response to determining that the initial road segment identification is not a main road segment identification.

6. An apparatus for generating information, comprising:

a first acquisition unit configured to acquire initial longitude and latitude information of a target location;

a first determining unit configured to determine initial position information corresponding to the initial longitude and latitude information, wherein the initial position information includes an initial road segment identifier of a road segment to which the initial longitude and latitude information belongs;

a second obtaining unit configured to, in response to determining that the initial segment identifier is a main segment identifier of a main road, obtain, from a preset database, at least one auxiliary segment identifier corresponding to the initial segment identifier determined as a main segment identifier, wherein each of the main segment identifiers is set in correspondence with at least one auxiliary segment identifier satisfying a preset condition in the database;

and the correcting unit is configured to correct the initial position information based on the acquired at least one auxiliary road section identifier to obtain final position information of the target position.

7. The apparatus of claim 6, wherein the correction unit comprises:

a first determining module configured to determine a target positioning point from the secondary road segments indicated by the acquired at least one secondary road segment identifier, wherein the target positioning point is a position point with a minimum distance between each secondary road segment and a position point indicated by the initial longitude and latitude information;

a second determination module configured to determine longitude and latitude information corresponding to the target location point as target longitude and latitude information;

a sending module configured to determine theoretical position information of the target position based on the target longitude and latitude information;

a third determination module configured to determine the theoretical position information as final position information of the target position.

8. The apparatus of claim 7, wherein the transmitting module is further configured to:

and sending the target longitude and latitude information to the map platform so that the map platform determines a target auxiliary road section identification corresponding to the target longitude and latitude information, updates the target longitude and latitude information based on the target auxiliary road section identification, and determines theoretical position information of the target position based on the updated target longitude and latitude information.

9. The apparatus of claim 6, wherein the database comprises a plurality of main road segment identifiers and auxiliary road segment identifiers provided in correspondence with each of the main road segment identifiers;

the database is obtained by the following steps:

acquiring a plurality of main road section identifications and a plurality of auxiliary road section identifications;

for a main road section identifier in the plurality of main road section identifiers, determining an auxiliary road section of which the distance between the main road section identifier and the main road section indicated by the main road section identifier is smaller than a preset threshold value;

and correspondingly setting the determined auxiliary road section identification of the auxiliary road section and the main road section identification to generate the database.

10. The apparatus according to one of claims 6-9, wherein the apparatus further comprises:

a second determination unit configured to determine the initial position information as final position information of the target position in response to determining that the initial road segment identification is not a main road segment identification.

11. An electronic device, comprising:

at least one processor; and

a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,

the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.

12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-5.

Technical Field

The embodiment of the disclosure relates to the technical field of computers, in particular to the technical field of electronic maps.

Background

The main road usually refers to a road bearing the main pressure of urban traffic, and the main road usually only can drive motor vehicles. The auxiliary road generally refers to an auxiliary road of the main road, and is often adjacent to two sides or one side of the main road, and is a one-way or two-way driving road parallel to the main road. The auxiliary road is generally narrower than the main road, and motor vehicles, non-motor vehicles and pedestrians can travel in a mixed manner.

In general, the main road and the secondary road are closer to each other, so that when the specific positions of the addresses are located in the main road and the secondary road through the latitude and longitude information, even if the latitude and longitude information has a small deviation, the address of the secondary road is located in the main road. As an example, in a scene such as logistics, if there is a latitude and longitude information deviation in a receiving address of a user, it is highly likely that the receiving address that should be located on a side road is located on a main road, which tends to reduce the delivery efficiency of a courier.

Disclosure of Invention

A method, apparatus, device, and storage medium for generating information are provided.

According to a first aspect, there is provided a method for generating information, the method comprising: acquiring initial longitude and latitude information of a target position; determining initial position information corresponding to the initial longitude and latitude information, wherein the initial position information comprises an initial road section identifier of a road section to which the initial longitude and latitude information belongs; in response to determining that the initial road segment identifier is the main road segment identifier of the main road, acquiring at least one auxiliary road segment identifier corresponding to the initial road segment identifier determined as the main road segment identifier from a preset database, wherein each main road segment identifier is arranged in the database corresponding to at least one auxiliary road segment identifier meeting preset conditions; and correcting the initial position information based on the acquired at least one auxiliary road section identifier to obtain final position information of the target position.

According to a second aspect, there is provided an apparatus for generating information, the apparatus comprising: a first acquisition unit configured to acquire initial longitude and latitude information of a target location; the device comprises a first determining unit, a second determining unit and a third determining unit, wherein the first determining unit is configured to determine initial position information corresponding to initial longitude and latitude information, and the initial position information comprises an initial road section identification of a road section to which the initial longitude and latitude information belongs; a second obtaining unit configured to obtain, in response to determining that the initial road segment identifier is a main road segment identifier of the main road, at least one auxiliary road segment identifier corresponding to the initial road segment identifier determined as the main road segment identifier from a preset database, wherein each main road segment identifier is set in correspondence with at least one auxiliary road segment identifier satisfying a preset condition in the database; and the correcting unit is configured to correct the initial position information based on the acquired at least one auxiliary road section identification to obtain final position information of the target position.

In a third aspect, an electronic device is provided, which includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above method.

In a fourth aspect, a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the above method is provided.

According to the technology of the application, the problem that the position of the auxiliary road is positioned to the main road due to the fact that the longitude and latitude information is deviated is solved, and the accuracy of the obtained position information is improved.

It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.

Drawings

The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:

FIG. 1 is a schematic diagram of a first embodiment of a method for generating information according to the present application;

FIG. 2 is a schematic diagram according to one implementation of a method for generating information in a first embodiment;

FIG. 3 is a schematic diagram of a second embodiment of a method for generating information according to the present application;

FIG. 4 is a schematic diagram of an embodiment of an apparatus for generating information according to the present application;

fig. 5 is a block diagram of an electronic device for implementing a method for generating information according to an embodiment of the present application.

Detailed Description

The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.

Referring to fig. 1, a schematic diagram of a first embodiment of a method for generating information according to the present application is shown. The method for generating information may comprise the steps of:

step 101, obtaining initial longitude and latitude information of a target position.

In this embodiment, the executing body of the method for generating information may be the apparatus for generating information, and the method for generating information may be an electronic entity (for example, a server), or may also be an application program integrated by software. When the device for generating the information is used, the initial longitude and latitude information of the target position can be obtained, and the obtained initial longitude and latitude information is corrected to obtain the final position information of the target position. The apparatus for generating information may determine final location information of the target location by using the method for generating information of the present embodiment.

In this embodiment, the execution subject (e.g., the server) may acquire the initial longitude and latitude information of the target location from another electronic device through a wired connection manner or a wireless connection manner. Here, the initial latitude and longitude information may include coordinate points consisting of the latitude and longitude of the target position. The target location may include, but is not limited to, a location indicated by a physical distribution shipping address. As an example, when a user inputs a target location indicated by a logistics receiving address and the like through a mobile phone positioning and the like, initial longitude and latitude information of the target location can be directly uploaded to the execution main body, and the execution main body can directly acquire the initial longitude and latitude information of the target location; or, after different users input target positions such as logistics receiving addresses through mobile phone positioning and the like, the target positions can be sent to the same system and the same electronic device, and the execution main body can obtain initial longitude and latitude information of the target positions.

Typically, the target location may be a delivery address for the stream. It is understood that in a complex scenario where there are major roads and minor roads, the destination of the logistics is usually not on the major road used only for driving the vehicle. As an example, in the logistics listing system, if the initial longitude and latitude information of the target position is identified to the main road, the logistics listing system may plan to the main road when performing the route planning, so that the distributor may go wrong if performing the distribution according to the route planning. Therefore, if the execution main body determines that the target position is located in the main road, it can be determined that the initial longitude and latitude information of the target position has an error, and at this time, the longitude and latitude information of the target position needs to be corrected, so as to obtain accurate position information of the target position. Of course, the method for generating information disclosed in the present application is not only applicable to a logistics scenario, but also applicable to other scenarios in which a main road does not exist theoretically at a position point indicated by initial position information of a target position, for example, a user taxi taking scenario.

And 102, determining initial position information corresponding to the initial longitude and latitude information.

In this embodiment, based on the initial longitude and latitude information acquired in step 101, the execution subject may determine the initial position information corresponding to the acquired initial longitude and latitude information by various means. As an example, the execution main body locally stores a corresponding relationship between longitude and latitude information and position information, and at this time, the execution main body may directly determine the initial position information corresponding to the initial longitude and latitude information from the local. Or, the execution main body may further send the acquired initial longitude and latitude information to the map platform, so that the map platform may acquire initial position information corresponding to the initial longitude and latitude information, and the execution main body may acquire the initial position information from the map platform. The initial location information may indicate a specific geographical location of the target location in the actual area. The initial position information may include a road section identifier of a road section to which the initial longitude and latitude information belongs, and the road section identifier is determined as an initial road section identifier of the target position. It is understood that the initial location information may include a road name, a road grade, and the like of a road segment to which the initial longitude and latitude information belongs, in addition to the initial road segment identifier. For a piece of position information, a unique position point can be determined in the actual road by using the position information.

It will be appreciated that for any road, the road may be divided into successive links, each of which may correspond to a latitude and longitude coordinate range. Further, in order to distinguish the respective links, different identification IDs may be set for different links. Therefore, the road section to which the longitude and latitude coordinates belong and the identification of the road section can be determined according to the longitude and latitude coordinates. However, for a certain longitude and latitude coordinate, if the longitude and latitude coordinate is located on a main road or a side road close to the main road, it is often difficult to accurately determine whether the longitude and latitude coordinate belongs to the main road or the side road. Therefore, the execution main body may determine the initial position information after determining the initial position information, so as to determine whether the initial road segment identifier is the road segment identifier of the main road segment or the road segment identifier of the auxiliary road segment.

Optionally, the corresponding relationship between the road segment identifier ID and the longitude and latitude information may be stored in a server of the map platform, so that the execution subject may perform information interaction with the map platform through an Application Programming Interface (API) of the map platform to obtain the road segment identifier corresponding to the longitude and latitude information, but the map platform often cannot accurately determine whether the initial road segment identifier is the road segment identifier of the main road segment or the road segment identifier of the auxiliary road segment. The execution subject may determine the initial position information after acquiring the initial position information from the map platform, so as to determine whether the initial road segment identifier is a road segment identifier of the main road segment or a road segment identifier of the auxiliary road segment.

And 103, in response to determining that the initial road section identifier is the main road section identifier of the main road, acquiring at least one auxiliary road section identifier corresponding to the initial road section identifier determined as the main road section identifier from a preset database.

In this embodiment, based on the initial segment identifier obtained in step 102, the execution principal may determine whether the initial segment identifier is a main segment identifier of the main road. If the initial road section identifier is a main road section identifier, the execution subject may consider that the acquired initial longitude and latitude information has an error, and the acquired initial road section identifier also has a deviation, and at this time, the initial road section identifier needs to be corrected. Specifically, the execution subject may obtain at least one auxiliary road segment identifier corresponding to the initial road segment identifier from a preset database.

It should be noted that the database may be pre-established, and the database may include a plurality of main segment identifiers, and each main segment identifier may be correspondingly provided with at least one auxiliary segment identifier. That is, each main road segment identifier has a corresponding relationship with at least one sub road segment identifier. For any main road section identifier in the database, the sub road section identifier corresponding to the main road section identifier needs to meet a preset condition. It is understood that the preset condition may be set by a person skilled in the art according to actual requirements, for example, the preset condition may be that the projection of the main road segment indicated by the main road segment identifier to the side road and the side road segment indicated by the side road segment identifier corresponding to the main road segment identifier at least partially coincide. Optionally, the main road segment identifier and the sub road segment identifier in the database may be the main road segment identifier and the sub road segment identifier acquired from the map platform, and then the corresponding relationship between the main road segment identifier and the sub road segment identifier may be established according to the position relationship between the main road segment indicated by the main road segment identifier and the sub road segment indicated by the sub road segment identifier in the map platform.

In some optional implementations of this embodiment, the database may be determined by: acquiring a plurality of main road section identifications and a plurality of auxiliary road section identifications; determining an auxiliary road section, of which the distance from the main road section indicated by the main road section identifier is smaller than a preset threshold, aiming at the main road section identifier in the main road section identifiers; and correspondingly setting the determined auxiliary road section identification of the auxiliary road section and the main road section identification to generate a database. According to the scheme provided by the implementation mode, under the condition that the initial longitude and latitude information has deviation, the road segment identifier used for correcting the initial position information can be comprehensively and accurately obtained, and the accuracy of the obtained final position information is improved.

In some optional implementation manners of this embodiment, if the initial road segment identifier is not a main road segment identifier, it may be considered that the execution subject obtains accurate initial longitude and latitude information, and at this time, the initial position information of the target position may be directly determined as the final position information of the target position.

And 104, correcting the initial position information based on the acquired at least one auxiliary road section identifier to obtain final position information of the target position.

In this embodiment, based on the at least one auxiliary link identifier obtained in step 103, the executing entity may process the obtained auxiliary link identifier by various means, so as to correct the initial position information of the target position by using the processing result, and obtain the final position information of the target position. As an example, the execution subject may select one auxiliary road segment identifier from the acquired at least one auxiliary road segment identifier, and use the longitude and latitude of a location point closest to the location point indicated by the initial longitude and latitude information in the auxiliary road segment indicated by the selected auxiliary road segment identifier as the longitude and latitude of the target location, and the map platform may determine the location information of the target location according to the longitude and latitude to replace the initial location information, where the location information is the final location information of the target location.

With continuing reference to fig. 2, fig. 2 is a schematic diagram of an application scenario of the method for generating information according to the present embodiment. In the application scenario of fig. 2, the background server may obtain initial longitude and latitude information of the target location; then, the background server may determine initial position information corresponding to the initial longitude and latitude information, as shown in fig. 2, a road segment to which the position point a indicated by the initial longitude and latitude information belongs is a road segment linkId1 closest to the position point a, the road segment is a road segment of the main road 201, and an identifier linkId1 of the road segment is an initial road segment identifier; then, in response to determining that the initial road segment identifier linkId1 is the main road segment identifier of the main road 201, the backend server acquires a secondary road segment identifier linkId2 and linkId3 corresponding to the initial road segment identifier linkId1 from a preset database, as shown in fig. 2, wherein the secondary road segment identifiers linkId2 and linkId3 belong to the secondary road 202; finally, based on the acquired link id2 and link id3, the initial position information is corrected, for example, by making a perpendicular line to the link 202, to obtain the final position information of the target position, and as shown in fig. 2, the position point indicated by the corrected initial position information is the position point a 'on the link indicated by the link id2, and the position information corresponding to the position point a' is the final position information of the target position.

The method for generating information according to the embodiment of the application may obtain initial longitude and latitude information of a target position, determine initial position information corresponding to the initial longitude and latitude information, obtain at least one auxiliary road segment identifier corresponding to the initial road segment identifier determined as the main road segment identifier from a preset database in response to determining that the initial road segment identifier is the main road segment identifier, and finally correct the initial position information based on the obtained at least one auxiliary road segment identifier to obtain final position information of the target position. According to the scheme disclosed by the embodiment, the position information of the target position can be fully automatically corrected under the condition that the target position deviates to the main road, manual intervention is not needed, and the accuracy of obtaining the final position information of the target position is improved.

Continuing next to refer to fig. 3, fig. 3 is a schematic diagram of a second embodiment of a method for generating information according to the present application. The method for generating information may comprise the steps of:

step 301, obtaining initial longitude and latitude information of a target position.

Step 302, determining initial position information corresponding to the initial longitude and latitude information.

Step 303, in response to determining that the initial road segment identifier is the main road segment identifier of the main road, obtaining at least one auxiliary road segment identifier corresponding to the initial road segment identifier determined as the main road segment identifier from a preset database.

In this embodiment, the contents disclosed in steps 301 to 303 are the same as or similar to the contents disclosed in steps 101 to 103 in the above embodiment, and are not described again here.

And step 304, determining a target positioning point from the secondary road segment indicated by the acquired at least one secondary road segment identifier.

In this embodiment, based on the at least one auxiliary road segment identifier obtained in step 303, the executing entity may determine the target positioning point from the obtained auxiliary road segment identifiers by various means. The target positioning point may be a position point with the minimum distance from the position point indicated by the initial longitude and latitude information in the auxiliary road section indicated by each auxiliary road section identifier. As an example, the execution subject may calculate a distance between a position point in the sub link indicated by each sub link identification and a position point indicated by the initial latitude and longitude information, and determine a position point, in the sub link indicated by each sub link identification, at which the distance is the smallest, as the target anchor point. Or, the execution main body makes a perpendicular line from the position point indicated by the initial longitude and latitude information to the road sub-segment indicated by each road sub-segment identifier, and the vertical line is the target positioning point.

And 305, determining the longitude and latitude information corresponding to the target positioning point as the target longitude and latitude information.

In this embodiment, based on the target positioning point determined in step 304, the executing body may obtain longitude and latitude coordinates of the target positioning point. And determining the acquired longitude and latitude coordinates as the target longitude and latitude information.

And step 306, determining theoretical position information of the target position based on the target longitude and latitude information.

In this embodiment, based on the target longitude and latitude information determined in step 305, the execution main body may process the location information corresponding to the target longitude and latitude information in various ways, so as to obtain the theoretical location information of the target location. As an example, the execution subject may send the target longitude and latitude information to a map platform, and the map platform may determine the location information corresponding to the target longitude and latitude information, and then process the location information corresponding to the target longitude and latitude information in various ways, so as to obtain theoretical location information of the target location. As an example, the map platform may directly determine the location information corresponding to the target longitude and latitude information as theoretical location information of the target location. It can be understood that the execution main body may also determine, in the correspondence between the latitude and longitude information and the location information stored locally in advance, that the location information corresponding to the target latitude and longitude information is theoretical location information. The theoretical position information of the target position may indicate a specific position of the target position in the map. It is understood that the theoretical location information may include an identification of the secondary road segment, a name of a road to which the secondary road segment belongs, and the like.

In some optional implementation manners of this embodiment, the correcting the initial position information based on the obtained at least one auxiliary road segment identifier to obtain the final position information of the target position may specifically be further implemented by: and sending the target longitude and latitude information to a map platform so that the map platform determines a target auxiliary road section identification corresponding to the target longitude and latitude information, updates the target longitude and latitude information based on the target auxiliary road section identification, and determines theoretical position information of a target position based on the updated target longitude and latitude information. In this implementation manner, after receiving the target longitude and latitude information, the map platform may determine an auxiliary road segment identifier corresponding to the target longitude and latitude information, where the auxiliary road segment identifier is the target auxiliary road segment identifier. It can be understood that there may be a deviation between the location point indicated by the target longitude and latitude information and the sub road segment indicated by the target sub road segment identifier (for example, if the distance between the location point indicated by the target longitude and latitude information and the sub road segment indicated by the target sub road segment identifier is greater than a preset distance, it may be determined that there is a deviation between the location point indicated by the target longitude and latitude information and the sub road segment indicated by the target sub road segment identifier), and at this time, the determined target sub road segment may be processed in various ways, so as to update the target longitude and latitude information. As an example, a perpendicular line may be drawn from the position point indicated by the target longitude and latitude information to the road sub-segment indicated by the target road sub-segment identifier, and a position point corresponding to a foot of the perpendicular line on the road sub-segment indicated by the target road sub-segment identifier is determined as the position point indicated by the updated target longitude and latitude information, so that the updated target longitude and latitude information may be obtained. And finally, the position information corresponding to the updated target longitude and latitude information can be directly determined as the theoretical position information of the target position. The scheme disclosed by the implementation mode can further correct the position information of the target position in the map platform by utilizing the acquired target auxiliary road section identification, so that the accuracy of the obtained final position information of the target position can be further improved.

Step 307, the theoretical position information is determined as the final position information of the target position.

In this embodiment, based on the theoretical position information obtained in step 306, the executing entity may obtain the theoretical position information from the map platform and determine the theoretical position information as the final position information of the target position.

As can be seen from fig. 3, compared with the embodiment corresponding to fig. 1, after at least one sub road segment identifier is obtained from the database, the method for generating information in this embodiment may determine, in the sub road segment indicated by each sub road segment identifier, a target location point having the smallest distance from a location point indicated by the initial longitude and latitude information, and re-determine location information of the target location by using the target longitude and latitude information, where the re-determined location information is the corrected initial location information and is also the final location information of the target location, thereby further improving the accuracy of the obtained final location information of the target location.

With further reference to fig. 4, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an apparatus for generating information, which corresponds to the method embodiment shown in fig. 1, and which is particularly applicable in various electronic devices.

As shown in fig. 4, the apparatus 400 for generating information of the present embodiment includes: a first acquisition unit 401, a first determination unit 402, a second acquisition unit 403, and a correction unit 404. Wherein the first obtaining unit 401 is configured to obtain initial longitude and latitude information of the target location; the first determining unit 402 is configured to determine initial position information corresponding to the initial longitude and latitude information, wherein the initial position information includes an initial road segment identifier of a road segment to which the initial longitude and latitude information belongs; the second obtaining unit 403 is configured to, in response to determining that the initial road segment identifier is the main road segment identifier of the main road, obtain at least one auxiliary road segment identifier corresponding to the initial road segment identifier determined as the main road segment identifier from a preset database, where each main road segment identifier is set corresponding to at least one auxiliary road segment identifier satisfying a preset condition; the correcting unit 404 is configured to correct the initial position information based on the acquired at least one auxiliary road segment identifier, resulting in final position information of the target position.

In some optional implementations of this embodiment, the modifying unit 404 includes: a first determining module configured to determine a target positioning point from the secondary road sections indicated by the acquired at least one secondary road section identification, wherein the target positioning point is a position point with the minimum distance from a position point indicated by the initial longitude and latitude information in each secondary road section; the second determination module is configured to determine the longitude and latitude information corresponding to the target positioning point as the target longitude and latitude information; a transmitting module configured to determine theoretical position information of a target position based on the target longitude and latitude information; a third determination module configured to determine the theoretical position information as final position information of the target position.

In some optional implementations of this embodiment, the sending module is further configured to: and sending the target longitude and latitude information to a map platform so that the map platform determines a target auxiliary road section identification corresponding to the target longitude and latitude information, updates the target longitude and latitude information based on the target auxiliary road section identification, and determines theoretical position information of a target position based on the updated target longitude and latitude information.

In some optional implementations of this embodiment, the database includes a plurality of main segment identifiers and auxiliary segment identifiers corresponding to the main segment identifiers; the database is obtained by the following steps: acquiring a plurality of main road section identifications and a plurality of auxiliary road section identifications; determining an auxiliary road section, of which the distance from the main road section indicated by the main road section identifier is smaller than a preset threshold, aiming at the main road section identifier in the main road section identifiers; and correspondingly setting the determined auxiliary road section identification of the auxiliary road section and the main road section identification to generate a database.

In some optional implementations of this embodiment, the apparatus 400 further includes: a second determination unit configured to determine the initial position information as final position information of the target position in response to determining that the initial link identification is not the main link identification.

The units recited in the apparatus 400 correspond to the various steps in the method described with reference to fig. 1. Thus, the operations and features described above for the method are equally applicable to the apparatus 400 and the units included therein, and are not described in detail here.

According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.

As shown in fig. 5, the electronic device is a block diagram of an apparatus for generating information according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.

As shown in fig. 5, the electronic apparatus includes: one or more processors 501, memory 502, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 5, one processor 501 is taken as an example.

Memory 502 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method for generating information provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method for generating information provided herein.

The memory 502, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the method for generating information in the embodiment of the present application (for example, the first acquisition unit 401, the first determination unit 402, the second acquisition unit 403, and the correction unit 404 shown in fig. 4). The processor 501 executes various functional applications of the server and data processing, i.e., implements the method for generating information in the above-described method embodiments, by executing non-transitory software programs, instructions, and modules stored in the memory 502.

The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device for generating information, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 502 optionally includes memory located remotely from processor 501, which may be connected to an electronic device for generating information over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The electronic device of the method for generating information may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.

The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic apparatus used to generate the information, such as an input device such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.

Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.

These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.

The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

According to the technical scheme of the embodiment of the application, initial longitude and latitude information of a target position can be obtained, then the initial position information corresponding to the initial longitude and latitude information is determined, then in response to the fact that the initial road section identification is determined to be the main road section identification, at least one auxiliary road section identification corresponding to the initial road section identification determined to be the main road section identification is obtained from a preset database, and finally based on the obtained at least one auxiliary road section identification, the initial position information can be corrected, and the final position information of the target position is obtained. According to the scheme disclosed by the embodiment, the position information of the target position can be fully automatically corrected under the condition that the target position deviates to the main road, manual intervention is not needed, and the accuracy of obtaining the final position information of the target position is improved.

It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.

The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于识别车辆的行驶车道的装置和方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!