CN111176507B - Map processing method and device, storage medium and electronic device - Google Patents

Map processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN111176507B
CN111176507B CN201911358899.3A CN201911358899A CN111176507B CN 111176507 B CN111176507 B CN 111176507B CN 201911358899 A CN201911358899 A CN 201911358899A CN 111176507 B CN111176507 B CN 111176507B
Authority
CN
China
Prior art keywords
value
longitude
latitude
map
display interface
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
CN201911358899.3A
Other languages
Chinese (zh)
Other versions
CN111176507A (en
Inventor
罗静
储嘉伟
刘明桦
张淞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qunar Software Technology Co Ltd
Original Assignee
Beijing Qunar Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qunar Software Technology Co Ltd filed Critical Beijing Qunar Software Technology Co Ltd
Priority to CN201911358899.3A priority Critical patent/CN111176507B/en
Publication of CN111176507A publication Critical patent/CN111176507A/en
Application granted granted Critical
Publication of CN111176507B publication Critical patent/CN111176507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Navigation (AREA)
  • Instructional Devices (AREA)

Abstract

The invention provides a map processing method and device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring first position information of a starting address and second position information of a destination address; displaying the starting address and the destination address in a map display area in a current display interface of an application program according to the first position information and the second position information; wherein the current display interface further comprises an information display area for displaying the counseling information related to the address from the start address to the destination address. The invention solves the problem that the start and end point information in the taxi taking business through the application program in the related technology is often blocked by the vehicle information.

Description

Map processing method and device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a map processing method and device, a storage medium and an electronic device.
Background
In the current taxi taking business process through an application program, after a user selects a departure place and a destination, a price inquiry page is sent. The price inquiry page is designed in such a way that the whole page shows a map, and optional vehicle types, price information and the like are suspended at the bottom of the map; wherein, the height is not fixed according to the optional information display conditions of vehicles and the like; the upper half part of the map needs to show the starting point and the end point selected by the user, and the starting point and the end point information needs to be completely shown in the screen of the terminal, but is often blocked by the vehicle information of the lower half part.
In view of the above problems in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides a map processing method and device, a storage medium and an electronic device, which are used for at least solving the problem that starting and ending point information in a taxi taking business through an application program in the related art is often blocked by vehicle information.
According to an embodiment of the present invention, there is provided a map processing method including: acquiring first position information of a starting address and second position information of a destination address; displaying the starting address and the destination address in a map display area in a current display interface of an application program according to the first position information and the second position information; wherein the current display interface further comprises an information display area for displaying the counseling information related to the address from the start address to the destination address.
According to another embodiment of the present invention, there is provided a map processing apparatus including: the acquisition module is used for acquiring first position information of a starting address and second position information of a destination address; the display module is used for displaying the starting address and the destination address in a map display area in a current display interface of an application program according to the first position information and the second position information; wherein the current display interface further comprises an information display area for displaying the counseling information related to the address from the start address to the destination address.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, after the first position information of the starting address and the second position information of the destination address are obtained, the starting address and the destination address are displayed in the map display area in the current display interface of the application program, and the related consultation information from the starting address to the destination address is displayed in the information display area, so that the map display information and the information display are completely separated and are not overlapped, the problem that the starting and ending point information in the service of taking a car through the application program in the related technology is often shielded by the vehicle information is solved, and the effect of improving the user experience is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a map processing method according to an embodiment of the present invention;
FIG. 2 is a first schematic diagram of an application display interface according to an embodiment of the invention;
FIG. 3 is a second schematic diagram of an application display interface according to an embodiment of the invention;
fig. 4 is a block diagram of a processing apparatus of a map according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Firstly, further introduction is carried out on the technical background of the application;
the service scene described by the application preferentially runs on a mobile phone application (including an IOS platform and an Android platform) developed based on a real Native technology stack, wherein a displayed map layer is provided for Native to use a map SDK from a Baidu, and an API of the map can be directly called in RN-JS due to the packaging of QRN and CRN. The method supports the introduction of a plurality of coordinate points and the edge distance of the view, but because the API has bug (the introduced edge distance cannot be accurately displayed), the starting and ending points of the vehicle-driving business introduction are often shielded by the quotation information suspended at the bottom. Therefore, the method for moving the view to a fixed position by introducing the coordinate of the central point and the difference value of the longitude and the latitude of the view (the difference value of the longitude and the latitude of the lower right corner minus the longitude and the latitude of the upper left corner of the view) realizes the function of self-adapting two points in a certain area of the map view, and successfully realizes a front-end scene which is quite important and shows a starting point and a finishing point above quotation information in a taxi taking business process.
Example 1
In the present embodiment, a method for processing a map is provided, and fig. 1 is a flowchart of a method for processing a map according to an embodiment of the present invention, where the flowchart includes the following steps, as shown in fig. 1:
step S102, acquiring first position information of a starting address and second position information of a destination address;
step S104, displaying a starting address and a destination address in a map display area in a current display interface of the application program according to the first position information and the second position information; wherein the current display interface further includes an information display area for displaying the counseling information related to the address from the start address to the destination address.
As can be seen from the foregoing steps S102 and S104, after the first location information of the start address and the second location information of the destination address are obtained, the start address and the destination address are displayed in the map display area in the current display interface of the application, and the consultation information related to the start address and the destination address is displayed in the information display area, so that the map display information and the information display are completely separated, and the two are not overlapped, thereby solving the problem that the start and end point information is often blocked by the vehicle information in the traffic of taking a car through the application in the related art, and achieving the effect of improving the user experience.
In an optional implementation manner of this embodiment, the manner of acquiring the first location information of the start address and the second location information of the destination address, which is involved in step S102, may further include:
step S102-11, acquiring a first longitude value and a first latitude value in the first position information;
and S102-12, acquiring a second longitude value and a second latitude value in the second position information.
As can be seen from the above step S102, the first location information and the second location are both represented by latitude and longitude values. Based on this, the manner of displaying the start address and the destination address in the map display area in the current display interface of the application program according to the first position information and the second position information, which is involved in step S104 in this embodiment, may further be:
step S104-11, determining a third latitude value of the current display interface according to the latitude difference value and the first proportion value; wherein, the latitude difference value is the absolute value of the difference between the first latitude value and the second latitude value; the first proportional value is a ratio result of the sum of the longitudinal distances to the difference of the upper latitude; the sum of the longitudinal distances is the sum of a first distance of the map display area relative to the bottom of the current display interface and a second distance of the map display area relative to the top of the current display interface;
in an optional implementation manner of this embodiment, the third latitude value of the current display interface may be determined by the following formula:
latitudeDelta=coorLatitudeDelta÷(1-latDeltaRate);
wherein latitudeDelta is the third latitude value, coorlattitudeDelta is the absolute value of the difference between the first latitude value and the second latitude value, and latDeltaRate is the ratio result of the sum of the longitudinal distances and the difference of the latitudinal values.
Step S104-12, determining a third longitude value of the current display interface according to the third latitude value and the second proportion value; the second proportion value is a ratio result of the length to the width of a screen for bearing the current display interface;
in an optional implementation manner of this embodiment, the third longitude value of the current display interface may be determined according to the following formula:
longitudeDelta=latitudeDelta×ASPECT_RATIO;
wherein longitudeDelta is a third longitude value, and latitudeDelta is a third latitude value; ASPECT _ RATIO is a RATIO result of the length to width of the screen used to carry the current display interface.
Step S104-13, comparing the third longitude value with the longitude difference value; the longitude difference value is the absolute value of the difference between the first longitude value and the second longitude value;
the manner of comparing the third longitude value with the longitude difference value in step S104-13 may further be: determining a first result of subtracting a fourth distance of the map display area relative to the right of the current display interface after subtracting a third distance of the map display area relative to the left of the current display interface from the third longitude value; the first result is compared to the longitude difference.
And step S104-14, determining whether the map area determined by the starting address and the destination address is matched with the longitudinal area or the transverse area of the map display area according to the comparison result.
Wherein, the manner in the step S104 may further be: determining that the map area determined by the start address and the destination address matches a longitudinal area of the map display area in a case where the first result is greater than the longitude difference; the fourth latitude value of the first center point in the map area is a result of the second center point latitude value of the starting address and the destination address after being shifted according to the first offset; the fourth longitude value of the first center point is the result of the mean of the first longitude value and the second longitude value; determining that the map area determined by the start address and the destination address matches a lateral area of the map display area in a case where the first result is less than the longitude difference; the fourth latitude value of the first center point in the map area is a result of the second center point latitude value of the starting address and the destination address after being shifted according to the second offset; the fourth longitude value of the first center point is a result of averaging the first longitude value and the second longitude value.
Wherein the first offset is determined by the following equation:
latDeltaOffset1=coorLatitudeDelta×(1÷(1-latDeltaRate)-1)÷2×bottom÷verticalPadding;
wherein, latDeltaOffset1 is a first offset; coorlattitudeDelta is the absolute value of the difference value of the first latitude value and the second latitude value; latDeltaRate is a first proportional value; bottom is a first distance; verticalpadding is the sum of the longitudinal distances.
Wherein the second offset is determined by the following equation:
latDeltaOffset2=(0.5–(1–verticalPadding÷screenHeight)÷2)×latitudeDelta;
wherein, latDeltaOffset2 is a second offset; vertical panning is the sum of the longitudinal distances, and screen height is the height of a screen for bearing the current display interface; latitudeDelta is the third latitude value.
The present application will be illustrated with reference to alternative embodiments of the present embodiment;
the optional embodiment provides a method for realizing self-adaptation of two points in an attempt to find a certain area based on an SDK, as shown in fig. 2, a map area corresponding to the whole map area in fig. 3 (the map area includes a view a composed of a view C and a view B), that is, the purpose of the optional embodiment is to place B1 and B2 in a view B which is not blocked by the view C, obtain a map area corresponding to the view B from the two points B1 and B2, obtain a map area corresponding to the view a from the map area B, and then introduce an animattoreregion method to realize the purpose of self-adaptation of B1 and B2 in the view B which we need.
As shown in fig. 3, the data available in this alternative embodiment includes top and bottom widths, B to left and right sides widths (according to whether the left and right sides need to be spaced according to business), B1 and B2 point latitudes and longitudes, and some basic parameters such as terminal (i.e. screen) height and width.
To reach the current state by the animatatoregister method, the parameters that need to be passed in include latitudedata (corresponding latitude range in fig. 3), longtudedata (corresponding longitude range in fig. 3), and longitude and latitude corresponding to the center point b3 in fig. 3.
Wherein, the basic parameters related in this optional embodiment include:
the length-width ratio of the screen is as follows: ASPECT _ RATIO ═ screen Width ÷ screen height
Vertical patterning ═ bottom + top
Difference in latitude coorlattitudetdelta between b1 and b2 is b1. latitude-b 2.latitude (absolute value)
Longitude difference coorlongitudue between b1 and b2 b1. longitude-b 2.longitude (absolute value)
The sum of vertical padding is compared to the screen height, latDeltaRate ═ vertical padding ÷ coorLatitutedet
In order to place B1 and B2 exactly in the map area corresponding to the B view, two situations occur, case (1): b1 and B2 are just full of the upper and lower edges of the B area; case (2): b1 and B2 fill up the right and left sides of the B area.
In case (1), the parameter values of the following parameters can be obtained from the basic parameters:
latitudeDelta=coorLatitudeDelta÷(1-latDeltaRate)
longitudeDelta=latitudeDelta×ASPECT_RATIO
comparing the calculated longitudeDelta with the longitude difference of b1, b2 if
If(longitudeDelta–left–right>coorLongitudeDelta)
Then case 1 is feasible, it can be calculated that the latitude of b3 in fig. 3 should be offset (first offset) based on the center point of b1, b 2:
wherein the first offset is obtained by the following formula:
latDeltaOffset=coorLatitudeDelta×(1÷(1-latDeltaRate)-1)÷2×bottom÷verticalPadding
moreover, the longitude of b3 is equal to the mean of the longitudes of b1 and b2. Four parameters are required in this alternative embodiment: lattudedelta, longtudedelta, longitude of B3, and latitude of B3 are all obtained, and based on this, B1 and B2 can be adapted in the area B without interference from other information.
In the case (2), the parameter values of the following parameters can be obtained from the basic parameters:
latitudeDelta=coorLatitudeDelta÷(1-latDeltaRate)
longitudeDelta=latitudeDelta×ASPECT_RATIO
based on the calculated longitudeDelta and the longitude difference comparison of b1, b2, if
If(longitudeDelta–left–right<coorLongitudeDelta)
Then longitududet is coorlongitududet + left + right
That is, it can be calculated that the latitude of b3 in fig. 3 should be shifted (second shift amount) based on the center points of b1 and b2, when the case (2) is feasible:
wherein the second offset is obtained by the following formula:
latDeltaOffset=(0.5–(1–verticalPadding÷screenHeight)÷2)×latitudeDelta
similarly, the longitude of b3 is equal to the mean of the longitudes of b1 and b2. Four parameters are required in this alternative embodiment: lattudedelta, longtudedelta, longitude of B3, and latitude of B3 are all obtained, and based on this, B1 and B2 can be adapted in the area B without being interfered by other information.
Through the optional implementation mode, the function of self-adapting the two points in a certain area of the view is realized, the service requirement is successfully met, and the user experience is improved.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a map processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a structure of a map processing apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus including:
(1) an obtaining module 42, configured to obtain first location information of a start address and second location information of a destination address;
(2) the display module 44 is configured to display the starting address and the destination address in a map display area in a current display interface of the application program according to the first location information and the second location information; wherein the current display interface further includes an information display area for displaying the counseling information related to the address from the start address to the destination address.
Optionally, the obtaining module 42 in this embodiment further includes: a first obtaining unit configured to obtain a first longitude value and a first latitude value in the first position information; and a second obtaining unit configured to obtain a second longitude value and a second latitude value in the second position information.
Optionally, the display module 44 in this embodiment may further include:
the first determining unit is used for determining a third latitude value of the current display interface according to the latitude difference value and the first proportion value; wherein, the latitude difference value is the absolute value of the difference between the first latitude value and the second latitude value; the first proportional value is a ratio result of the sum of the longitudinal distances to the difference of the upper latitude; the sum of the longitudinal distances is the sum of a first distance of the map display area relative to the bottom of the current display interface and a second distance of the map display area relative to the top of the current display interface;
wherein the third latitude value of the current display interface is determined by the following formula:
latitudeDelta=coorLatitudeDelta÷(1-latDeltaRate);
wherein latitudeDelta is the third latitude value, coorlattitudeDelta is the absolute value of the difference between the first latitude value and the second latitude value, and latDeltaRate is the ratio result of the sum of the longitudinal distances and the difference of the latitudinal values.
The second determining unit is used for determining a third longitude value of the current display interface according to the third latitude value and the second proportion value; the second proportion value is a ratio result of the length to the width of a screen for bearing the current display interface;
wherein, the third longitude value of the current display interface is determined by the following formula root:
longitudeDelta=latitudeDelta×ASPECT_RATIO;
wherein longitudeDelta is a third longitude value, and latitudeDelta is a third latitude value; ASPECT _ RATIO is a RATIO result of the length to width of the screen used to carry the current display interface.
A comparison unit for comparing the third longitude value with the longitude difference value; the longitude difference value is the absolute value of the difference between the first longitude value and the second longitude value;
wherein the comparing unit further may include: the determining subunit is configured to determine a first result of subtracting a fourth distance, which is a distance from the map display area to the right of the current display interface, from the third longitude value minus a third distance, which is a distance from the map display area to the left of the current display interface, from the current display interface; and the comparison subunit is used for comparing the first result with the longitude difference.
And a display unit for determining whether the map area determined by the start address and the destination address matches a longitudinal area of the map display area or a lateral area of the map display area according to the comparison result.
Wherein, this display element includes: a first display subunit operable to determine that the map area determined by the start address and the destination address matches a longitudinal area of the map display area, in a case where the first result is greater than the longitude difference; the fourth latitude value of the first center point in the map area is a result of the second center point latitude value of the starting address and the destination address after being shifted according to the first offset; the fourth longitude value of the first center point is the result of the mean of the first longitude value and the second longitude value; a second display subunit for determining that the map area determined by the start address and the destination address matches a lateral area of the map display area in a case where the first result is smaller than the longitude difference; the fourth latitude value of the first center point in the map area is a result of the second center point latitude value of the starting address and the destination address after being shifted according to the second offset; the fourth longitude value of the first center point is a result of averaging the first longitude value and the second longitude value.
Wherein the first offset is determined by the following equation:
latDeltaOffset1=coorLatitudeDelta×(1÷(1-latDeltaRate)-1)÷2×bottom÷verticalPadding;
wherein, latDeltaOffset1 is a first offset; coorlattitudeDelta is the absolute value of the difference value of the first latitude value and the second latitude value; latDeltaRate is a first proportional value; bottom is a first distance; verticalpadding is the sum of the longitudinal distances.
Wherein the second offset is determined by the following equation:
latDeltaOffset2=(0.5–(1–verticalPadding÷screenHeight)÷2)×latitudeDelta;
wherein, latDeltaOffset2 is a second offset; vertical panning is the sum of the longitudinal distances, and screen height is the height of a screen for bearing the current display interface; latitudeDelta is the third latitude value.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring first position information of the starting address and second position information of the destination address;
s2, displaying a starting address and a destination address in a map display area in a current display interface of the application program according to the first position information and the second position information; wherein the current display interface further includes an information display area for displaying the counseling information related to the address from the start address to the destination address.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring first position information of the starting address and second position information of the destination address;
s2, displaying a starting address and a destination address in a map display area in a current display interface of the application program according to the first position information and the second position information; wherein the current display interface further includes an information display area for displaying the counseling information related to the address from the start address to the destination address.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A map processing method is characterized by comprising the following steps:
in a taxi taking service scene, acquiring first position information of an initial address and second position information of a destination address;
displaying the starting address and the destination address in a map display area in a current display interface of an application program according to the first position information and the second position information, wherein the steps comprise: acquiring a first longitude value and a first latitude value in the first position information; acquiring a second longitude value and a second latitude value in the second position information; determining a third latitude value of the current display interface according to the latitude difference value and the first scale value; wherein the latitude difference value is the absolute value of the difference between the first latitude value and the second latitude value; the first proportional value is a ratio result of the sum of the longitudinal distances to the latitude difference value; the sum of the longitudinal distances is the sum of a first distance of the map display area relative to the bottom of the current display interface and a second distance of the map display area relative to the top of the current display interface; determining a third longitude value of the current display interface according to the third latitude value and the second proportion value; the second proportion value is a ratio result of the length to the width of the screen for bearing the current display interface; comparing the third longitude value to a longitude difference value; wherein the longitude difference value is an absolute value of a difference between the first longitude value and the second longitude value; determining whether a map area determined by the start address and the destination address matches a longitudinal area of the map display area or a lateral area of the map display area according to a comparison result;
wherein the current display interface further comprises an information display area for displaying the counseling information related to the address from the start address to the destination address.
2. The method of claim 1, wherein the third latitude value of the current display interface is determined by the following formula:
latitudeDelta=coorLatitudeDelta÷(1-latDeltaRate);
wherein latitudeDelta is a third latitude value, coorlattitudeDelta is an absolute value of a difference between the first latitude value and the second latitude value, and latDeltaRate is a ratio result of the latitude difference value in the sum of the longitudinal distances.
3. The method of claim 1, wherein the third longitude value for the current display interface is determined by the following formula root:
longitudeDelta=latitudeDelta×ASPECT_RATIO;
wherein longitudeDelta is the third longitude value, and latitudeDelta is the third latitude value; ASPECT _ RATIO is a RATIO result of the length to the width of the screen used to carry the current display interface.
4. The method of claim 1, wherein comparing the third longitude value to a longitude difference value comprises:
determining a first result of subtracting a fourth distance of the map display area from a right side of the current display interface after subtracting a third distance of the map display area from the left side of the current display interface from the third longitude value;
comparing the first result to the longitude difference.
5. The method of claim 4, wherein determining whether the map area determined by the start address and the destination address matches a longitudinal area of the map display area or a lateral area of the map display area according to the comparison result comprises:
determining that a map area determined by the start address and the destination address matches a longitudinal area of the map display area if the first result is greater than the longitude difference; wherein, the fourth latitude value of the first center point in the map area is a result of the second center point latitude value of the starting address and the destination address after being shifted according to the first offset; a fourth longitude value of the first center point is a result of averaging the first longitude value and the second longitude value;
determining that a map area determined by the start address and the destination address matches a lateral area of the map display area if the first result is less than the longitude difference; a fourth latitude value of the first center point in the map area is a result of shifting a second latitude value of the second center point of the start address and the destination address according to a second offset; a fourth longitude value of the first center point is a result of averaging the first longitude value and the second longitude value.
6. The method of claim 5, wherein the first offset is determined by the following equation:
latDeltaOffset1=coorLatitudeDelta×(1÷(1-latDeltaRate)-1)÷2×bottom÷verticalPadding;
wherein, latDeltaOffset1 is a first offset; coorlattitudeDelta is the absolute value of the difference between the first latitude value and the second latitude value; latDeltaRate is the first proportional value; bottom is the first distance; VerticalPadding is the sum of the longitudinal distances.
7. The method of claim 5, wherein the second offset is determined by the following equation:
latDeltaOffset2=(0.5–(1–verticalPadding÷screenHeight)÷2)×latitudeDelta;
wherein, latDeltaOffset2 is a second offset; vertical padding is the sum of the longitudinal distances, and screen height is the height of a screen for bearing the current display interface; latitudeDelta is the third latitude value.
8. A map processing apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring first position information of a starting address and second position information of a destination address in a taxi taking service scene;
a display module, configured to display the start address and the destination address in a map display area in a current display interface of an application according to the first location information and the second location information, where the display module includes: acquiring a first longitude value and a first latitude value in the first position information; acquiring a second longitude value and a second latitude value in the second position information; determining a third latitude value of the current display interface according to the latitude difference value and the first scale value; wherein the latitude difference value is the absolute value of the difference between the first latitude value and the second latitude value; the first proportional value is a ratio result of the sum of the longitudinal distances to the latitude difference value; the sum of the longitudinal distances is the sum of a first distance of the map display area relative to the bottom of the current display interface and a second distance of the map display area relative to the top of the current display interface; determining a third longitude value of the current display interface according to the third latitude value and the second proportion value; the second proportion value is a ratio result of the length to the width of the screen for bearing the current display interface; comparing the third longitude value to a longitude difference value; wherein the longitude difference value is an absolute value of a difference between the first longitude value and the second longitude value; determining whether a map area determined by the start address and the destination address matches a longitudinal area of the map display area or a lateral area of the map display area according to a comparison result;
wherein the current display interface further comprises an information display area for displaying the counseling information related to the address from the start address to the destination address.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN201911358899.3A 2019-12-25 2019-12-25 Map processing method and device, storage medium and electronic device Active CN111176507B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911358899.3A CN111176507B (en) 2019-12-25 2019-12-25 Map processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911358899.3A CN111176507B (en) 2019-12-25 2019-12-25 Map processing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111176507A CN111176507A (en) 2020-05-19
CN111176507B true CN111176507B (en) 2021-12-10

Family

ID=70652114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911358899.3A Active CN111176507B (en) 2019-12-25 2019-12-25 Map processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111176507B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966771B (en) * 2020-07-23 2024-07-30 汉海信息技术(上海)有限公司 Map interface display method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893450A (en) * 2015-12-31 2016-08-24 乐卡汽车智能科技(北京)有限公司 Map displaying method, device and terminal equipment
CN110019590A (en) * 2017-09-13 2019-07-16 北京嘀嘀无限科技发展有限公司 Method, apparatus, electronic equipment and the storage medium of map are shown in the page
CN110362242A (en) * 2018-04-11 2019-10-22 腾讯大地通途(北京)科技有限公司 A kind of map methods of exhibiting and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201020818A (en) * 2008-11-21 2010-06-01 Xin-Chang Lin Geographic location identify system with open-type identifier and method for generating the identifier

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893450A (en) * 2015-12-31 2016-08-24 乐卡汽车智能科技(北京)有限公司 Map displaying method, device and terminal equipment
CN110019590A (en) * 2017-09-13 2019-07-16 北京嘀嘀无限科技发展有限公司 Method, apparatus, electronic equipment and the storage medium of map are shown in the page
CN110362242A (en) * 2018-04-11 2019-10-22 腾讯大地通途(北京)科技有限公司 A kind of map methods of exhibiting and terminal device

Also Published As

Publication number Publication date
CN111176507A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
US11841235B2 (en) Autonomous vehicle positioning for trip optimization
CN107223244B (en) Localization method and device
RU2606694C1 (en) Method and device for determining electronic card
CN105444754B (en) Navigation picture display methods and device
CN110457407B (en) Method and apparatus for processing point cloud data
CN110365973A (en) Detection method, device, electronic equipment and the computer readable storage medium of video
WO2017166688A1 (en) Road name display method, device, and storage medium
US20130241953A1 (en) Information processing apparatus and information processing method
CN108280636A (en) Divide account method, apparatus and system
CN111176507B (en) Map processing method and device, storage medium and electronic device
CN106500684A (en) The processing method and processing device of the routing information of navigation
CN107920096A (en) One kind, which is called a taxi, estimates information displaying method, device and server
CN109635263B (en) Column width fixed display method and device based on WEB ultra-wide table and electronic equipment
CN108304952A (en) Information providing method and device in a kind of about vehicle application of network
CN110799969A (en) Semantic vector sheet
CN107247785A (en) A kind of static readonly map file generation method and device
CN115797182B (en) Feature map interpolation method, device, equipment and storage medium
US9212930B2 (en) Method, system and apparatus for reporting events on a map
JP5221424B2 (en) Information distribution apparatus and information distribution method
CN114459492B (en) Method, device, equipment, storage medium and product for determining recommended route
CN109241704A (en) The gray scale dissemination method and device of new script
US20140351084A1 (en) Registration process
CN107784309A (en) A kind of realization method and system to vehicle cab recognition
Chappell GIS in the cloud
CN107967341A (en) A kind of image display method, terminal device and storage medium

Legal Events

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