CN113701763B - Method and device for generating information - Google Patents

Method and device for generating information Download PDF

Info

Publication number
CN113701763B
CN113701763B CN202010428533.5A CN202010428533A CN113701763B CN 113701763 B CN113701763 B CN 113701763B CN 202010428533 A CN202010428533 A CN 202010428533A CN 113701763 B CN113701763 B CN 113701763B
Authority
CN
China
Prior art keywords
road section
initial
target
identifier
longitude
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.)
Active
Application number
CN202010428533.5A
Other languages
Chinese (zh)
Other versions
CN113701763A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010428533.5A priority Critical patent/CN113701763B/en
Publication of CN113701763A publication Critical patent/CN113701763A/en
Application granted granted Critical
Publication of CN113701763B publication Critical patent/CN113701763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/28Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments
    • G01C21/30Map- or contour-matching
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3407Route searching; Route guidance specially adapted for specific applications
    • G01C21/343Calculating itineraries, i.e. routes leading from a starting point to a series of categorical destinations using a global route restraint, round trips, touristic trips

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)

Abstract

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 section identifier is a main road section identifier of a main road, acquiring at least one auxiliary road section identifier corresponding to the initial road section identifier determined to be the main road section identifier from a preset database; and correcting the initial position information based on the acquired at least one auxiliary road segment identifier to obtain final position information of the target position. When the road section to which the initial longitude and latitude information of the target position belongs is determined to be the main road section, the implementation mode can automatically correct the initial longitude and latitude information by utilizing the corresponding relation between the pre-established main road section identification and the auxiliary road section identification, and the accuracy of the obtained final position information is improved.

Description

Method and device for generating information
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 is usually a road bearing the main pressure of urban traffic, and the main road can only drive motor vehicles. An auxiliary road is usually an auxiliary road of a main road, and is often a unidirectional or bidirectional driving road parallel to the main road, which is adjacent to both sides or one side of the main road. The auxiliary road is generally narrower than the main road, and motor vehicles, non-motor vehicles and pedestrians can be mixed.
In general, the distance between the main road and the auxiliary road is relatively short, so that when the specific positions of the addresses are located in the main road and the auxiliary road through the longitude and latitude information, even if the longitude and latitude information has small deviation, the situation that the addresses of the auxiliary road are located to the main road can occur. As an example, in the case of logistics, etc., if there is a deviation in latitude and longitude information of the receiving address of the user, it is highly likely that the receiving address that should be on the auxiliary road is located to the main road, which tends to reduce the delivery efficiency of the courier.
Disclosure of Invention
Provided are a method, apparatus, device, and storage medium for generating information.
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 section identifier is a main road section identifier of a main road, acquiring at least one auxiliary road section identifier corresponding to the initial road section identifier determined to be the main road section identifier from a preset database, wherein each main road section identifier is correspondingly set with at least one auxiliary road section identifier meeting preset conditions in the database; and correcting the initial position information based on the acquired at least one auxiliary road segment 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 latitude and longitude information of a target position; the first determining unit is configured to determine 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; a second obtaining unit configured to obtain, in response to determining a main road section identifier of which the initial road section identifier is a main road, at least one auxiliary road section identifier corresponding to the initial road section identifier determined to be the main road section identifier from a preset database, wherein each main road section identifier is set corresponding to at least one auxiliary road section identifier satisfying a preset condition in the database; and the correction unit is configured to correct the initial position information based on the acquired at least one auxiliary road segment identifier to obtain final position information of the target position.
In a third aspect, an electronic device is provided, the electronic device comprising: 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 method described above.
In a fourth aspect, a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the above method is provided.
The technology solves the problem of positioning the position of the auxiliary road to the main road caused by deviation of longitude and latitude information, and improves the accuracy of the obtained position information.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as limiting the 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 of one implementation of a method for generating information according to the 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 in accordance with the present application;
Fig. 5 is a block diagram of an electronic device for implementing a method for generating information of an embodiment of the application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. 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 application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other. 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 include the steps of:
Step 101, obtaining initial longitude and latitude information of a target position.
In this embodiment, the execution subject of the method for generating information may be the apparatus for generating information, and the method for generating information may be an electronic entity (e.g., a server), or may be an application program integrated with software. When the device for generating the information is used, the initial longitude and latitude information of the target position can be acquired, and the acquired 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 position information of the target position using the method for generating information of the present embodiment.
In this embodiment, the executing body (e.g., a server) may acquire the initial latitude and longitude information of the target location from another electronic device through a wired connection manner or a wireless connection manner. Here, the initial longitude and latitude information may include a coordinate point composed of longitude and latitude of the target position. The target location may include, but is not limited to, a location indicated by a shipping address. As an example, when a user inputs a target location indicated by a logistics receiving address or the like through a mobile phone positioning or the like, the user may directly upload initial longitude and latitude information of the target location to the execution subject, and the execution subject may directly obtain the initial longitude and latitude information of the target location; or after inputting the target position such as the logistics receiving address by a mobile phone positioning mode and the like, different users can also send the target position to the same system and electronic equipment, and the execution main body can acquire the initial longitude and latitude information of the target position.
In general, the target location may be a delivery address of the stream. It will be appreciated that in complex scenarios where both main and auxiliary routes are present, the destination of the logistics distribution will not typically be on the main route for driving the motor vehicle only. As an example, in the logistics scheduling system, if the initial longitude and latitude information of the target position is identified to the main road, the logistics scheduling system is caused to plan to the main road when the route planning is performed, so that a dispatcher can walk wrong if the dispatcher performs distribution according to the route planning. Therefore, if the execution subject determines that the target position is located in the main road, it can be determined that an error exists in the initial longitude and latitude information of the target position, 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 by the application is not only applicable to logistics scenes, but also applicable to other scenes where the position point indicated by the initial position information of the target position theoretically does not have a main road, such as a driving scene of a user, and the scene to which the method for generating information disclosed by the application is applicable is not limited only.
Step 102, determining initial position information corresponding to the initial longitude and latitude information.
In this embodiment, based on the initial latitude and longitude information acquired in step 101, the execution subject may determine the initial position information corresponding to the acquired initial latitude and longitude information by using various means. As an example, the executing body may directly determine the initial position information corresponding to the initial latitude and longitude information from the local place when the executing body locally stores the correspondence between the latitude and longitude information and the position information. Or the executing body can also send the acquired initial longitude and latitude information to the map platform, so that the map platform can acquire initial position information corresponding to the initial longitude and latitude information, and the executing body can acquire the initial position information from the map platform. The initial position information may indicate a specific geographic position of the target position in the actual area. The initial position information may include a link identifier of a link to which the initial longitude and latitude information belongs, and the link identifier is determined as an initial link identifier of the target position. It is understood that the initial position information may include, in addition to the initial link identifier, a road name, a road level, etc. of the link to which the initial longitude and latitude information belongs. For one piece of position information, a unique position point can be determined in the actual road by using the position information.
It can be appreciated that for any road, the road may be divided into continuous links, where each link may correspond to a latitude and longitude coordinate range. Further, in order to distinguish the road segments, different identification IDs may be set for different road segments. 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 in a main road or an auxiliary road which is very 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 auxiliary road. Therefore, the executing 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 primary road segment or the road segment identifier of the secondary road segment.
Optionally, the correspondence between the road segment identifier ID and the latitude and longitude information may be stored in a server of the map platform, so the executing body may perform information interaction with the map platform through an API interface (Application Programming Interface, application program interface) of the map platform to obtain the road segment identifier corresponding to the latitude and longitude 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 body may determine the initial position information after acquiring the initial position information from the map platform, so as to determine whether the initial road section identifier is a road section identifier of the main road section or a road section identifier of the auxiliary road section.
And step 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 to be the main road section identifier from a preset database.
In this embodiment, based on the initial link identifier obtained in step 102, the executing body may determine whether the initial link identifier is a main link identifier of a main link. If the initial link identifier is the main link identifier, the execution body may consider that the acquired initial longitude and latitude information has an error, and the obtained initial link identifier also has a deviation, and at this time, correction processing needs to be performed on the initial link identifier. Specifically, the executing body may acquire at least one auxiliary road section identifier corresponding to the initial road section identifier in a preset database.
It should be noted that the database may be pre-established, and the database may include a plurality of primary road section identifiers, where each primary road section identifier may be correspondingly provided with at least one secondary road section identifier. That is, each primary road segment identifier has a correspondence with at least one secondary road segment identifier. Aiming at any main road section identifier in the database, the auxiliary road section identifier corresponding to the main road section identifier needs to meet preset conditions. It is understood that the above-mentioned preset condition may be set by those skilled in the art according to actual requirements, for example, the above-mentioned preset condition may be that the projection of the main road segment indicated by the main road segment identifier to the auxiliary road and the auxiliary road segment indicated by the auxiliary road segment identifier corresponding thereto at least partially overlap. Optionally, the main road section identifier and the auxiliary road section identifier in the database may be a main road section identifier and an auxiliary road section identifier obtained from the map platform, and then a corresponding relationship between the main road section identifier and the auxiliary road section identifier may be established according to a positional relationship between the main road section indicated by the main road section identifier and the auxiliary road section indicated by the auxiliary road section 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 identifiers and a plurality of auxiliary road section identifiers; determining an auxiliary road section with the distance between the auxiliary road section and the main road section indicated by the main road section identifier being smaller than a preset threshold value aiming at the main road section identifier in the plurality of main road section identifiers; and setting the auxiliary road section identifier of the determined auxiliary road section corresponding to the main road section identifier 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 auxiliary road segment identification which can be 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 implementations of this embodiment, if the initial link identifier is not the main link identifier, the executing body may be considered to obtain accurate initial latitude and longitude 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 segment identifier to obtain final position information of the target position.
In this embodiment, based on the at least one auxiliary road segment identifier obtained in step 103, the executing body may process the obtained auxiliary road segment identifier by using 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 executing body may select one auxiliary road segment identifier from the obtained at least one auxiliary road segment identifier, take the longitude and latitude of the position point closest to the position 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 position, and the map platform may determine the position information of the target position according to the longitude and latitude to replace the initial position information, where the position information is the final position information of the target position.
With continued 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 acquire initial longitude and latitude information of the target position; then, the background server may determine initial position information corresponding to the initial longitude and latitude information, as shown in fig. 2, a road section to which the location point a indicated by the initial longitude and latitude information belongs is a road section linkId1 closest to the location point a, the road section is a road section of the main road 201, and the identifier linkId of the road section is an initial road section 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 background server acquires auxiliary road segment identifiers linkId and linkId corresponding to the initial road segment identifier linkId1 from a preset database, as shown in fig. 2, wherein the auxiliary road segment identifiers linkId and linkId3 belong to the auxiliary road 202; finally, based on the obtained auxiliary road segment identifiers linkId and linkId, the initial position information is corrected, for example, by making a vertical line to the auxiliary road 202, so as to obtain final position information of the target position, and as shown in fig. 2, the position point indicated by the corrected initial position information is a position point a 'on the auxiliary road segment indicated by the auxiliary road segment identifier linkId, and the position information corresponding to the position point a' is final position information of the target position.
According to the method for generating information provided by the embodiment of the application, the initial longitude and latitude information of the target position can be acquired, the initial position information corresponding to the initial longitude and latitude information is determined, then the main road section identifier of which the initial road section identifier is the main road is determined, at least one auxiliary road section identifier corresponding to the initial road section identifier which is determined to be the main road section identifier is acquired from the preset database, and finally the initial position information can be corrected based on the acquired at least one auxiliary road section identifier, so that 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 automatically corrected under the condition that the target position deviates from the main road, manual intervention is not needed, and the accuracy of obtaining the final position information of the target position is improved.
With continued reference 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 include 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.
In step 303, 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 to be the main road segment identifier is obtained from a preset database.
In this embodiment, the disclosure of steps 301 to 303 is the same as or similar to that of steps 101 to 103 in the above embodiment, and will not be repeated here.
And step 304, determining a target locating point from the auxiliary road section indicated by the acquired at least one auxiliary road section identifier.
In this embodiment, based on the at least one auxiliary road segment identifier obtained in step 303, the executing body may determine the target positioning point from the obtained auxiliary road segment identifiers by using various means. The target positioning point may identify, for each auxiliary road section, a position point with a minimum distance from a position point indicated by the initial longitude and latitude information in the indicated auxiliary road section. As an example, the above-described execution subject may calculate a distance between a position point in the auxiliary road section indicated by each auxiliary road section identification and a position point indicated by the initial latitude and longitude information, and determine a position point in the auxiliary road section indicated by each auxiliary road section identification, at which the distance is minimum, as the target anchor point. Or the execution main body makes a vertical line from a position point indicated by the initial longitude and latitude information to an auxiliary road section indicated by each auxiliary road section identifier, and the foot of the vertical line is the target positioning point.
Step 305, determining longitude and latitude information corresponding to the target positioning point as target longitude and latitude information.
In this embodiment, based on the target positioning point determined in step 304, the executing body may acquire longitude and latitude coordinates of the target positioning point. And determining the acquired longitude and latitude coordinates as target longitude and latitude information.
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 latitude and longitude information determined in step 305, the execution subject may process the position information corresponding to the target latitude and longitude information in various manners, so as to obtain the theoretical position information of the target position. As an example, the executing body may send the target longitude and latitude information to a map platform, and the map platform may determine the position information corresponding to the target longitude and latitude information, and then process the position information corresponding to the target longitude and latitude information in various manners, so as to obtain the theoretical position information of the target position. As an example, the map platform may directly determine the position information corresponding to the target longitude and latitude information as theoretical position information of the target position. It can be understood that the executing body may further determine, in the correspondence between the longitude and latitude information and the position information stored in advance locally, that the position information corresponding to the target longitude and latitude information is theoretical position information. The theoretical location information of the target location may indicate a specific location of the target location in the map. It is understood that the theoretical location information may include an auxiliary link identifier, a name of a road to which the auxiliary link belongs, and the like.
In some optional implementations 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 further be 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 identifier corresponding to the target longitude and latitude information, updates the target longitude and latitude information based on the target auxiliary road section identifier, and determines theoretical position information of the 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 section identifier corresponding to the target longitude and latitude information, where the auxiliary road section identifier is the target auxiliary road section identifier. It will be appreciated that the location point indicated by the target longitude and latitude information may deviate from the auxiliary road segment indicated by the target auxiliary road segment identifier (for example, if the distance between the location point indicated by the target longitude and latitude information and the auxiliary road segment indicated by the target auxiliary road segment identifier is greater than a preset distance, it may be determined that the location point indicated by the target longitude and latitude information deviates from the auxiliary road segment indicated by the target auxiliary road segment identifier), and at this time, the determined target auxiliary road segment may be processed in various manners, so as to update the target longitude and latitude information. As an example, a perpendicular line may be drawn to the auxiliary road segment indicated by the target auxiliary road segment identifier by the position point indicated by the target longitude and latitude information, and the position point corresponding to the perpendicular line on the auxiliary road segment indicated by the target auxiliary road segment identifier is determined as the position point indicated by the updated target longitude and latitude information, so that updated target longitude and latitude information may be obtained. 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 manner can further correct the position information of the target position in the map platform by utilizing the obtained target auxiliary road section identifier, so that the accuracy of the final position information of the obtained target position can be further improved.
In step 307, the theoretical position information is determined as final position information of the target position.
In this embodiment, based on the theoretical position information obtained in step 306, the executing body may acquire the theoretical position information from the map platform, and determine the theoretical position information as 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 auxiliary road segment identifier is obtained from the database, the method for generating information in this embodiment may determine, in the auxiliary road segment indicated by each auxiliary road segment identifier, a target positioning point with the smallest distance from the position point indicated by the initial longitude and latitude information, and redetermine the position information of the target position by using the target longitude and latitude information, where the redetermined position information is the corrected initial position information and is also the final position information of the target position, so as to further improve the accuracy of the obtained final position information of the target position.
With further reference to fig. 4, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of an apparatus for generating information, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 1, and the apparatus may be specifically applied 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 position; the first determining unit 402 is configured to determine initial position information corresponding to the initial longitude and latitude information, where 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 obtain, in response to determining that the initial road section identifier is a main road section identifier of a main road, at least one auxiliary road section identifier corresponding to the initial road section identifier determined to be the main road section identifier from a preset database, where each main road section identifier is set in correspondence with at least one auxiliary road section identifier satisfying a preset condition in the database; the correction unit 404 is configured to correct the initial position information based on the acquired at least one auxiliary road segment identification, resulting in final position information of the target position.
In some alternative implementations of the present embodiment, the correction unit 404 includes: the first determining module is configured to determine a target positioning point from the auxiliary road sections indicated by the acquired at least one auxiliary road section identifier, wherein the target positioning point is a position point with the minimum distance between the position points indicated by the initial longitude and latitude information in each auxiliary road section; the second determining module is configured to determine longitude and latitude information corresponding to the target positioning point as target longitude and latitude information; a transmitting module configured to determine theoretical position information of the target position based on the target longitude and latitude information; and 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 transmitting 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 identifier corresponding to the target longitude and latitude information, updates the target longitude and latitude information based on the target auxiliary road section identifier, and determines theoretical position information of the target position based on the updated target longitude and latitude information.
In some optional implementations of this embodiment, the database includes a plurality of primary road segment identifiers and secondary road segment identifiers disposed corresponding to the primary road segment identifiers; the database is obtained by the following steps: acquiring a plurality of main road section identifiers and a plurality of auxiliary road section identifiers; determining an auxiliary road section with the distance between the auxiliary road section and the main road section indicated by the main road section identifier being smaller than a preset threshold value aiming at the main road section identifier in the plurality of main road section identifiers; and setting the auxiliary road section identifier of the determined auxiliary road section corresponding to the main road section identifier to generate a database.
In some optional implementations of this embodiment, the apparatus 400 further includes: and a second determining 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 identifier is not the main road segment identifier.
The elements recited in apparatus 400 correspond to the various steps in the method described with reference to fig. 1. Thus, the operations and features described above with respect to the method are equally applicable to the apparatus 400 and the units contained therein, and are not described in detail herein.
According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
As shown in fig. 5, is a block diagram of an electronic device 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 telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 5, the electronic device includes: one or more processors 501, memory 502, and interfaces for connecting 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 executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 501 is illustrated in fig. 5.
Memory 502 is a non-transitory computer readable storage medium provided by the present application. 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 by the present application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the method for generating information provided by the present application.
The memory 502 is a non-transitory computer readable storage medium, and may be used to store a non-transitory software program, a non-transitory computer executable program, and modules, such as program instructions/modules (e.g., the first acquisition unit 401, the first determination unit 402, the second acquisition unit 403, and the correction unit 404 shown in fig. 4) corresponding to a method for generating information in an embodiment of the present application. The processor 501 executes various functional applications of the server and data processing, i.e., implements the methods for generating information in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 502.
Memory 502 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the electronic device for generating information, and the like. In addition, 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 may optionally include memory located remotely from processor 501, which may be connected to the electronic device for generating information via 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 for generating information may further include: an input device 503 and an output device 504. The processor 501, memory 502, input devices 503 and output devices 504 may be connected by a bus or otherwise, for example in fig. 5.
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 device used to generate the information, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointer stick, one or more mouse buttons, a trackball, a joystick, and the like. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration 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 may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. 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 pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 a client and a server. The client and server are typically 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, the initial longitude and latitude information of the target position can be acquired, then the initial position information corresponding to the initial longitude and latitude information is determined, then the main road section identifier of the initial road section identifier as the main road is determined, at least one auxiliary road section identifier corresponding to the initial road section identifier determined as the main road section identifier is acquired from a preset database, and finally the initial position information can be corrected based on the acquired at least one auxiliary road section identifier, so that 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 automatically corrected under the condition that the target position deviates from 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 appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed embodiments are achieved, and are not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (8)

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 section identifier is a main road section identifier of a main road, acquiring at least one auxiliary road section identifier corresponding to the initial road section identifier determined to be the main road section identifier from a preset database, wherein each main road section identifier is correspondingly set with at least one auxiliary road section identifier meeting preset conditions in the database;
Determining a target positioning point from the auxiliary road sections indicated by the acquired at least one auxiliary road section identifier, wherein the target positioning point is a position point with the minimum distance between the position point and 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;
the target longitude and latitude information is sent to a map platform, so that the map platform determines a target auxiliary road section identifier corresponding to the target longitude and latitude information, updates the target longitude and latitude information based on the target auxiliary road section identifier, and determines theoretical position information of the target position based on the updated target longitude and latitude information;
And determining the theoretical position information as final position information of the target position.
2. The method of claim 1, wherein the database comprises a plurality of primary road segment identifications and secondary road segment identifications provided corresponding to each of the primary road segment identifications;
The database is obtained by the following steps:
Acquiring a plurality of main road section identifiers and a plurality of auxiliary road section identifiers;
determining an auxiliary road section with the distance between the auxiliary road section and the main road section indicated by the main road section identifier being smaller than a preset threshold value aiming at the main road section identifier in the plurality of main road section identifiers;
and setting the auxiliary road section identifier of the determined auxiliary road section corresponding to the main road section identifier, and generating the database.
3. The method according to one of claims 1-2, wherein the method further comprises:
and in response to determining that the initial road segment identifier is not the main road segment identifier, determining the initial position information as final position information of the target position.
4. An apparatus for generating information, comprising:
a first acquisition unit configured to acquire initial latitude and longitude information of a target position;
the first determining unit is configured to determine 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;
A second obtaining unit configured to obtain, in response to determining that the initial road section identifier is a main road section identifier of a main road, at least one auxiliary road section identifier corresponding to the initial road section identifier determined to be the main road section identifier from a preset database, where each main road section identifier is set corresponding to at least one auxiliary road section identifier satisfying a preset condition in the database;
A correction unit comprising: a first determining module configured to determine a target positioning point from the auxiliary road segments indicated by the acquired at least one auxiliary road segment identifier, wherein the target positioning point is a position point with the minimum distance between the position point indicated by the initial longitude and latitude information in each auxiliary road segment;
the second determining module is configured to determine that the longitude and latitude information corresponding to the target positioning point is target longitude and latitude information;
The sending module is configured to send the target longitude and latitude information to a map platform so that the map platform can determine a target auxiliary road section identifier corresponding to the target longitude and latitude information, update the target longitude and latitude information based on the target auxiliary road section identifier and determine theoretical position information of the target position based on the updated target longitude and latitude information;
A third determination module configured to determine the theoretical position information as final position information of the target position.
5. The apparatus of claim 4, wherein the database comprises a plurality of primary road segment identities and secondary road segment identities disposed corresponding to each of the primary road segment identities;
The database is obtained by the following steps:
Acquiring a plurality of main road section identifiers and a plurality of auxiliary road section identifiers;
determining an auxiliary road section with the distance between the auxiliary road section and the main road section indicated by the main road section identifier being smaller than a preset threshold value aiming at the main road section identifier in the plurality of main road section identifiers;
and setting the auxiliary road section identifier of the determined auxiliary road section corresponding to the main road section identifier, and generating the database.
6. The apparatus according to one of claims 4-5, wherein the apparatus further comprises:
and a second determining unit configured to determine the initial position information as final position information of the target position in response to determining that the initial link identifier is not a main link identifier.
7. An electronic device, comprising:
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 method of any one of claims 1-3.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-3.
CN202010428533.5A 2020-05-20 2020-05-20 Method and device for generating information Active CN113701763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010428533.5A CN113701763B (en) 2020-05-20 2020-05-20 Method and device for generating information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010428533.5A CN113701763B (en) 2020-05-20 2020-05-20 Method and device for generating information

Publications (2)

Publication Number Publication Date
CN113701763A CN113701763A (en) 2021-11-26
CN113701763B true CN113701763B (en) 2024-06-21

Family

ID=78645435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010428533.5A Active CN113701763B (en) 2020-05-20 2020-05-20 Method and device for generating information

Country Status (1)

Country Link
CN (1) CN113701763B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114719880B (en) * 2022-06-01 2022-09-23 阿里巴巴(中国)有限公司 Model training method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021282A (en) * 2016-04-29 2016-10-12 百度在线网络技术(北京)有限公司 Method and device for recognizing relations between main roads and side road
CN109489674A (en) * 2017-09-12 2019-03-19 腾讯科技(深圳)有限公司 The method, apparatus and storage medium in section are determined based on position

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6424912B1 (en) * 2001-11-09 2002-07-23 General Motors Corporation Method for providing vehicle navigation instructions
CN104121916B (en) * 2013-04-27 2017-03-01 国际商业机器公司 Method and system for map match
CN104598640A (en) * 2015-02-09 2015-05-06 江苏天安智联科技股份有限公司 Method for positioning concrete positions of located road network based on longitude and latitude
CN107543547B (en) * 2016-06-29 2020-09-18 杭州海康威视数字技术股份有限公司 Navigation method, device and system
CN116311870A (en) * 2016-10-09 2023-06-23 北京嘀嘀无限科技发展有限公司 Get-on point processing method, device, equipment and readable storage medium
CN108303103B (en) * 2017-02-07 2020-02-07 腾讯科技(深圳)有限公司 Method and device for determining target lane
CN107270922B (en) * 2017-06-15 2020-04-14 北京航空航天大学 Traffic accident spatial positioning method based on POI (Point of interest) index
CN111044056B (en) * 2018-10-15 2023-10-13 华为技术有限公司 Positioning method based on road matching, chip subsystem and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021282A (en) * 2016-04-29 2016-10-12 百度在线网络技术(北京)有限公司 Method and device for recognizing relations between main roads and side road
CN109489674A (en) * 2017-09-12 2019-03-19 腾讯科技(深圳)有限公司 The method, apparatus and storage medium in section are determined based on position

Also Published As

Publication number Publication date
CN113701763A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
CN110657818B (en) Method, device, equipment and storage medium for planning path of automatic driving vehicle
EP3798573A1 (en) Methods, apparatuses, electronic device and medium for acquiring map data
CN111340890B (en) Camera external parameter calibration method, device, equipment and readable storage medium
CN112013865B (en) Method, system, electronic device and medium for determining traffic gate
CN111578951B (en) Method and device for generating information in automatic driving
CN114036253B (en) High-precision map data processing method, device, electronic equipment and medium
KR102547301B1 (en) Navigation prompting method, apparatus, device and readable storage medium
CN113532456A (en) Method and device for generating navigation route
CN111597287B (en) Map generation method, device and equipment
KR20230007256A (en) Method and apparatus for fusing road data to generate a map, and electronic device
CN110796191A (en) Trajectory classification method and device
CN113701763B (en) Method and device for generating information
CN112527932A (en) Road data processing method, device, equipment and storage medium
JP2021179959A (en) Method and apparatus for updating road network data, electronic device and storage medium
CN111637899A (en) Navigation method, navigation device, electronic equipment and storage medium
CN111506586B (en) Incremental drawing method, device, electronic equipment and readable storage medium
CN111462072B (en) Point cloud picture quality detection method and device and electronic equipment
CN112527943B (en) Map rendering method, device, equipment and storage medium
CN111625612B (en) Correction method and device for high-precision map, electronic equipment and storage medium
CN111612851B (en) Method, apparatus, device and storage medium for calibrating camera
CN113008250A (en) Unmanned vehicle navigation method and device
CN114627645B (en) Method, device, equipment and storage medium for determining real-time running line of vehicle
CN113778073A (en) Robot running method, device and system applied to indoor scene
CN113012555B (en) Map display method, map display device, electronic equipment and storage medium
CN111782747A (en) Map data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant