CN111339230B - Vehicle information display method and device, electronic equipment and storage medium - Google Patents

Vehicle information display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111339230B
CN111339230B CN202010112808.4A CN202010112808A CN111339230B CN 111339230 B CN111339230 B CN 111339230B CN 202010112808 A CN202010112808 A CN 202010112808A CN 111339230 B CN111339230 B CN 111339230B
Authority
CN
China
Prior art keywords
vehicle
geographic
target
real
time
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
CN202010112808.4A
Other languages
Chinese (zh)
Other versions
CN111339230A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010112808.4A priority Critical patent/CN111339230B/en
Publication of CN111339230A publication Critical patent/CN111339230A/en
Application granted granted Critical
Publication of CN111339230B publication Critical patent/CN111339230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • 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/36Input/output arrangements for on-board computers
    • G01C21/3667Display of a road map
    • G01C21/367Details, e.g. road map scale, orientation, zooming, illumination, level of detail, scrolling of road map or positioning of current position marker
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Remote Sensing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computing Systems (AREA)
  • Navigation (AREA)

Abstract

The application discloses a vehicle information display method, a device, an electronic device and a storage medium; the method comprises the steps that a map page can be displayed, the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area and vehicle icons of vehicles around the current position; when the real-time geographic position of the vehicle is acquired, controlling the vehicle icon in the map page to smoothly move and display from a starting geographic position to a target geographic position, wherein the target geographic position is a random position in a target geographic block, and the starting geographic position is determined based on the real-time geographic position of the vehicle; according to the method and the device, the moving track of the vehicle icon can be controlled without the real track of the vehicle, so that the driving behavior of the vehicle does not need to be predicted, and the smooth moving display of the vehicle icon on the road on the map is facilitated.

Description

Vehicle information display method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a vehicle information display method and apparatus, an electronic device, and a storage medium.
Background
With the development of computer technology, smart phones are more and more popular, and various application software, such as taxi software, etc., come into play. The user can realize the taxi calling service through taxi taking software, which brings great convenience to daily life.
In the current related technology, when a user uses taxi taking software to call a taxi, nearby vehicles are displayed on a taxi taking software map, but in some technologies, the positions of the vehicles are only statically displayed on the map, and the vehicles are not moved in place; or, some vehicles do not move on the road on the map, so that the problems that the vehicles penetrate through the wall and run in the building occur, the vehicles on the map cannot move smoothly on the road, and the display effect of the vehicles is poor.
Disclosure of Invention
The embodiment of the application provides a vehicle information display method and device, electronic equipment and a storage medium, which are beneficial to displaying the smooth movement of a road of a vehicle icon on a map.
The embodiment of the application provides a vehicle information display method, which comprises the following steps:
displaying a map page, wherein the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area and vehicle icons of vehicles around the current position;
when the real-time geographic position of the vehicle is acquired, the vehicle icon in the map page is controlled to be displayed in a smooth moving mode from a starting geographic position to a target geographic position, wherein the target geographic position is a random position in a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle.
Correspondingly, the embodiment of the application provides a vehicle information display device, including:
the display unit is used for displaying a map page, the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area block and vehicle icons of vehicles around the current position;
and the control unit is used for controlling the vehicle icon in the map page to smoothly move and display from a starting geographic position to a target geographic position when the real-time geographic position of the vehicle is acquired, wherein the target geographic position is a random position in a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle.
Optionally, in some embodiments of the present application, the target geographic zone includes a geographic zone in which the current location is located or a geographic zone in which the real-time geographic location of the vehicle is located.
Optionally, in some embodiments of the present application, the vehicle information display apparatus may further include a first determining unit, an obtaining unit, and a second determining unit, as follows:
the first determining unit is configured to determine the current location, and determine a geographic area where the current location is located as a target geographic area;
the acquisition unit is used for acquiring a target block code of the target geographic block;
and the second determining unit is used for determining the identification information of the vehicle to be displayed according to the target block code.
Optionally, in some embodiments, the control unit may be configured to collect a real-time geographic location of the vehicle based on the identification information; and when the real-time geographic position of the vehicle is acquired, controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position.
Optionally, in some embodiments of the present application, the obtaining unit may include an encoding subunit and an obtaining subunit, as follows:
the encoding subunit is configured to encode each geographic block to obtain a block code set, where the block code set includes a block code corresponding to each geographic block;
an obtaining subunit, configured to extract a target block code of the target geographic block from the block code set.
Optionally, in some embodiments of the present application, the control unit may include a generation subunit and a first control subunit, as follows:
a generation subunit, configured to generate a target route of the vehicle icon based on a starting geographic position and a target geographic position of the vehicle icon;
the first control subunit is used for controlling the vehicle icon in the map page to smoothly move and show from the starting geographic position to the target geographic position along the target route.
Optionally, in some embodiments, the generating subunit may be specifically configured to generate a plurality of candidate routes of the vehicle icon based on the starting geographic position and the target geographic position of the vehicle icon; and selecting a target route of the vehicle icon from the candidate routes based on the time consumption of the routes corresponding to the candidate routes.
Optionally, in some embodiments of the present application, the control unit may include a selection subunit, an update subunit, and a second control subunit, as follows:
the selection subunit is used for selecting one real-time geographic position from the acquired real-time geographic positions when the real-time geographic positions of the vehicle are acquired and a position updating period is reached;
an update subunit for updating the current real-time geographical location based on the selected real-time geographical location;
and the second control subunit is used for controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position based on the updated real-time geographic position.
Optionally, in some embodiments of the present application, the step "acquiring the real-time geographic location of the vehicle based on the identification information" may specifically include:
acquiring a mapping relation set, wherein the mapping relation set comprises the identification information of a vehicle, the real-time geographic position of the vehicle and the mapping relation among block codes corresponding to the real-time geographic position;
and acquiring the real-time geographic position of the vehicle based on the identification information and the mapping relation set.
Optionally, in some embodiments of the present application, regarding the mapping relationship set, specifically, the mapping relationship set may include:
acquiring real-time geographical positions of vehicles acquired at preset time intervals;
acquiring a block code corresponding to the geographical block where the real-time geographical position is located;
and updating the real-time geographic position of the vehicle in the mapping relation set and the block code corresponding to the real-time geographic position.
Optionally, in some embodiments of the present application, the second determining unit may include a first determining subunit, a second determining subunit, and a third determining subunit, as follows:
the first determining subunit is used for taking the current position as a circle center and determining the radius of the range of the vehicle to be displayed;
the second determining subunit is used for determining the block codes corresponding to the geographic blocks of the vehicles needing to be displayed based on the range radius and the target block codes, wherein the block codes corresponding to the geographic blocks of the vehicles needing to be displayed are object block codes;
and the third determining subunit is used for determining the identification information of the vehicle to be displayed based on the object block codes and the mapping relation set.
Optionally, in some embodiments, the second determining subunit may be specifically configured to determine a geographic area where the vehicle needs to be displayed, based on the range radius, the target area code, and the size of the geographic area; and taking the block code corresponding to the geographical block needing to display the vehicle as the object block code.
Optionally, in some embodiments, the third determining subunit may be specifically configured to obtain a maximum coding value and a minimum coding value in the object block coding; determining a candidate vehicle from the set of mapping relationships based on the maximum encoded value and the minimum encoded value; determining the block code corresponding to the real-time geographic position of the candidate vehicle as the candidate vehicle of the object block code, and determining the candidate vehicle as the vehicle needing to be displayed; identification information of the vehicle to be displayed is acquired.
The electronic device provided by the embodiment of the application comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the vehicle information display method provided by the embodiment of the application.
In addition, the embodiment of the application also provides a storage medium, wherein a computer program is stored on the storage medium, and the computer program realizes the steps in the vehicle information display method provided by the embodiment of the application when being executed by a processor.
The embodiment of the application provides a vehicle information display method and device, electronic equipment and a storage medium, wherein a map page can be displayed, the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area and vehicle icons of vehicles around the current position; when the real-time geographic position of the vehicle is acquired, the vehicle icon in the map page is controlled to be displayed in a smooth moving mode from a starting geographic position to a target geographic position, wherein the target geographic position is a random position in a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle. According to the method and the device, the moving track of the vehicle icon can be controlled based on the real-time geographic position of the vehicle and the random position in the target geographic area, and the moving track of the vehicle icon is not controlled based on the real track of the vehicle, so that the driving behavior of the vehicle does not need to be predicted, and the smooth moving display of the vehicle icon on the road on the map is facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1a is a scene schematic diagram of a vehicle information display method provided by an embodiment of the present application;
FIG. 1b is a flowchart of a vehicle information display method provided by an embodiment of the present application;
FIG. 1c is a diagram illustrating an example of a method for displaying vehicle information according to an embodiment of the present disclosure;
FIG. 1d is a diagram illustrating a code relationship of a vehicle information display method according to an embodiment of the present disclosure;
FIG. 1e is a diagram of another example of a vehicle information display method provided in an embodiment of the present application;
FIG. 1f is a diagram of another example of a vehicle information display method according to an embodiment of the present disclosure;
fig. 1g is a map page display diagram of a vehicle information display method provided in the embodiment of the present application;
fig. 1h is a diagram illustrating another map page of the vehicle information display method according to the embodiment of the present disclosure;
FIG. 1i is a diagram illustrating another map page of a vehicle information display method according to an embodiment of the present disclosure;
FIG. 1j is another flow chart of a method for displaying vehicle information provided by an embodiment of the present application;
FIG. 1k is a schematic diagram of a geographic area of a vehicle information display method according to an embodiment of the present disclosure;
FIG. 2a is another flowchart of a vehicle information display method provided by an embodiment of the present application;
FIG. 2b is another flowchart of a method for displaying vehicle information provided by an embodiment of the present application;
FIG. 3a is a schematic structural diagram of a vehicle information display device provided in an embodiment of the present application;
FIG. 3b is a schematic structural diagram of a vehicle information display device according to an embodiment of the present disclosure;
FIG. 3c is a schematic structural diagram of a vehicle information display device according to an embodiment of the present disclosure;
FIG. 3d is a schematic structural diagram of a vehicle information display device according to an embodiment of the present disclosure;
FIG. 3e is a schematic structural diagram of a vehicle information display device according to an embodiment of the present disclosure;
FIG. 3f is a schematic structural diagram of a vehicle information display device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is an alternative structural diagram of the distributed system 100 applied to the blockchain system according to the embodiment of the present application;
fig. 6 is an alternative schematic diagram of a block structure provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a vehicle information display method and device, electronic equipment and a storage medium. Specifically, the embodiment of the present application provides a vehicle information display device suitable for an electronic device, which may be a terminal or a server.
It is understood that the vehicle information display method of the present embodiment may be executed on the terminal, may be executed on the server, or may be executed by both the terminal and the server.
Referring to fig. 1a, a method for displaying vehicle information by a terminal and a server is taken as an example. The vehicle information display system provided by the embodiment of the application comprises a terminal 10, a server 11 and the like; the terminal 10 and the server 11 are connected via a network, such as a wired or wireless network, wherein the vehicle information display device may be integrated in the terminal, for example, in the terminal 10 in the form of a client, which may be an application client or the like.
A terminal 10 operable to: displaying a map page, wherein the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area and vehicle icons of vehicles around the current position; when the real-time geographic position of the vehicle is acquired, the vehicle icon in the map page is controlled to be displayed in a smooth moving mode from a starting geographic position to a target geographic position, wherein the target geographic position is a random position in a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle. The terminal 10 may include a mobile phone, a tablet Computer, a notebook Computer, a Personal Computer (PC), or the like.
When detecting that the application program is started, the terminal 10 may send a nearby vehicle display request to the server 11 to trigger the server 11 to obtain target route data of a vehicle icon to be displayed based on the nearby vehicle display request, where the nearby vehicle display request includes a current position of the terminal, and the target route data is generated based on a starting geographic position and a target geographic position of the vehicle icon; the terminal 10 receives the target route data sent by the server 11 again, and controls the vehicle icon in the map page to smoothly move and show from the starting geographic position to the target geographic position along the target route based on the target route data.
The server 11 may be configured to, when receiving a peripheral vehicle display request sent by the terminal 10, obtain target route data, and send the target route data to the terminal 10. The server 11 may be a single server or a server cluster including a plurality of servers.
The specific process of acquiring the target route data may include: determining the current position, and determining a geographical block in which the current position is located as a target geographical block; acquiring a target block code of the target geographic block; determining the identification information of the vehicle to be displayed according to the target block code; acquiring a real-time geographic location of the vehicle based on the identification information; when the real-time geographic position of the vehicle is acquired, determining a starting geographic position based on the real-time geographic position of the vehicle, and generating a target route of the vehicle icon based on the starting geographic position and the target geographic position of the vehicle icon.
The above-described process of acquiring the target route data by the server 11 may be executed by the terminal 10.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The first embodiment,
The embodiment of the present application will be described in terms of a vehicle information display device, which may be specifically integrated in an electronic device, where the electronic device may be a server or a terminal.
The vehicle information display device of the embodiment of the application can be applied to scenes displayed by various surrounding vehicles to display vehicle information, for example, the vehicle information display device can be applied to scenes of taxi taking in network taxi appointment business, after an application program of taxi taking is started, a map page is displayed, the map page comprises vehicle icons, and the vehicle icons are controlled to move smoothly from the initial geographic position to the target geographic position along a target route on the map for displaying.
As shown in fig. 1b, the specific flow of the vehicle information display method is as follows:
101. and displaying a map page, wherein the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area and vehicle icons of vehicles around the current position.
The current position can be the current position of the terminal, and the vehicle icon is a vehicle identifier corresponding to the actual vehicle in the map page. The vehicle around the current position may be a vehicle within a preset area range centered on the current position, and the preset area range may be set according to an actual situation, which is not limited in this embodiment. For example, the setting may be performed according to the density of the surrounding vehicles, and if the density of the surrounding vehicles is high, the preset area range may be set to be small; if the density of the surrounding vehicles is small, the preset area range may be set to be large.
The geographic area can be obtained by dividing the map in various ways, and can be particularly divided according to actual requirements, which is not limited in this embodiment; such as geographic zones, may be partitioned into latitude and longitude of the earth. In addition, the divided geographical area can be coded.
For example, the geographical zone may be encoded by a geographical hash (geoHash) algorithm to encode the first place for a specific description, assuming that the latitude of the first place is 39.928167 and the longitude is 116.389550, see fig. 1 c. Firstly, carrying out approximate coding on latitude 39.928167 by a geoHash algorithm, wherein the latitude interval of the earth is [ -90,90], firstly carrying out binary division on the interval [ -90,90] into [ -90,0), [0,90], namely left and right intervals, and determining that 39.928167 belongs to the right interval [0,90], and marking as 1; then, dividing the interval [0,90] into [0,45 ], [45,90], determining 39.928167 as belonging to the left interval [0,45 ], and marking as 0; recursion the above procedure 39.928167 always belongs to a certain interval a, b. As each iteration interval [ a, b ] is always shrinking and is approaching 39.928167; if a given latitude x (39.928167) belongs to the left bin, then 0 is recorded, and if it belongs to the right bin, then 1 is recorded, thus producing a sequence 1011100 as the algorithm proceeds, the length of the sequence being related to the number of divisions of the given bin. Similarly, the Earth longitude interval is [ -180,180], and longitude 116.389550 may be encoded. By the above calculation, the latitude-generated code is 1011100011, and the longitude-generated code is 1101001011. Longitude can be placed at even positions, latitude can be placed at odd positions, and the two strings of codes are combined to generate a new string: 11100111010010001111. the binary coded decimal value is 7325935, which is the hash index value (hashIndex) of the geographic tile; finally, base32 (base32) coding is carried out by using 32 letters of 0-9 and b-z (a, i, l and o are removed), 11100111010010001111 is firstly converted into decimal corresponding to 28, 29, 4 and 15 respectively, and the decimal corresponding code is wx4g which is the geographic hash (geoHash) value of the geographic area where the longitude and latitude are located. Similarly, the decoding algorithm for converting the codes into the latitudes and longitudes is opposite to that, and details are not described again.
The digital coding correspondence of the base32 coding algorithm is shown in fig. 1 d. Each letter or number in the geoHash is composed of 5bits (2^5 ^ 32), the 5bits can have different combinations (0-31) in 32, and 32 areas can be identified by 00000-11111. The sequence of 0 and 1 strings in the geoHash algorithm is formed by alternately arranging numbers in a longitude 0 and 1 sequence and a latitude 0 and 1 sequence, the sequence corresponding to even bits is a longitude sequence, the sequence corresponding to odd bits is a latitude sequence, when a map is divided for the first time, the first 5bits (11100) in the 0 and 1 sequences in the geoHash algorithm exist, 3bits in the 5bits represent longitude, and 2bits represent latitude, so that the longitude is divided into 8 sections (2^3 ^ 8) and the latitude is divided into 4 sections (2^ 4) in the first time of dividing, and 32 areas are formed. Similarly, the 32 regions obtained by the first division can be divided again in the manner adopted by the first division, and so on.
The geoHash algorithm is essentially a mode of spatial indexing, the basic principle of the geoHash algorithm is that the earth is understood as a two-dimensional plane, the plane is decomposed into smaller sub-blocks in a recursive mode, each sub-block has the same code in a certain latitude and longitude range, and the mode can meet the requirement of carrying out latitude and longitude retrieval on small-scale data. Specifically, the geoHash can convert the latitude and longitude of two dimensions into character strings, as shown in fig. 1e, the geoHash character strings of 9 beijing regions are shown, which are WX4ER, WX4G2, WX4G3, and the like, respectively, and each character string represents a certain rectangular region. That is, all points (longitude and latitude coordinates) in the rectangular area share the same geoHash character string, so that privacy can be protected, only approximate area positions are represented instead of specific points, and caching is easier. The geoIndex value is a decimal code of a block with a certain latitude and longitude calculated by the geoHash algorithm, for example, the geoIndex of the block with 39.928167 and 116.389550 in the above example is 7325935. The geoHash value is calculated by the geoHash algorithm for a block with a certain latitude and longitude, for example, the geoHash value in the above example is 39.928167, and the geoHash value in the block with the longitude 116.389550 is wx4 g.
Note that different coding lengths indicate different range sections. The longer the geoHash string, the smaller the range of representation and the more precise the position. We can therefore determine the approximate distance between two points by comparing the number of bits of the geoHash match. Referring to fig. 1f, the accuracy is around 610 meters when the base32 code length for the geoHash value is 6, and around 19 meters when the code length is 8.
102. When the real-time geographic position of the vehicle is acquired, the vehicle icon in the map page is controlled to be displayed in a smooth moving mode from a starting geographic position to a target geographic position, wherein the target geographic position is a random position in a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle.
The geographic area may be obtained by dividing the map in various ways, and may be specifically divided according to actual requirements, which is not limited in this embodiment.
Optionally, in some embodiments, the target geographic zone may include a geographic zone in which the current location is located or a geographic zone in which the real-time geographic location of the vehicle is located.
The target geographic zone may be a geographic zone where the current position is located, or a geographic zone where the real-time geographic position of the vehicle is located. For example, a portion of the vehicle icons may be moved smoothly from the starting geographic location to the target geographic location with a random position within the geographic zone in which the current location is located as the target geographic location; and the other part of the vehicle icons are smoothly moved from the starting geographic position to the target geographic position by taking the random position in the geographic area where the real-time geographic position of the vehicle is located as the target geographic position, so that the vehicle icons on the map page do not all run towards the current position, and the display effect is more natural and real.
For example, in an embodiment, the target geographic area may be a geographic area where the real-time geographic location of the vehicle is located, and if the geographic area is obtained by dividing the map based on the geoHash algorithm in step 101, and the length of the geoHash value of the geographic area is 6, that is, the precision of the geoHash value is about 610 meters, the target geographic location is a random location in the target geographic area of 610m × 610 m.
Optionally, the geographic area may be determined according to the partition of the map, and the area range indicated by the geographic area is different based on different partition modes. Specifically, the target geographic zone may refer to a certain area where the current position is located, or may be a certain area where the real-time geographic position of the vehicle is located. In one embodiment, the target geographical area may be a certain area centered on the current location (x, y) of the terminal, where x is longitude and y is latitude. For example, the target geographic zone may be a 400m x 400m grid centered on the current position (x, y) of the terminal, and the target geographic location is a random position in the 400m x 400m grid centered on the current position (x, y) of the terminal.
It will be understood that the above examples should not be construed as limiting the present embodiments.
When the real-time geographic position of the vehicle is acquired every time, the position of the current vehicle icon in the map page is acquired, if the position is consistent with the acquired real-time geographic position of the vehicle, the acquired real-time geographic position of the vehicle can be used as the starting geographic position of the route planning, the starting geographic position is used as the starting point, the target geographic position is used as the end point, the target route of the vehicle icon is acquired, and the vehicle icon is controlled to move smoothly from the starting geographic position to the target geographic position along the target route in the map page; if the position of the current vehicle icon is inconsistent with the collected real-time geographic position of the vehicle, the position of the current vehicle icon is used as an initial geographic position of the route planning, the initial geographic position is used as a starting point, the target geographic position is used as a terminal point, a target route of the vehicle icon is obtained, the target route passes through or approaches the collected real-time geographic position of the vehicle, the motion track of the vehicle icon is adjusted based on the real-time geographic position of the vehicle, the vehicle icon is prevented from deviating too much from the actual motion track of the vehicle, and the vehicle icon is controlled to move smoothly from the initial geographic position to the target geographic position in a map page to be displayed based on the target route.
Optionally, in some embodiments, the step of controlling the vehicle icon to smoothly move and show from the starting geographic position to the target geographic position in the map page may include:
generating a target route for the vehicle icon based on the starting geographic location and the target geographic location of the vehicle icon;
controlling the vehicle icon in the map page to smoothly move and show from a starting geographic position to a target geographic position along the target route.
The route planning service program can be called by starting a plurality of threads, a target route from the starting geographic position to the target geographic position of the vehicle icon is calculated, and the vehicle icon is controlled to smoothly move and display from the starting geographic position to the target geographic position along the target route based on the calculated target route. Optionally, a trolley smooth movement toolkit may be invoked to ensure that the vehicle icons move smoothly on the roads of the map page; specifically, a route planning service program is called to obtain data of a target route from an initial geographic position to a target geographic position of a vehicle icon, the data is written into a trolley smooth moving tool package, the data can contain longitude and latitude point string coordinates, mileage, distance consumed time and other information of the target route, the trolley smooth moving tool package comprises a map tool module, and the vehicle icon can be enabled to move smoothly on a road of a map page along the longitude and latitude point string coordinates of the target route through the map tool module based on the longitude and latitude point string coordinates, the mileage and the distance consumed time. The moving effect can be seen in fig. 1g, 1h and 1i, where fig. 1g, 1h and 1i are moving display diagrams of vehicle icons continuously spaced by several seconds.
Optionally, in some embodiments, the step "generating the target route of the vehicle icon based on the starting geographic location and the target geographic location of the vehicle icon" may include:
generating a plurality of candidate routes for the vehicle icon based on the starting geographic location and the target geographic location of the vehicle icon;
and selecting a target route of the vehicle icon from the candidate routes based on the time consumption of the routes corresponding to the candidate routes.
Wherein the journey elapsed time is the time elapsed for the vehicle icon to travel along the candidate route from the starting geographic location to the target geographic location.
Optionally, in some embodiments, a route planning service may be invoked to calculate a candidate route, a total mileage, and a total route time taken by the vehicle icon from the starting geographic location to the target geographic location; and selecting the candidate route with the shortest route time consumption as the target route based on the total route time consumption.
Optionally, in some embodiments, the step of controlling the vehicle icon to smoothly move from the starting geographic position to the target geographic position in the map page when the real-time geographic position of the vehicle is acquired may include:
when the real-time geographic positions of the vehicle are acquired and a position updating period is reached, selecting one real-time geographic position from the acquired real-time geographic positions;
updating the current real-time geographic location based on the selected real-time geographic location;
and controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position based on the updated real-time geographic position.
And the position updating period is an updating period of the real-time geographic position, and the route of the vehicle icon on the map page is re-planned based on the updated real-time geographic position. The location update period may be set according to actual conditions, but in order to prevent the vehicle icon from deviating too much from the actual motion trajectory of the vehicle, the location update period is generally set to be relatively small. The location update period may be set to 5s to 10s, etc., and this embodiment does not limit this.
Optionally, in this embodiment, the driver end may report the motion track point information continuously, the driver end may specifically be a mobile phone application used by the driver to receive the order in the network appointment software, and the motion track point information may include a positioning data source, a positioning time, a real-time geographic position, accuracy, speed, direction, and the like of the vehicle; the Positioning data sources may include base station Positioning, Global Positioning System (GPS) Positioning, Wireless-Fidelity (Wifi) Positioning, and the like. Specifically, the driver end can upload the real-time geographic position of the vehicle at preset intervals, the preset time is less than the position updating period, and the passenger end can acquire the real-time geographic position of the vehicle uploaded by the driver end. For example, the preset time may be 1s, and the location update period may be set to 10s, so when the real-time geographic location of the vehicle is acquired and the location update period is reached, one real-time geographic location may be selected from the acquired 10 real-time geographic locations, and the latest real-time geographic location is generally preferred.
In this embodiment, the current real-time geographic location may be updated based on the re-acquired real-time geographic location, and the route may be re-planned, controlling the vehicle icon to move on the map page along the re-planned route.
Optionally, in some embodiments, before the step "when the real-time geographic location of the vehicle is collected and the location update cycle is reached, selecting a real-time geographic location from the collected real-time geographic locations" may further include:
determining the time consumed by the journey corresponding to the target route from the starting geographic position to the target geographic position of each vehicle icon;
determining the minimum distance consumed time in all distance consumed times;
and taking the minimum distance consumed time as a position updating period.
Optionally, in some embodiments of the present application, the vehicle information display method may further include:
determining the current position, and determining a geographical block in which the current position is located as a target geographical block;
acquiring a target block code of the target geographic block;
determining the identification information of the vehicle to be displayed according to the target block code;
when the real-time geographic position of the vehicle is acquired, controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position, wherein the method comprises the following steps:
acquiring a real-time geographic location of the vehicle based on the identification information;
and when the real-time geographic position of the vehicle is acquired, controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position.
Before the step of "obtaining the target block code of the target geographic block", the method may further include:
coding each geographical block to obtain a block code set, wherein the block code set comprises block codes corresponding to each geographical block;
the obtaining of the target block code of the target geographic block includes:
extracting a target block code for the target geographic block from the set of block codes.
Optionally, the geoHash algorithm may be used to encode each geographic area, and the specific encoding process may be described in step 101. For example, the block code set may specifically pre-code the geographic block and store the pre-coded geographic block in the database, for example, the block code set may store the pre-coded geographic block in a shared account of the block chain, and when the target block code needs to be acquired, the target block code of the target geographic block is extracted from the shared account of the block chain based on the information of the target geographic block and provided to the vehicle information display device.
For another example, the target block code may be obtained by real-time calculation. It is understood that the process of real-time computation may be performed on the server or the terminal. The target block code of the target geographic block may be obtained by coding based on the latitude and longitude information of the target geographic block, and the specific coding process may be described in step 101.
Optionally, in some embodiments, the step of "collecting the real-time geographic location of the vehicle based on the identification information" may include:
acquiring a mapping relation set, wherein the mapping relation set comprises the identification information of a vehicle, the real-time geographic position of the vehicle and the mapping relation among block codes corresponding to the real-time geographic position;
and acquiring the real-time geographic position of the vehicle based on the identification information and the mapping relation set.
The mapping relationship set may be a relationship table of identification information of the vehicle, a real-time geographic location of the vehicle, and a block code corresponding to the real-time geographic location. And searching the real-time geographic position of the corresponding vehicle from the relation table based on the identification information of the vehicle.
The set of mapping relationships may also be an ordered set (zset) of a Remote Dictionary Server (Remote Dictionary Server). Redis is a high-performance key-value (key-value) database, a memory storage system. It is generally called a data structure server, and supports more types of stored values (values), which may be of types such as String (String), Hash (Hash), list (list), set (sets), and ordered set (zset, sorted sets). The zset of Redis is a set of string type elements and no duplicate members are allowed, each element being associated with a double precision (double) type score (score). Redis is precisely the ordering of members in a collection from small to large by scores.
In this embodiment, the Redis may store identification information of the vehicle, a real-time geographic location of the vehicle, and a block code corresponding to the real-time geographic location. In Redis, a keyword (key) is identification information of a vehicle, specifically, an identification number (id) of a driver or a license plate number, and the like, and stored data is the latest real-time geographic position of the vehicle; the score (score) may be a geographic index value (geoIndex) for each geographic zone, and the stored data is identification information of the vehicle. The real-time geographic position of the vehicle can be acquired from Redis by taking the identification information of the vehicle as a key.
The mapping relationship set may be continuously updated, and the specific process may include:
acquiring real-time geographical positions of vehicles acquired at preset time intervals;
acquiring a block code corresponding to the geographical block where the real-time geographical position is located;
and updating the real-time geographic position of the vehicle in the mapping relation set and the block code corresponding to the real-time geographic position.
In some embodiments, the vehicle uploads a current real-time geographic location every preset time in the driving process, where the preset time may be set according to an actual situation, and this embodiment is not limited to this, for example, the preset time may be set to 1s, and the vehicle uploads a real-time geographic location every 1 s.
Optionally, the latest uploaded real-time geographic position of the vehicle may be stored in the mapping relationship set, and the real-time geographic position in the mapping relationship set is updated, and in addition, the block code corresponding to the geographic block where the latest uploaded real-time geographic position is located may also be obtained, and the block code corresponding to the real-time geographic position in the mapping relationship set is updated. Referring to fig. 1j, the vehicle may upload a current real-time geographic location to the background at a frequency of 1 time per second, the background calculates a geographic index value of the real-time geographic location, and stores identification information of the vehicle in an ordered set (zset) of a remote dictionary server (Redis), wherein the ordered set may be divided into a plurality of subsets, each subset represents each geographic zone, i.e., corresponds to one grid, if a six-bit geographic hash value is used, the length and width of the geographic zone corresponding to each grid may be about 610 meters in particular, a score (score) may be set as a geographic index value of each geographic zone (grid), and the stored data is the identification information of the vehicle, i.e., stores the identification information of the vehicle in the corresponding grid, which is the geographic index value of the current real-time geographic location of the vehicle, which may be embodied in some embodiments as moving the storage location of the identification information of the vehicle from another grid to the latest real-time geographic location Storing the grids of the corresponding geographic zone; meanwhile, the real-time geographic position of the vehicle needs to be updated to the latest real-time geographic position, and the latest real-time geographic position of the vehicle is stored in Redis. Optionally, in some embodiments, the step of "determining identification information of a vehicle to be displayed according to the target block code" may include:
taking the current position as a circle center, and determining the radius of the range of the vehicle to be displayed;
determining a block code corresponding to a geographical block where the vehicle needs to be displayed based on the range radius and the target block code, wherein the block code corresponding to the geographical block where the vehicle needs to be displayed is an object block code;
and determining the identification information of the vehicle to be displayed based on the object block codes and the mapping relation set.
The mapping relationship set may be a relationship table of identification information of the vehicle, a real-time geographic position of the vehicle, and a block code corresponding to the real-time geographic position, or may be an ordered set (zset) of a remote dictionary server (Redis). Identification information of the vehicle to be displayed can be acquired from the relation table or Redis based on the object block codes.
The step of determining the block code corresponding to the geographic block where the vehicle needs to be displayed based on the range radius and the target block code may specifically include:
determining a geographic zone in which a vehicle needs to be displayed based on the range radius, the target zone code, and the size of the geographic zone;
and taking the block code corresponding to the geographical block needing to display the vehicle as the object block code.
The radius of the range in which the vehicle needs to be displayed may be set by the user, or may be preset by the vehicle information display device, which is not limited in this embodiment. Determining the position range of the vehicle to be displayed based on the range radius of the vehicle to be displayed and the target block code; and determining the geographical area needing to display the vehicle according to the size of each geographical area and the position range needing to display the vehicle.
For example, the geographic hash algorithm geoHash may be used to encode geographic zones, obtain geographic index values of the geographic zones where vehicles need to be displayed by using the radius of the range where vehicles need to be displayed, and efficiently query identification information of vehicles in the geographic zones. As shown in fig. 1k, each grid in the graph represents a geographic area, that is, a coverage range of a geoHash is represented, numbers in the grids represent a geoIndex value geoIndex of the geographic area, if the geoIndex corresponding to the target geographic area is 154, the radius of the range of the vehicle needs to be displayed to be 1km, if a 6-bit geoHash is used during storage, the precision of the length and the width of the geographic area is about 610m, and therefore, the geoIndex value of a grid 2 circles around the grid with the geoIndex of 154 needs to be obtained, and the geoIndex of the grid 2 circles around the grid can be calculated by using a geoHash library (libgehash) (which can be implemented by c + +) of the invention of drick Smith (Derek Smith). The grids of the geoIndex 154 and the grids of 2 circles around the grid of the geoIndex 154 are geographical areas where the vehicles need to be displayed, and the block codes corresponding to the geographical areas where the vehicles need to be displayed are used as target block codes.
The step of determining the identification information of the vehicle to be displayed based on the object block code and the mapping relationship set may specifically include:
acquiring a maximum coding value and a minimum coding value in the object block coding;
determining a candidate vehicle from the set of mapping relationships based on the maximum encoded value and the minimum encoded value;
determining the block code corresponding to the real-time geographic position of the candidate vehicle as the candidate vehicle of the object block code, and determining the candidate vehicle as the vehicle needing to be displayed;
identification information of the vehicle to be displayed is acquired.
The step of "determining candidate vehicles from the mapping relationship set based on the maximum code value and the minimum code value" may specifically include:
and determining the vehicles with the block codes of the geographic block where the vehicles are located in the mapping relation set between the minimum code value and the maximum code value as candidate vehicles.
As shown in fig. 1k, if the grid with geoIndex 154 and the grid 2 circles around the grid with geoIndex 154 are the geographical areas where the vehicles need to be displayed, the maximum code value is 182 and the minimum code value is 134 in the geographical index values of the grid 2 circles around the grid with geoIndex 154. And the vehicles with the geographic index values of 134-182 are candidate vehicles, the candidate vehicles with the block codes corresponding to the real-time geographic positions of the candidate vehicles not belonging to the object block codes are filtered, and the block codes corresponding to the real-time geographic positions of the candidate vehicles belong to the candidate vehicles of the object block codes, so that the candidate vehicles are determined to be the vehicles needing to be displayed. For example, if the set of mapping relationships is zset of redis, because redis is obtained by sorting members in the set from small to large according to scores, the range of the score to be queried is 134 to 182 according to the range search, and a geographic area outside 2 circles of grids around the grid with the geoIndex of 154 is selected, so after data is queried by using redis, it is necessary to determine whether the score of the queried data is in the geographic area where the current position of the user is located, that is, the grid with the geoIndex of 154 and the grid with 2 circles around the grid with the geoIndex of 154, and if not, the block code of the grid corresponding to the score of the data does not belong to the object block code, the grid is an invalid grid, that is, the data is invalid data and needs to be filtered out.
Optionally, in some embodiments, the step of "determining identification information of a vehicle to be displayed according to the target block code" may include:
determining candidate vehicles according to the target block codes;
acquiring vehicle state information of the candidate vehicle;
determining the candidate vehicle with the vehicle state information meeting the preset condition as a vehicle needing to be displayed;
identification information of the vehicle to be displayed is determined.
Wherein the candidate vehicle may be a vehicle around the current position of the passenger; the vehicle state information may specifically be the current state of the vehicle, such as in a bill of hearing or in a service, etc. The preset condition may be set according to the needs of the customer, for example, the customer only wants to see information of an empty vehicle, and the preset condition may be that the vehicle state is empty, that is, in the order, the candidate vehicle is filtered again according to the vehicle state information to obtain the vehicle required by the customer.
Optionally, in some embodiments, the vehicle type of the vehicle, such as a luxury vehicle, a express bus, and the like, may also be obtained according to the need of the customer for the vehicle type, and the vehicle is filtered according to the vehicle type based on the need of the customer, so as to obtain the vehicle that meets the need of the customer.
As can be seen from the above, the present embodiment may display a map page, where the map page includes a map corresponding to the current location, and the map includes at least one geographic area and vehicle icons of vehicles around the current location; when the real-time geographic position of the vehicle is acquired, the vehicle icon in the map page is controlled to be displayed in a smooth moving mode from a starting geographic position to a target geographic position, wherein the target geographic position is a random position in a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle. According to the method and the device, the moving track of the vehicle icon can be controlled based on the real-time geographic position of the vehicle and the random position in the target geographic area, and the moving track of the vehicle icon is not controlled based on the real track of the vehicle, so that the driving behavior of the vehicle does not need to be predicted, and the smooth moving display of the vehicle icon on the road on the map is facilitated.
Example II,
The following will explain in further detail an example in which the vehicle information display device is specifically integrated in a terminal according to the method described in the foregoing embodiment.
An embodiment of the present application provides a vehicle information display method, as shown in fig. 2a, a specific process of the vehicle information display method may be as follows:
201. the terminal displays a map page, wherein the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area and vehicle icons of vehicles around the current position.
The vehicle information display device can be integrated in the terminal, for example, the vehicle information display device can be integrated in the terminal in the form of a client, the client can be an application client, specifically, the client can be a passenger terminal, namely, mobile phone application software used for passenger taxi taking in network taxi appointment software, and the passenger can use the application client to take a taxi. The current position is the current position of the terminal, namely the current position of the passenger. The vehicle icon is a vehicle identifier corresponding to the actual vehicle in the map page. The vehicle around the current position may be a vehicle within a preset area range centered on the current position, and the preset area range may be set according to an actual situation, which is not limited in this embodiment. For example, the setting may be performed according to the density of the surrounding vehicles, and if the density of the surrounding vehicles is high, the preset area range may be set to be small; if the density of the surrounding vehicles is small, the preset area range may be set to be large.
The geographic area can be obtained by dividing the longitude and latitude of the earth. In addition, the divided geographical area can be coded.
For example, the geographic region may be encoded by a geographic hash (geoHash) algorithm, and the specific encoding process may refer to the description in step 101.
202. When the real-time geographic position of the vehicle is acquired, the terminal controls the vehicle icon in the map page to move smoothly from a starting geographic position to a target geographic position for displaying, wherein the target geographic position is a random position in a target geographic block, and the starting geographic position is determined based on the real-time geographic position of the vehicle.
The geographic area may be obtained by dividing the map in various ways, and may be specifically divided according to actual requirements, which is not limited in this embodiment.
Optionally, in some embodiments, the target geographic zone includes a geographic zone in which the current location is located or a geographic zone in which a real-time geographic location of the vehicle is located.
The target geographic zone may be a geographic zone where the current position is located, or a geographic zone where the real-time geographic position of the vehicle is located. For example, a portion of the vehicle icons may be moved smoothly from the starting geographic location to the target geographic location with a random position within the geographic zone in which the current location is located as the target geographic location; and the other part of the vehicle icons are smoothly moved from the starting geographic position to the target geographic position by taking the random position in the geographic area where the real-time geographic position of the vehicle is located as the target geographic position, so that the vehicle icons on the map page do not all run towards the current position, and the display effect is more natural and real.
For example, in an embodiment, the target geographic area may be a geographic area where the real-time geographic location of the vehicle is located, and if the geographic area is obtained by dividing the map based on the geoHash algorithm in step 101, and the length of the geoHash value of the geographic area is 6, that is, the precision of the geoHash value is about 610 meters, the target geographic location is a random location in the target geographic area of 610m × 610 m.
Optionally, the geographic area may be determined according to the partition of the map, and the area range indicated by the geographic area is different based on different partition modes. Specifically, the target geographic zone may refer to a certain area where the current position is located, or may be a certain area where the real-time geographic position of the vehicle is located. In one embodiment, the target geographical area may be a certain area centered on the current location (x, y) of the terminal, where x is longitude and y is latitude. For example, the target geographic zone may be a 400m x 400m grid centered on the current position (x, y) of the terminal, and the target geographic location is a random position in the 400m x 400m grid centered on the current position (x, y) of the terminal.
It will be understood that the above examples should not be construed as limiting the present embodiments. When the real-time geographic position of the vehicle is acquired every time, the position of the current vehicle icon in the map page is acquired, if the position is consistent with the acquired real-time geographic position of the vehicle, the acquired real-time geographic position of the vehicle can be used as the starting geographic position of the route planning, the starting geographic position is used as the starting point, the target geographic position is used as the end point, the target route of the vehicle icon is acquired, and the vehicle icon is controlled to move smoothly from the starting geographic position to the target geographic position along the target route in the map page; if the position of the current vehicle icon is inconsistent with the collected real-time geographic position of the vehicle, the position of the current vehicle icon is used as an initial geographic position of the route planning, the initial geographic position is used as a starting point, the target geographic position is used as a terminal point, a target route of the vehicle icon is obtained, the target route passes through or approaches the collected real-time geographic position of the vehicle, the motion track of the vehicle icon is adjusted based on the real-time geographic position of the vehicle, the vehicle icon is prevented from deviating too much from the actual motion track of the vehicle, and the vehicle icon is controlled to move smoothly from the initial geographic position to the target geographic position in a map page to be displayed based on the target route. Optionally, in some embodiments, the step of controlling the vehicle icon to smoothly move and show from the starting geographic position to the target geographic position in the map page may include:
generating a target route for the vehicle icon based on the starting geographic location and the target geographic location of the vehicle icon;
controlling the vehicle icon in the map page to smoothly move and show from a starting geographic position to a target geographic position along the target route.
The route planning service program can be called by starting a plurality of threads, a target route from the starting geographic position to the target geographic position of the vehicle icon is calculated, and the vehicle icon is controlled to smoothly move and display from the starting geographic position to the target geographic position along the target route based on the calculated target route. Optionally, a trolley smooth movement toolkit may be invoked to ensure that the vehicle icons move smoothly on the roads of the map page; specifically, a route planning service program is called to obtain data of a target route from an initial geographic position to a target geographic position of a vehicle icon, the data is written into a trolley smooth moving tool package, the data can contain longitude and latitude point string coordinates, mileage, distance consumed time and other information of the target route, the trolley smooth moving tool package comprises a map tool module, and the vehicle icon can be enabled to move smoothly on a road of a map page along the longitude and latitude point string coordinates of the target route through the map tool module based on the longitude and latitude point string coordinates, the mileage and the distance consumed time.
Optionally, in some embodiments, the step of controlling the vehicle icon to smoothly move from the starting geographic position to the target geographic position in the map page when the real-time geographic position of the vehicle is acquired may include:
when the real-time geographic positions of the vehicle are acquired and a position updating period is reached, selecting one real-time geographic position from the acquired real-time geographic positions;
updating the current real-time geographic location based on the selected real-time geographic location;
and controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position based on the updated real-time geographic position.
And the position updating period is an updating period of the real-time geographic position, and the route of the vehicle icon on the map page is re-planned based on the updated real-time geographic position. The location update period may be set according to actual conditions, but in order to prevent the vehicle icon from deviating too much from the actual motion trajectory of the vehicle, the location update period is generally set to be relatively small. The location update period may be set to 5s to 10s, etc., and this embodiment does not limit this.
Optionally, in this embodiment, the driver end may upload the real-time geographic position of the vehicle at intervals of a preset time, where the preset time is less than the position update period, the driver end may specifically be a mobile phone application used by a driver to receive an order from a driver in the network appointment software, and the passenger end may obtain the real-time geographic position of the vehicle uploaded by the driver end. For example, the preset time may be 1s, and the location update period may be set to 10s, so when the real-time geographic location of the vehicle is acquired and the location update period is reached, one real-time geographic location may be selected from the acquired 10 real-time geographic locations, and the latest real-time geographic location is generally preferred.
In this embodiment, the current real-time geographic location may be updated based on the re-acquired real-time geographic location, and the route may be re-planned, controlling the vehicle icon to move on the map page along the re-planned route.
Optionally, in some embodiments, before the step "when the real-time geographic location of the vehicle is collected and the location update cycle is reached, selecting a real-time geographic location from the collected real-time geographic locations" may further include:
determining the time consumed by the journey corresponding to the target route from the starting geographic position to the target geographic position of each vehicle icon;
determining the minimum distance consumed time in all distance consumed times;
and taking the minimum distance consumed time as a position updating period.
Optionally, in some embodiments of the present application, the vehicle information display method may further include:
determining the current position, and determining a geographical block in which the current position is located as a target geographical block;
acquiring a target block code of the target geographic block;
determining the identification information of the vehicle to be displayed according to the target block code;
when the real-time geographic position of the vehicle is acquired, controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position, wherein the method comprises the following steps:
acquiring a real-time geographic location of the vehicle based on the identification information;
and when the real-time geographic position of the vehicle is acquired, controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position.
Before the step of "obtaining the target block code of the target geographic block", the method may further include:
coding each geographical block to obtain a block code set, wherein the block code set comprises block codes corresponding to each geographical block;
the obtaining of the target block code of the target geographic block includes:
extracting a target block code for the target geographic block from the set of block codes.
Wherein, a geoHash algorithm may be used to encode each geographic area, and the specific encoding process may be described in step 101.
Optionally, in some embodiments, the step of "collecting the real-time geographic location of the vehicle based on the identification information" may include:
acquiring a mapping relation set, wherein the mapping relation set comprises the identification information of a vehicle, the real-time geographic position of the vehicle and the mapping relation among block codes corresponding to the real-time geographic position;
and acquiring the real-time geographic position of the vehicle based on the identification information and the mapping relation set.
For example, the set of mapping relationships may also be an ordered set (zset) of a Remote Dictionary service (Remote Dictionary Server). It is a collection of string type elements and no repeating members are allowed. Each element is associated with a score (score) of double precision (double) type. Redis is precisely the ordering of members in a collection from small to large by scores.
In this embodiment, the Redis may store identification information of the vehicle, a real-time geographic location of the vehicle, and a block code corresponding to the real-time geographic location. In Redis, a keyword (key) is identification information of a vehicle, specifically, an identification number (id) of a driver or a license plate number, and the like, and stored data is the latest real-time geographic position of the vehicle; the score (score) may be a geographic index value (geoIndex) for each geographic zone, and the stored data is identification information of the vehicle. The real-time geographic position of the vehicle can be acquired from Redis by taking the identification information of the vehicle as a key.
The mapping relationship set may be continuously updated, and the specific process may include:
acquiring real-time geographical positions of vehicles acquired at preset time intervals;
acquiring a block code corresponding to the geographical block where the real-time geographical position is located;
and updating the real-time geographic position of the vehicle in the mapping relation set and the block code corresponding to the real-time geographic position.
In some embodiments, the vehicle uploads a current real-time geographic location every preset time in the driving process, where the preset time may be set according to an actual situation, and this embodiment is not limited to this, for example, the preset time may be set to 1s, and the vehicle uploads a real-time geographic location every 1 s. Optionally, the latest uploaded real-time geographic position of the vehicle may be stored in the mapping relationship set, and the real-time geographic position in the mapping relationship set is updated, and in addition, the block code corresponding to the geographic block where the latest uploaded real-time geographic position is located may also be obtained, and the block code corresponding to the real-time geographic position in the mapping relationship set is updated.
Optionally, in some embodiments, the step of "determining identification information of a vehicle to be displayed according to the target block code" may include:
taking the current position as a circle center, and determining the radius of the range of the vehicle to be displayed;
determining a block code corresponding to a geographical block where the vehicle needs to be displayed based on the range radius and the target block code, wherein the block code corresponding to the geographical block where the vehicle needs to be displayed is an object block code;
and determining the identification information of the vehicle to be displayed based on the object block codes and the mapping relation set.
The step of determining the block code corresponding to the geographic block where the vehicle needs to be displayed based on the range radius and the target block code may specifically include:
determining a geographic zone in which a vehicle needs to be displayed based on the range radius, the target zone code, and the size of the geographic zone;
and taking the block code corresponding to the geographical block needing to display the vehicle as the object block code.
The radius of the range in which the vehicle needs to be displayed may be set by the user, or may be preset by the vehicle information display device, which is not limited in this embodiment. Determining the position range of the vehicle to be displayed based on the range radius of the vehicle to be displayed and the target block code; and determining the geographical area needing to display the vehicle according to the size of each geographical area and the position range needing to display the vehicle.
For example, the geographic hash algorithm geoHash may be used to encode geographic zones, obtain geographic index values of the geographic zones where vehicles need to be displayed by using the radius of the range where vehicles need to be displayed, and efficiently query identification information of vehicles in the geographic zones.
The step of determining the identification information of the vehicle to be displayed based on the object block code and the mapping relationship set may specifically include:
acquiring a maximum coding value and a minimum coding value in the object block coding;
determining a candidate vehicle from the set of mapping relationships based on the maximum encoded value and the minimum encoded value;
determining the block code corresponding to the real-time geographic position of the candidate vehicle as the candidate vehicle of the object block code, and determining the candidate vehicle as the vehicle needing to be displayed;
identification information of the vehicle to be displayed is acquired.
The step of "determining candidate vehicles from the mapping relationship set based on the maximum code value and the minimum code value" may specifically include:
and determining the vehicles with the block codes of the geographic block where the vehicles are located in the mapping relation set between the minimum code value and the maximum code value as candidate vehicles.
Optionally, in a specific embodiment, the terminal controls a specific process of displaying the vehicle icon in the map page in a smooth movement from the starting geographic position to the target geographic position, which may be shown in fig. 2b, when the start of the terminal application is detected, a request may be sent to the back end, which may be a server or the like, where the request includes a current position of the terminal and a range radius R of the vehicle to be displayed, a longitude and latitude (x, y) of the current position of the terminal, that is, a current position of the passenger, where x is the longitude and y is the latitude, the back end obtains the longitude and latitude (x, y) of the current position of the passenger and the range radius R of the vehicle to be displayed from the request, and calculates a geographic hash value corresponding to the target geographic zone where the current position of the passenger is located by using a geographic hash algorithm, and based on the range radius R of the vehicle to be displayed and the size of the geographic zone (grid), judging that a vehicle needing to be displayed is searched in grids of several circles around a target geographic area, then calculating the minimum value and the maximum value of geographic index values corresponding to the grids of the target geographic area and the grids of the several circles around the target geographic area, then inquiring vehicles in the geographic area with all geographic index values between the maximum value and the minimum value through an ordered set (zset) of a remote dictionary server (Redis), filtering the vehicles, and specifically filtering the grids which do not belong to the target geographic area and the vehicles of the grids of the several circles around the target geographic area to obtain the vehicle of which the current position is required by a user and the grids of the several circles around the target geographic area; -obtaining the latest real-time geographical position of the vehicles from an ordered set (zset) of a remote dictionary server (Redis); based on the latest real-time geographic locations of these vehicles, by launching multiple threads, a routing service is invoked to calculate a route for the vehicle icon from the current location of the vehicle icon (the starting geographic location) to a random location in a 400m x 400m grid centered around the current location of the passenger in the request (x, y), and the total mileage and total consumption of the route, returning the relevant data of the route to the front-end interface, writing the relevant data of the route into the smooth moving component, enabling the vehicle icon to move smoothly along the target route, and simultaneously calculating the minimum route consumption time M in the route consumption times of all vehicles, and after the time M passes after the data are obtained at the back end, the longitude and latitude of the current position of the passenger and the latest real-time geographic position of the vehicle are obtained again, a new route planning is carried out, the specific process of the route planning can refer to the description, and the motion trail of the vehicle icon is displayed based on the new route.
As can be seen from the above, the terminal of this embodiment may display a map page, where the map page includes a map corresponding to the current position, and the map includes at least one geographic area and vehicle icons of vehicles around the current position; when the real-time geographic position of the vehicle is acquired, the terminal controls the vehicle icon in the map page to move smoothly from a starting geographic position to a target geographic position for displaying, wherein the target geographic position is a random position in a target geographic block, and the starting geographic position is determined based on the real-time geographic position of the vehicle. According to the method and the device, the moving track of the vehicle icon can be controlled based on the real-time geographic position of the vehicle and the random position in the target geographic area, and the moving track of the vehicle icon is not controlled based on the real track of the vehicle, so that the driving behavior of the vehicle does not need to be predicted, and the smooth moving display of the vehicle icon on the road on the map is facilitated.
Example III,
In order to better implement the above method, an embodiment of the present application further provides a vehicle information display device, which may include a display unit 301 and a control unit 302, as shown in fig. 3a, as follows:
(1) a display unit 301;
the display unit 301 is configured to display a map page, where the map page includes a map corresponding to a current location, and the map includes at least one geographic area and vehicle icons of vehicles around the current location.
(2) A control unit 302;
a control unit 302, configured to control the vehicle icon in the map page to move smoothly from a starting geographic position to a target geographic position when the real-time geographic position of the vehicle is acquired, where the target geographic position is a random position within a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle.
Optionally, in some embodiments of the present application, the target geographic zone includes a geographic zone in which the current location is located or a geographic zone in which the real-time geographic location of the vehicle is located.
Optionally, in some embodiments of the present application, the control unit 302 may include a generation subunit 3021 and a first control subunit 3022, see fig. 3b, as follows:
the generating subunit 3021 is configured to generate a target route of the vehicle icon based on the starting geographic position and the target geographic position of the vehicle icon;
a first control subunit 3022, configured to control smooth moving presentation of the vehicle icon along the target route from the starting geographic position to the target geographic position in the map page.
Optionally, in some embodiments, the generating subunit 3021 may be specifically configured to generate a plurality of candidate routes of the vehicle icon based on the starting geographic position and the target geographic position of the vehicle icon; and selecting a target route of the vehicle icon from the candidate routes based on the time consumption of the routes corresponding to the candidate routes.
Optionally, in some embodiments of the present application, the control unit 302 may include a selection subunit 3023, an update subunit 3024, and a second control subunit 3025, see fig. 3c, as follows:
the selecting subunit 3023 is configured to select a real-time geographic location from the acquired real-time geographic locations when the real-time geographic location of the vehicle is acquired and a location update period is reached;
an update subunit 3024, configured to update the current real-time geographic location based on the selected real-time geographic location;
and the second control subunit 3025 is configured to control, based on the updated real-time geographic position, the vehicle icon in the map page to be displayed in a smooth moving manner from the starting geographic position to the target geographic position.
Optionally, in some embodiments, the selecting subunit 3023 may further specifically determine a journey time corresponding to the target route from the starting geographic location to the target geographic location for each vehicle icon; determining the minimum distance consumed time in all distance consumed times; and taking the minimum distance consumed time as a position updating period.
Optionally, in some embodiments of the present application, the vehicle information display apparatus may further include a first determining unit 303, an obtaining unit 304, and a second determining unit 305, see fig. 3d, as follows:
the first determining unit 303 is configured to determine the current location, and determine that a geographic area where the current location is located is a target geographic area;
an obtaining unit 304, configured to obtain a target block code of the target geographic block;
and a second determining unit 305, configured to determine, according to the target block code, identification information of a vehicle that needs to be displayed.
Optionally, in some embodiments, the control unit 302 may be configured to collect a real-time geographic location of the vehicle based on the identification information; and when the real-time geographic position of the vehicle is acquired, controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position.
Optionally, in some embodiments of the present application, the step "acquiring the real-time geographic location of the vehicle based on the identification information" may specifically include:
acquiring a mapping relation set, wherein the mapping relation set comprises the identification information of a vehicle, the real-time geographic position of the vehicle and the mapping relation among block codes corresponding to the real-time geographic position; and acquiring the real-time geographic position of the vehicle based on the identification information and the mapping relation set.
Optionally, in some embodiments of the application, regarding the mapping relationship set, the real-time geographic position of the vehicle collected at preset time intervals may be specifically obtained; acquiring a block code corresponding to the geographical block where the real-time geographical position is located; and updating the real-time geographic position of the vehicle in the mapping relation set and the block code corresponding to the real-time geographic position.
Optionally, in some embodiments of the present application, the obtaining unit 304 may include an encoding subunit 3041 and an obtaining subunit 3042, see fig. 3e, as follows:
the coding subunit 3041 is configured to code each geographic block to obtain a block code set, where the block code set includes a block code corresponding to each geographic block;
the obtaining subunit 3042 is configured to extract a target block code of the target geographic block from the block code set.
Optionally, in some embodiments of the present application, the second determining unit 305 may include a first determining subunit 3051, a second determining subunit 3052, and a third determining subunit 3053, see fig. 3f, as follows:
the first determining subunit 3051, configured to use the current position as a circle center, and determine a radius of a range in which a vehicle needs to be displayed;
the second determining subunit 3052 is configured to determine, based on the range radius and the target block code, a block code corresponding to a geographic block where the vehicle needs to be displayed, where the block code corresponding to the geographic block where the vehicle needs to be displayed is an object block code;
a third determining subunit 3053, configured to determine, based on the object block code and the set of mapping relationships, identification information of a vehicle that needs to be displayed.
Optionally, in some embodiments, the second determining subunit 3052 may be specifically configured to determine a geographic zone where a vehicle needs to be displayed based on the range radius, the target zone code, and the size of the geographic zone; and taking the block code corresponding to the geographical block needing to display the vehicle as the object block code.
Optionally, in some embodiments, the third determining subunit 3053 may be specifically configured to obtain a maximum coded value and a minimum coded value in the object block coding; determining a candidate vehicle from the set of mapping relationships based on the maximum encoded value and the minimum encoded value; determining the block code corresponding to the real-time geographic position of the candidate vehicle as the candidate vehicle of the object block code, and determining the candidate vehicle as the vehicle needing to be displayed; identification information of the vehicle to be displayed is acquired.
Optionally, in some embodiments of the present application, the second determining unit 305 may specifically include: determining candidate vehicles according to the target block codes; acquiring vehicle state information of the candidate vehicle; determining the candidate vehicle with the vehicle state information meeting the preset condition as a vehicle needing to be displayed; identification information of the vehicle to be displayed is determined.
As can be seen from the above, in this embodiment, the display unit 301 may display a map page, where the map page includes a map corresponding to the current location, and the map includes at least one geographic area and vehicle icons of vehicles around the current location; when the real-time geographic position of the vehicle is acquired, the control unit 302 controls the vehicle icon in the map page to move smoothly from a starting geographic position to a target geographic position for displaying, wherein the target geographic position is a random position in a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle. According to the method and the device, the moving track of the vehicle icon can be controlled based on the real-time geographic position of the vehicle and the random position in the target geographic area, and the moving track of the vehicle icon is not controlled based on the real track of the vehicle, so that the driving behavior of the vehicle does not need to be predicted, and the smooth moving display of the vehicle icon on the road on the map is facilitated.
Example four,
An electronic device according to an embodiment of the present application is further provided, as shown in fig. 4, which shows a schematic structural diagram of the electronic device according to an embodiment of the present application, specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing various functions as follows:
displaying a map page, wherein the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area and vehicle icons of vehicles around the current position; when the real-time geographic position of the vehicle is acquired, the vehicle icon in the map page is controlled to be displayed in a smooth moving mode from a starting geographic position to a target geographic position, wherein the target geographic position is a random position in a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the present embodiment may display a map page, where the map page includes a map corresponding to the current location, and the map includes at least one geographic area and vehicle icons of vehicles around the current location; when the real-time geographic position of the vehicle is acquired, the vehicle icon in the map page is controlled to be displayed in a smooth moving mode from a starting geographic position to a target geographic position, wherein the target geographic position is a random position in a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle. According to the embodiment of the application, the moving track of the vehicle icon can be controlled based on the real-time geographic position of the vehicle and the random position in the target geographic area, and the moving track of the vehicle icon is not controlled based on the real track of the vehicle, so that the driving behavior of the vehicle does not need to be predicted, and the smooth moving display of the road of the vehicle icon on the map is facilitated.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the vehicle information display methods provided by the embodiments of the present application. For example, the instructions may perform the steps of:
displaying a map page, wherein the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area and vehicle icons of vehicles around the current position; when the real-time geographic position of the vehicle is acquired, the vehicle icon in the map page is controlled to be displayed in a smooth moving mode from a starting geographic position to a target geographic position, wherein the target geographic position is a random position in a target geographic area, and the starting geographic position is determined based on the real-time geographic position of the vehicle.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any vehicle information display method provided in the embodiments of the present application, the beneficial effects that can be achieved by any vehicle information display method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the sake of detail in the foregoing embodiments.
The system related to the embodiment of the application can be a distributed system formed by connecting a client, a plurality of nodes (any form of electronic equipment in an access network, such as a server and a terminal) through a network communication mode.
Taking a distributed system as a blockchain system as an example, referring To fig. 5, fig. 5 is an optional structural schematic diagram of the distributed system 100 applied To the blockchain system provided in this embodiment of the present application, and is formed by a plurality of nodes 200 (computing devices in any form in an access network, such as servers and user terminals) and a client 300, a Peer-To-Peer (P2P, Peer To Peer) network is formed between the nodes, and the P2P Protocol is an application layer Protocol operating on a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a terminal, can join to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer. In this embodiment, information such as the block code set and the mapping relationship set may be stored in a shared ledger of the area chain system through the node, and an electronic device (e.g., a terminal or a server) may acquire the information such as the block code set and the mapping relationship set based on record data stored in the shared ledger.
Referring to the functions of each node in the blockchain system shown in fig. 5, the functions involved include:
1) routing, a basic function that a node has, is used to support communication between nodes.
Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) wallet, for providing the function of transaction of electronic money, including initiating transaction (i.e. sending the transaction record of current transaction to other nodes in the blockchain system, after the other nodes are successfully verified, storing the record data of transaction in the temporary blocks of the blockchain as the response of confirming the transaction is valid; of course, the wallet also supports the querying of the remaining electronic money in the electronic money address;
and 2.2) sharing the account book, wherein the shared account book is used for providing functions of operations such as storage, query and modification of account data, record data of the operations on the account data are sent to other nodes in the block chain system, and after the other nodes verify the validity, the record data are stored in a temporary block as a response for acknowledging that the account data are valid, and confirmation can be sent to the node initiating the operations.
2.3) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
Referring to fig. 6, fig. 6 is an optional schematic diagram of a Block Structure (Block Structure) provided in this embodiment, each Block includes a hash value of a transaction record stored in the Block (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
The foregoing detailed description is directed to a vehicle information display method, a device, an electronic device, and a storage medium provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (15)

1. A vehicle information display method characterized by comprising:
displaying a map page, wherein the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area and vehicle icons of vehicles around the current position;
when the real-time geographic position of the vehicle is collected, the vehicle icon in the map page is controlled to smoothly move and show from a starting geographic position to a target geographic position along a target route, wherein the target geographic position is a random position in a target geographic area, the random position is a position randomly selected from the target geographic area, the target geographic area comprises a geographic area where the current position is located, the starting end of the target route is the starting geographic position, the ending end of the target route is the target geographic position, and the starting geographic position is determined in a mode that: when the real-time geographic position of the vehicle is acquired each time, acquiring the position of the current vehicle icon in the map page; when the position of the current vehicle icon in the map page is consistent with the real-time geographic position, taking the real-time geographic position as the starting geographic position; and when the position of the current vehicle icon in the map page is inconsistent with the real-time geographic position, taking the position of the current vehicle icon in the map page as the starting geographic position.
2. The method of claim 1, wherein the target geographic zone further comprises a geographic zone in which a real-time geographic location of the vehicle is located.
3. The method of claim 1, further comprising:
determining the current position, and determining a geographical block in which the current position is located as a target geographical block;
acquiring a target block code of the target geographic block;
determining the identification information of the vehicle to be displayed according to the target block code;
when the real-time geographic position of the vehicle is acquired, controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position along the target route, wherein the method comprises the following steps:
acquiring a real-time geographic location of the vehicle based on the identification information;
and when the real-time geographic position of the vehicle is acquired, controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position along the target route.
4. The method of claim 3, wherein before obtaining the target block code for the target geographic block, further comprising:
coding each geographical block to obtain a block code set, wherein the block code set comprises block codes corresponding to each geographical block;
the obtaining of the target block code of the target geographic block includes:
extracting a target block code for the target geographic block from the set of block codes.
5. The method of claim 1, wherein said controlling the smooth moving presentation of the vehicle icon in the map page from a starting geographic location to a target geographic location along a target route comprises:
generating a target route for the vehicle icon based on the starting geographic location and the target geographic location of the vehicle icon;
controlling the vehicle icon in the map page to smoothly move and show from a starting geographic position to a target geographic position along the target route.
6. The method of claim 5, wherein generating the target route for the vehicle icon based on the starting geographic location and the target geographic location of the vehicle icon comprises:
generating a plurality of candidate routes for the vehicle icon based on the starting geographic location and the target geographic location of the vehicle icon;
and selecting a target route of the vehicle icon from the candidate routes based on the time consumption of the routes corresponding to the candidate routes.
7. The method of claim 1, wherein controlling the vehicle icon in the map page to move smoothly along a target route from a starting geographic location to a target geographic location as the real-time geographic location of the vehicle is collected comprises:
when the real-time geographic positions of the vehicle are acquired and a position updating period is reached, selecting one real-time geographic position from the acquired real-time geographic positions;
updating the current real-time geographic location based on the selected real-time geographic location;
and controlling the vehicle icon in the map page to smoothly move and display from the starting geographic position to the target geographic position along the target route based on the updated real-time geographic position.
8. The method of claim 3, wherein said collecting the real-time geographic location of the vehicle based on the identification information comprises:
acquiring a mapping relation set, wherein the mapping relation set comprises the identification information of a vehicle, the real-time geographic position of the vehicle and the mapping relation among block codes corresponding to the real-time geographic position;
and acquiring the real-time geographic position of the vehicle based on the identification information and the mapping relation set.
9. The method of claim 8, further comprising:
acquiring real-time geographical positions of vehicles acquired at preset time intervals;
acquiring a block code corresponding to the geographical block where the real-time geographical position is located;
and updating the real-time geographic position of the vehicle in the mapping relation set and the block code corresponding to the real-time geographic position.
10. The method of claim 8, wherein determining identification information of the vehicle to be displayed according to the target block code comprises:
taking the current position as a circle center, and determining the radius of the range of the vehicle to be displayed;
determining a block code corresponding to a geographical block where the vehicle needs to be displayed based on the range radius and the target block code, wherein the block code corresponding to the geographical block where the vehicle needs to be displayed is an object block code;
and determining the identification information of the vehicle to be displayed based on the object block codes and the mapping relation set.
11. The method of claim 10, wherein determining the block code corresponding to the geographic block where the vehicle needs to be displayed based on the range radius and the target block code comprises:
determining a geographic zone in which a vehicle needs to be displayed based on the range radius, the target zone code, and the size of the geographic zone;
and taking the block code corresponding to the geographical block needing to display the vehicle as the object block code.
12. The method of claim 10, wherein determining identification information of the vehicle to be displayed based on the object block code and the set of mapping relationships comprises:
acquiring a maximum coding value and a minimum coding value in the object block coding;
determining a candidate vehicle from the set of mapping relationships based on the maximum encoded value and the minimum encoded value;
determining the block code corresponding to the real-time geographic position of the candidate vehicle as the candidate vehicle of the object block code, and determining the candidate vehicle as the vehicle needing to be displayed;
identification information of the vehicle to be displayed is acquired.
13. A vehicle information display device characterized by comprising:
the display unit is used for displaying a map page, the map page comprises a map corresponding to the current position, and the map comprises at least one geographic area block and vehicle icons of vehicles around the current position;
a control unit, configured to control, when a real-time geographic location of the vehicle is acquired, the vehicle icon in the map page to be displayed in a smooth moving manner from a starting geographic location to a target geographic location along a target route, where the target geographic location is a random location within a target geographic area, the random location is a location randomly selected from the target geographic area, the target geographic area includes a geographic area where the current location is located, a starting end of the target route is the starting geographic location, an ending end of the target route is the target geographic location, and a determination manner of the starting geographic location includes: when the real-time geographic position of the vehicle is acquired each time, acquiring the position of the current vehicle icon in the map page; when the position of the current vehicle icon in the map page is consistent with the real-time geographic position, taking the real-time geographic position as the starting geographic position; and when the position of the current vehicle icon in the map page is inconsistent with the real-time geographic position, taking the position of the current vehicle icon in the map page as the starting geographic position.
14. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform an operation in the vehicle information display method according to any one of claims 1 to 12.
15. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the vehicle information display method according to any one of claims 1 to 12.
CN202010112808.4A 2020-02-24 2020-02-24 Vehicle information display method and device, electronic equipment and storage medium Active CN111339230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010112808.4A CN111339230B (en) 2020-02-24 2020-02-24 Vehicle information display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010112808.4A CN111339230B (en) 2020-02-24 2020-02-24 Vehicle information display method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111339230A CN111339230A (en) 2020-06-26
CN111339230B true CN111339230B (en) 2021-11-02

Family

ID=71181772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010112808.4A Active CN111339230B (en) 2020-02-24 2020-02-24 Vehicle information display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111339230B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897617B (en) * 2020-08-12 2021-12-14 腾讯科技(深圳)有限公司 Picture loading method and device, computer equipment and storage medium
CN111915916A (en) * 2020-09-07 2020-11-10 四川路桥建设集团交通工程有限公司 Prompting method and system for whole highway section
CN111988746B (en) * 2020-09-11 2022-08-02 腾讯科技(深圳)有限公司 Method, system and storage medium for displaying real-time moving track of vehicle
US11663914B2 (en) * 2020-10-07 2023-05-30 International Business Machines Corporation Geohash-based traffic management

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107517443A (en) * 2017-08-24 2017-12-26 北京摩拜科技有限公司 District management method, server, client, the management system of shared vehicle
CN107749163A (en) * 2017-11-03 2018-03-02 北京世纪高通科技有限公司 The methods of exhibiting and device of a kind of vehicle driving trace
CN108009841A (en) * 2017-03-29 2018-05-08 北京嘀嘀无限科技发展有限公司 Net about car service request processing method, device and server
CN108460471A (en) * 2017-02-22 2018-08-28 神州优车(平潭)电子商务有限公司 Method and apparatus for managing user location
CN109086902A (en) * 2017-06-14 2018-12-25 北京嘀嘀无限科技发展有限公司 Processing method, processing unit, server, computer equipment and storage medium
CN109118610A (en) * 2018-08-17 2019-01-01 北京云鸟科技有限公司 A kind of track inspection method and device
CN109429507A (en) * 2017-06-19 2019-03-05 北京嘀嘀无限科技发展有限公司 System and method for showing vehicle movement on map
CN110046953A (en) * 2019-02-27 2019-07-23 山东开创云软件有限公司 A kind of rental method and device of shared automobile
CN110401683A (en) * 2018-04-24 2019-11-01 北京视联动力国际信息技术有限公司 A kind of mobile command vehicle traveling track display method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109145065A (en) * 2017-06-19 2019-01-04 北京嘀嘀无限科技发展有限公司 Methods of exhibiting and device, the computer readable storage medium of vehicle driving trace
CN109754631B (en) * 2017-11-01 2021-07-20 腾讯科技(深圳)有限公司 Vehicle position tracking method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108460471A (en) * 2017-02-22 2018-08-28 神州优车(平潭)电子商务有限公司 Method and apparatus for managing user location
CN108009841A (en) * 2017-03-29 2018-05-08 北京嘀嘀无限科技发展有限公司 Net about car service request processing method, device and server
CN109086902A (en) * 2017-06-14 2018-12-25 北京嘀嘀无限科技发展有限公司 Processing method, processing unit, server, computer equipment and storage medium
CN109429507A (en) * 2017-06-19 2019-03-05 北京嘀嘀无限科技发展有限公司 System and method for showing vehicle movement on map
CN107517443A (en) * 2017-08-24 2017-12-26 北京摩拜科技有限公司 District management method, server, client, the management system of shared vehicle
CN107749163A (en) * 2017-11-03 2018-03-02 北京世纪高通科技有限公司 The methods of exhibiting and device of a kind of vehicle driving trace
CN110401683A (en) * 2018-04-24 2019-11-01 北京视联动力国际信息技术有限公司 A kind of mobile command vehicle traveling track display method and system
CN109118610A (en) * 2018-08-17 2019-01-01 北京云鸟科技有限公司 A kind of track inspection method and device
CN110046953A (en) * 2019-02-27 2019-07-23 山东开创云软件有限公司 A kind of rental method and device of shared automobile

Also Published As

Publication number Publication date
CN111339230A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN111339230B (en) Vehicle information display method and device, electronic equipment and storage medium
CN108763538B (en) A kind of method and device in the geographical location determining point of interest POI
CN110929162B (en) Recommendation method and device based on interest points, computer equipment and storage medium
Li et al. T-DesP: Destination prediction based on big trajectory data
CN106528589B (en) Data managing method and device
US20140188748A1 (en) Methods and systems for determining estimated package delivery/pick-up times
CN105678412A (en) Path planning method and device facing multiple passengers
CN112035591B (en) Road network matching method, device, equipment and storage medium
CN103927374B (en) A kind of Web GIS map layer creation method based on SharpMap
CN104596531A (en) Navigation route generation method, navigation route generation apparatus, and server
CN104252489A (en) Method for fast obtaining position character description information according to latitude and longitude data
CN104008212A (en) Method for storing IOT time series data related to geographical location information
CN101354261A (en) System and method for updating data of navigation system and navigation system
KR102386786B1 (en) Method for managing travel route database based on location and server for the method
CN116363854B (en) Shared travel vehicle dispatching method and device and computer equipment
CN103039036B (en) Method and system for calculating number of users
CN104636457B (en) A kind of method and device of location finding cognition
CN103198135A (en) Microblog registration data online acquiring method for grid division of geographic regions
Bakkal et al. Modeling and querying trajectories using Neo4j spatial and TimeTree for carpool matching
US11060879B2 (en) Method, system, and computer program product for generating synthetic demand data of vehicle rides
Tiwari et al. Distributed context tree weighting (ctw) for route prediction
CN103927869A (en) Public transportation information processing method and device
Zhao et al. Practical model with strong interpretability and predictability: An explanatory model for individuals' destination prediction considering personal and crowd travel behavior
CN112183831A (en) Route generation method and device, storage medium and electronic equipment
CN101936741B (en) Reverse base graph based vehicle navigation road network incremental data updating system for correcting spatial-temporal data model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40023738

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant