CN107607097B - Compass display method and device and computer readable medium - Google Patents

Compass display method and device and computer readable medium Download PDF

Info

Publication number
CN107607097B
CN107607097B CN201710825954.XA CN201710825954A CN107607097B CN 107607097 B CN107607097 B CN 107607097B CN 201710825954 A CN201710825954 A CN 201710825954A CN 107607097 B CN107607097 B CN 107607097B
Authority
CN
China
Prior art keywords
information
longitude
compass
street
user
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
CN201710825954.XA
Other languages
Chinese (zh)
Other versions
CN107607097A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710825954.XA priority Critical patent/CN107607097B/en
Publication of CN107607097A publication Critical patent/CN107607097A/en
Application granted granted Critical
Publication of CN107607097B publication Critical patent/CN107607097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Navigation (AREA)

Abstract

The invention is suitable for the technical field of terminals, and provides a display method and a device of a compass application interface and a computer storage medium, wherein the method comprises the following steps: acquiring longitude and latitude information on a compass application interface; translating the latitude and longitude information into a name of a geographic location; the name of the geographic position and the simulated graph of the compass are simultaneously displayed on the compass application interface, and the compass application interface has the beneficial technical effects that: the functions of compass application are enriched, and the use frequency of the compass application is improved.

Description

Compass display method and device and computer readable medium
Technical Field
The invention belongs to the technical field of terminals, and particularly relates to a compass application interface display method and device, terminal equipment and a computer readable storage medium.
Background
The compass is a very practical function in outdoor activities and outdoor travel as an auxiliary function. Currently, the information that can be displayed by a compass application installed on a mobile terminal typically includes only: the direction in which the mobile terminal is pointed and the longitude and latitude of the position of the mobile terminal. However, the above information is of limited effectiveness or usability for the user during the daily use of the mobile terminal, resulting in a low usage rate of compass applications.
Disclosure of Invention
In view of this, embodiments of the present invention provide a compass display method and a terminal device, so as to solve the problem of low compass application utilization rate of the current mobile terminal.
A first aspect of an embodiment of the present invention provides a method for displaying a compass application interface, including:
acquiring longitude and latitude information on a compass application interface;
translating the latitude and longitude information into a name of a geographic location;
and simultaneously displaying the name of the geographic position and the simulated graph of the compass on the compass application interface.
A second aspect of the embodiments of the present invention provides a display device for a compass application interface, including:
the latitude and longitude information acquisition unit is used for acquiring latitude and longitude information on a compass application interface;
the longitude and latitude information translation unit is used for translating the longitude and latitude information into a name of a geographic position;
and the display unit is used for simultaneously displaying the name of the geographic position and the simulated graph of the compass on the compass application interface.
A third aspect of embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the compass display method mentioned in the first aspect or any one of the possible implementations of the first aspect.
A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program which, when executed by a processor, implements the compass display method as mentioned in the above first aspect or any of the possible implementations of the above first aspect.
Compared with the prior art, the compass simulation method and the compass simulation system have the advantages that the simulation graph of the compass is displayed on the compass application interface; acquiring longitude and latitude information on the application interface; translating the latitude and longitude information into a name of a geographic location; and displaying the name of the geographic position on the application interface, thereby enriching the functions of compass application and improving the use frequency of compass application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation process of a display method of a compass application interface according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an application interface of a compass according to an embodiment of the present invention;
fig. 3(a) is a schematic flow chart illustrating an implementation of another display method for a compass application interface according to an embodiment of the present invention;
fig. 3(b) is a schematic flow chart illustrating an implementation of another display method for a compass application interface according to an embodiment of the present invention;
fig. 4(a) is a schematic flow chart illustrating an implementation process of a display method of a compass application interface according to a second embodiment of the present invention;
fig. 4(b) is a flowchart illustrating an implementation process of a display method of a first compass application interface according to a second embodiment of the present invention;
fig. 5(a) is a schematic flow chart illustrating an implementation of a display method of a second pointer application interface according to a second embodiment of the present invention;
fig. 5(b) is a schematic diagram of a compass application interface according to a second embodiment of the present invention;
fig. 6(a) is a schematic flow chart illustrating an implementation process of a display method of a compass application interface according to a third embodiment of the present invention;
fig. 6(b) is a schematic flow chart illustrating an implementation process of a display method of a compass application interface according to a third embodiment of the present invention;
fig. 7 is a schematic system diagram of a display device of a compass application interface according to a fourth embodiment of the present invention;
fig. 8 is an exemplary diagram of a terminal device according to a fifth embodiment of the present invention;
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Fig. 1 shows an implementation flow of a compass application interface display method according to a first embodiment of the present invention, and fig. 2 shows a compass application interface according to a first embodiment of the present invention. For convenience of explanation, only portions related to the embodiments of the present invention are shown.
As shown in fig. 1, the method includes:
in step S101, longitude and latitude information on a compass application interface is acquired.
In the embodiment of the invention, for example, the mobile terminal may acquire latitude and longitude information of the current position of the mobile terminal through a GPS, a base station location, or a wireless network, and display the latitude and longitude information on a latitude and longitude display information bar on a compass application interface. It is contemplated that the latitude and longitude on the compass application interface may be somewhat different from the current latitude and longitude of the user (e.g., when the user is in a vehicle), and the latitude and longitude values on the application interface are not updated in real time. Therefore, in order to be able to correctly translate the latitude and longitude information displayed on the application interface, the compass application directly reads the latitude and longitude readings displayed on the application interface for subsequent name translation of the geographic location.
In step S102, the latitude and longitude information is translated into a name of a geographic location.
In step S103, the name of the geographic location and the simulated graphic of the compass are displayed on the compass application interface at the same time.
In this embodiment, the simulated graph of the compass may be specifically a graph that simulates a real compass on a compass application interface, for example, the simulated graph includes a circular dial with angle scales, and a pointer used for indicating a direction in the dial, where the pointer may be one or two pointers perpendicular to each other. The compass application interface is provided with longitude and latitude information, the compass application interface is provided with a longitude and latitude information translation bar, the longitude and latitude information translation bar can be a rectangular or circular touch sensing area on the application interface, and a user can trigger the compass application to execute longitude and latitude information translation by touching the longitude and latitude information translation bar. The geographic location in this embodiment may refer to a street-level administrative division, such as: China-Shenzhen-Nanshan district-XX street.
The longitude and latitude information is translated into the corresponding geographic position, and the translation method can be realized by the following method: when a user presses a long button or a short button to trigger the longitude and latitude information translation bar, the compass application acquires the longitude and latitude information displayed on an application interface of the compass, then uploads the longitude and latitude information to the server through a wireless network, then the server inquires a street name corresponding to the longitude and latitude information, then the server sends the inquired street name to the compass application, and finally the compass application displays the inquired street name on the longitude and latitude information translation bar.
Further, before the acquiring the latitude and longitude information on the compass application interface, the method further includes:
in step S301, a city name of a user' S living city is acquired;
fig. 3(a) shows a schematic flow chart of this embodiment. In this embodiment, considering that the user may be in a wifi connection-free state, the mobile phone traffic expense of the user may be increased by sending the latitude and longitude information to the server for querying, or due to unstable network conditions, a certain delay may occur when querying is performed through the network, and in addition, the common user lives in the same city for most of the time. Therefore, in order to make the translation of the longitude and latitude information more convenient, the embodiment may first acquire the user living city, so that when inquiring the longitude and latitude information, the storage amount and the calculation amount of the system may be reduced.
In step S302, according to the city name, a street name of each street of the user' S living city and longitude and latitude information of a location of each street are obtained;
specifically, the compass application sends the name of the city to the server through the network, and searches each street of the city and all longitude and latitude information contained in the position of the street.
In step S303, storing the street name of each street in a database corresponding to the longitude and latitude information of the location of the street;
in this embodiment, a storage unit is provided in the compass application for storing the database, where the database has a first list and a second list, the first list is used for storing the obtained street names, and the second list is used for storing the longitude and latitude values corresponding to the street names, so as to form a mapping relationship between the first list and the second list.
In step S304, the translating the latitude and longitude information into a name of a geographic location includes:
and searching the corresponding street name in the database through the acquired longitude and latitude information on the compass application interface.
Further, as shown in fig. 3(b), in step S301, the city name of the living city of the user is obtained, and specifically, the city name input by the user may be determined as the city name of the living city of the user in step S3011. Specifically, an input interface of a corresponding city name can be set on the compass application interface, and the user can input the name of the city where the user lives on the compass application interface.
Or, in step S3012, according to the historical navigation data of the mobile terminal, determining the city where the mobile terminal stays for the longest time, determining the city as the user living city, and obtaining the city name of the city. Specifically, the historical navigation data may be counted, for example, in the past week, the user stays in city a for 70% of the time, stays in city B for 20% of the time, and stays in city C for 10% of the time, and the compass refers to the historical navigation data fed back by the mobile terminal to determine that city a is the name of the city where the user lives.
Of course, the two methods for obtaining the city name of the user's living city may be set as priorities. For example, where the user has designated a city of residence, then the compass application will not determine the name of the city in which the user resides from the historical navigation data.
Example two
Fig. 4(a) shows an implementation process of a compass display method according to a second embodiment of the present invention, and as shown in fig. 4(a), the method includes:
in step S401, user interest information related to a geographical location is acquired.
In this embodiment, the information of interest to the user may be surrounding weather information, surrounding scenic spot information, and the like, and is not particularly limited herein. So long as the information is of interest to the user in relation to the geographical location.
In step S402, the information of interest to the user is displayed in a corresponding position around the simulation graph based on a position relationship between a geographical position related to the information of interest to the user and a current position of the mobile terminal.
In this embodiment, for example, the obtained information of interest is located in the northeast direction of the current location of the mobile terminal, and the information of interest is correspondingly displayed in the northeast direction of the compass simulation graph of the compass application interface.
Further, fig. 4(b) shows a flow of implementing another compass display method according to the second embodiment of the present invention. The information in which the user is interested comprises weather information of a preset geographical position;
in this embodiment, as shown in fig. 2, weather information display areas of preset geographic positions may be respectively set in the pointer indication states of the compass simulation graph, and are respectively used for displaying weather conditions of a district/county/city adjacent to the current location of the user, where the preset geographic positions are positions pointed by the pointer of the compass simulation graph and adjacent to the current location of the mobile terminal. Specifically, a weather information acquisition button can be arranged on the compass application interface.
The displaying the information of interest to the user in the corresponding direction around the simulation graph based on the direction relation between the geographical position related to the information of interest to the user and the current position of the mobile terminal comprises:
step S4021, acquiring the azimuth relationship between the preset geographic position and the current position of the mobile terminal;
the preset geographic position is a district/county/city adjacent to the current position and indicated by a compass pointer, when the mobile terminal is held by a user and is stable, a weather information acquisition button on an application interface is triggered, and then the direction indicated by the pointer of a compass simulation graph is calculated through a processor, wherein the compass simulation graph comprises a pair of mutually perpendicular pointers which are respectively perpendicular to the long axis and the short axis of the mobile terminal. For example, when the pointer pointing upward of the compass simulation graph indicates the "northwest" direction, the pointer pointing left of the compass simulation graph indicates the "southwest" direction, the pointer pointing right indicates the "northeast" direction, and the pointer pointing downward indicates the "southeast" direction, and then the four directions are combined with the position of the current mobile terminal to respectively calculate the areas/counties/cities of the current mobile terminal, where the areas/counties/cities are adjacent to the current position, of the current mobile terminal.
Step S4022, determining a display area in the corresponding azimuth around the simulation graph based on the pointing state of the compass.
Since the pointer pointing direction of the compass simulation graph can change along with the azimuth of the mobile terminal, after a user triggers a weather information acquisition button on an application interface, a circular or rectangular weather information display area is determined around the simulation graph and in the pointing direction of the pointer, and is used for displaying the district/county/city and weather conditions adjacent to the current position.
Step S4023 displays the weather information in the determined display area.
The compass application acquires the weather information of the four regions/counties/cities through a network and displays the weather information in the weather information display areas pointed by the pointers positioned in the compass simulation graphs respectively. When the user changes the direction of the mobile phone or moves, the calculation can be carried out again according to the pointing direction of the pointer only by re-triggering the weather information acquisition button on the compass application interface, and the result obtained by the re-calculation is displayed in the weather information display area. Therefore, the user can feel weather information of the current position, weather conditions of the region, county and city around the user and the direction of the surrounding city in the current position more intuitively, and the user is prevented from being aware only by reasoning according to some data.
Still further, the method further comprises obtaining positioning information of the current position; and displaying a map interface on the application interface, and displaying the positioning information of the current position in the map interface.
In the embodiment of the present invention, a positioning button may be arranged on a display interface of the compass, and when the user triggers the positioning button, text information of the current position of the user may be displayed in an area where the positioning button is located, for example, when the user triggers the positioning button, the positioning button directly displays: shenzhen library-Guangdong province Shenzhen, Shentian, the province of Fu, the way 2001. Or the background of the compass application can be completely replaced by a map interface, then when the user triggers the positioning button, the map interface is displayed on the background of the compass application interface, meanwhile, the compass simulation graph can be transparently displayed on the application interface, and when the compass simulation graph is transparently displayed, the simulation graph floats on the surface of the display interface so as not to block the display of the map interface. The current location of the user is then displayed on the map interface, e.g., the current location may coincide with the center of the compass simulation. Therefore, the user can feel the specific direction of the user more intuitively. Of course, weather information of the current position can also be displayed on the application interface.
Further, fig. 5(a) shows that the information of interest of the user includes a point of interest (POI) (point of interest), and fig. 5(b) shows that the display interface provided with the POI according to the second embodiment of the present invention, where the POI may be a surface building of a current city, such as some famous scenic spots, such as a people park, an animal park, or the like, or a public toilet.
The displaying the information of interest to the user in the corresponding direction around the simulation graph based on the direction relation between the geographical position related to the information of interest to the user and the current position of the mobile terminal comprises:
step S501, acquiring a direction relation between the geographical position of the POI and the current position of the mobile terminal;
in the embodiment of the present invention, a search range is first set, specifically, a distance S is set, a current position of a user is taken as a circle O, and S is taken as a radius, so that a circular area is determined in a map. The circular area is the search range. The method comprises the steps of obtaining all POIs in a searching range on a map, calculating the distance between each POI and the current position of the mobile terminal, selecting N POIs with the nearest distance according to the distance between the positioning of the POIs and the current position of the mobile terminal, and positioning on a compass simulation graph according to the position of the geographic position of the POIs relative to the current position of the mobile terminal. For example, N is selected to be 2, that is, two POIs with the closest distance are selected to be displayed on the application interface. Step S4021 may be referred to in the present invention for determining the position relationship between the geographic location of the POI and the current location of the mobile terminal, where only the preset geographic location is replaced with the POI.
Step S502, determining a display area in the corresponding direction around the simulation graph;
in the embodiment of the present invention, reference may be made to step S4022, where only the preset geographic location is replaced with a POI.
Acquiring a preset graph corresponding to the type of the POI;
and displaying the preset graph in the determined display area.
The preset graphic may be a small icon, for example, a zoo icon is represented by a small animal icon, a toilet is represented by a toilet icon, and the icon is not limited as long as the icon can represent the category to which the POI belongs. Specifically, if the user wants to travel to the nearest sight spot, the user first triggers the POI button on the application interface, and the system automatically searches for POI information in the search range according to the current position information of the user. After the searching is finished, if the scenic spot people park with the closest distance is located at the northwest direction of the current position of the user by 1.5 kilometers, displaying icons (such as simulation graphs of a plurality of small trees), names and distances of the people park in the northwest direction of the compass simulation graph; the scenic spot zoo which is the second nearest is positioned 2 kilometers eastern of the current position of the user; the icon (e.g., a small animal head portrait), name, and distance of the zoo are displayed in the east of the compass simulation. Therefore, the user can select the scenic spot or the nearest toilet which the user wants to go to according to the compass display interface and can go to the target area according to the guidance of the compass, and the situation that the user feels bad and walks wrong is avoided.
Furthermore, the method further comprises the steps of collecting the positioning information into a favorite, opening an electronic map through the positioning information collected in the favorite, and displaying the collected positioning information in the electronic map.
In the embodiment of the invention, a collection button can be further arranged on the compass application interface, and when a user needs to collect the current positioning information, the collection button can be triggered to collect the positioning information into a favorite, wherein the positioning information comprises a positioning address and positioning coordinates of the positioning address on the GPS. When the user needs to check the collected positioning address, the user only needs to open the favorite and click the collected positioning information, and the collected positioning information can be displayed in the map application program. So that the user can be conveniently guided to reach the favorite location address. The map application in the present embodiment may be any map application program of a third party, such as a Baidu map, a Gade map, or the like, or may be a map program built in the terminal.
In the embodiment of the invention, the simulation graph of the compass is displayed on the compass display interface; acquiring longitude and latitude information on the display interface; translating the latitude and longitude information into a name of a geographic location; the name of the geographic position is displayed on the display interface, so that the phenomenon that only the numerical information of longitude and latitude is displayed on a compass interface is avoided, the thinking and understanding cost of a user is reduced, and the user can feel intuitional in the current place.
EXAMPLE III
Fig. 6(a) and 6(b) show an implementation flow of a display method of a compass application interface provided by the third embodiment of the present invention. In this embodiment, the administrative region whose geographic location is at street level is only for illustrative purposes, and is not limited to any specific location, where the geographic location may be a district, county, or township.
Step S601, if the longitude and latitude information has no corresponding street, the street closest to the current position is searched.
And step S602, displaying the name of the street closest to the current position as a longitude and latitude information translation result on a compass application interface.
When the user is in a mountain forest or an edge zone where two streets are intersected, the latitude and longitude information of the current user may not be included in the jurisdiction of any one street, and when the user wants to translate the latitude and longitude information, the compass application cannot output the name of the street. Therefore, in order to enable the longitude and latitude of the user not to be included in the corresponding street range, the compass application can output useful information for the user, and the name of the street closest to the current position is specifically set to be searched and then displayed on the compass application interface as the translation result of the longitude and latitude information.
Further, the searching for the street closest to the current location specifically includes:
step S6011, longitude and latitude information of landmark buildings of streets adjacent to the periphery of the current position is obtained.
In this embodiment, the landmark building may be a business center of a street, a famous attraction, or an administrative center of a street, such as a street office, or a main road of a street. When a user is in a mountain forest or a marginal area where two streets are intersected, the user is anxious due to rare people and lack of perfect public facilities, and some emergencies are easy to occur and need to be helped. The commercial center of the street, or famous scenic spots, administrative center or main road are generally located in the central zone of the street, and public facilities are complete. Therefore, the user can be helped to get out of predicament by selecting the street closest to the landmark building as the longitude and latitude translation result for display.
Step S6012, calculating a straight-line distance between the landmark building and the current position according to the longitude and latitude information of the current position.
In this embodiment, the calculation of the distance between two points according to the longitude and latitude values between the two points may refer to a calculation method in the prior art, which is not described herein.
Step S6013, the street where the landmark building with the shortest straight-line distance is located is taken as the street closest to the current position.
In this embodiment, taking the street office as an example, the distances between the street offices of all the streets adjacent to the current position and the current position are sorted, and the street where the street office closest to the current position is located is selected from the sequence as the street closest to the current position. And when the longitude and latitude of the user does not correspond to the street, the user touches the longitude and latitude information translation column to trigger the compass application to execute the longitude and latitude information translation, and at the moment, the name of the street where the street office closest to the current position is located is displayed on the longitude and latitude information translation column. Thereby helping the user to quickly break out of predicament.
Example four
Fig. 6 shows a structure of a compass display device according to a first embodiment of the present invention, and for convenience of description, only the relevant portions of the compass display device according to the first embodiment of the present invention are shown.
In the embodiment of the present invention, the apparatus is used to implement the compass display method described in the embodiment of fig. 1, and may be a software unit, a hardware unit or a unit combining software and hardware that is built in the mobile terminal. The mobile terminal is provided with a touch display screen, and the touch display screen comprises but is not limited to a smart phone, a tablet computer, a learning machine or smart vehicle-mounted equipment and the like.
As shown in fig. 6, the apparatus 600 includes:
a latitude and longitude information obtaining unit 601, configured to obtain latitude and longitude information on a compass application interface;
a latitude and longitude information translation unit 602, configured to translate the latitude and longitude information into a name of a geographic location;
the display unit 603 is configured to display the name of the geographic location and the simulated graphic of the compass on the compass application interface at the same time.
Further, the apparatus may further include:
the living city acquisition unit is used for acquiring the city name of the living city of the user;
the street longitude and latitude information acquisition unit is used for acquiring the street name of each street of the user living city and the longitude and latitude information of the position of each street according to the city name;
the storage unit is used for correspondingly storing the street name of each street and the longitude and latitude information of the position of the street in a database;
the longitude and latitude information translation unit is specifically used for searching the corresponding street name in the database through the acquired longitude and latitude information on the compass application interface.
Further, the city of residence acquisition unit is specifically configured to:
determining a city name input by a user as the city name of a city where the user lives; or,
and determining the city with the longest residence time of the mobile terminal according to the historical navigation data of the mobile terminal, determining the city as the user living city, and acquiring the city name of the city.
Further, the compass display device may further include:
an interest information acquiring unit, configured to acquire user interest information related to a geographical location;
and the interesting information display unit is used for displaying the interesting information of the user in the corresponding direction around the simulation graph based on the direction relation between the geographical position related to the interesting information of the user and the current position of the mobile terminal.
Further, the information of interest to the user includes weather information of a preset geographical location;
the information of interest display unit further includes:
the azimuth obtaining subunit is used for obtaining an azimuth relation between the preset geographic position and the current position of the mobile terminal;
the display area determining subunit is used for determining a display area in the corresponding direction around the simulation graph based on the pointing state of the compass;
and the weather information display subunit displays the weather information in the determined display area.
Further, the user interest information comprises a point of interest (POI);
the information of interest display unit further includes:
the POI position obtaining subunit is used for obtaining a position relation between the geographical position of the POI and the current position of the mobile terminal;
the display area determining subunit is used for determining a display area in the corresponding direction around the simulation graph based on the pointing state of the compass;
the POI preset graph acquisition subunit is used for acquiring a preset graph corresponding to the type of the POI;
and the POI display subunit is used for displaying the preset graph in the determined display area.
Further, the compass display device may further include:
the geographic location is a street level administrative area,
the latitude and longitude information translation unit further includes:
the searching subunit is used for searching a street closest to the current position if the longitude and latitude information has no corresponding street;
and the display unit is used for displaying the name of the street closest to the current position as a longitude and latitude information translation result on a compass application interface.
Further, the search subunit is configured to:
acquiring longitude and latitude information of landmark buildings of streets adjacent to the periphery of the current position;
calculating the linear distance between the landmark building and the current position according to the longitude and latitude information of the current position;
and taking the street where the landmark building with the shortest straight-line distance is located as the street closest to the current position.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
EXAMPLE five
Fig. 8 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 8, the terminal device 8 of this embodiment includes: a processor 80, a memory 81 and a computer program 82 stored in said memory 81 and executable on said processor 80. The processor 80, when executing the computer program 82, performs the steps of the compass display method embodiments described above, such as steps S101-S103 shown in fig. 1. Alternatively, the processor 80, when executing the computer program 82, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the modules 701 to 703 shown in fig. 7.
The terminal device 8 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of a terminal device 8 and does not constitute a limitation of terminal device 8 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 80 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 81 may be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8. The memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the terminal device 8. The memory 81 is used for storing the computer program and other programs and data required by the terminal device. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (16)

1. A method for displaying a compass application interface, comprising:
acquiring longitude and latitude information on a compass application interface;
triggering a compass application to execute longitude and latitude information translation based on the longitude and latitude information translation bar touched by a user, and translating the longitude and latitude information into a name of a geographic position;
displaying the name of the geographic location and the simulated graphic of the compass on the compass application interface simultaneously;
the method further comprises the following steps: the compass application interface is also provided with a positioning button, when a user triggers the positioning button, a map interface is displayed on the background of the compass application interface, meanwhile, the compass simulation graph is transparently displayed on the application interface, and when the compass simulation graph is transparently displayed, the simulation graph floats on the surface of the display interface so as not to block the display of the map interface;
the method further comprises the following steps: obtaining user interest information related to a geographical position; and displaying the information of interest of the user in corresponding directions around the simulation graph based on a direction relation between the geographical position related to the information of interest of the user and the current position of the mobile terminal, wherein the information of interest of the user comprises at least one of weather information of a preset geographical position, surrounding scenery spot information and interest point POI.
2. The method for displaying a compass application interface of claim 1, wherein prior to said obtaining latitude and longitude information on a compass application interface, further comprising:
acquiring a city name of a user living city;
acquiring the street name of each street of the user living city and the longitude and latitude information of the position of each street according to the city name;
correspondingly storing the street name of each street and the longitude and latitude information of the position of the street in a database;
the translating the latitude and longitude information into a name of a geographic location includes:
and searching the corresponding street name in the database through the acquired longitude and latitude information on the compass application interface.
3. The method for displaying a compass application interface of claim 2 wherein said obtaining a city name of a city where the user resides comprises:
determining a city name input by a user as the city name of a city where the user lives; or,
and determining the city with the longest residence time of the mobile terminal according to the historical navigation data of the mobile terminal, determining the city as the user living city, and acquiring the city name of the city.
4. The method for displaying a compass application interface of claim 1, further comprising:
the displaying the information of interest to the user in the corresponding direction around the simulation graph based on the direction relation between the geographical position related to the information of interest to the user and the current position of the mobile terminal comprises:
acquiring the azimuth relationship between the preset geographic position and the current position of the mobile terminal;
determining a display area at a corresponding bearing around the simulated graphic based on the pointing state of the compass;
and displaying the weather information in the determined display area.
5. The compass application interface display method of claim 1, wherein displaying the user information of interest at a corresponding bearing around the simulated graphic based on a bearing relationship between a geographic location associated with the user information of interest and a current location of the mobile terminal comprises:
acquiring a position relation between the geographical position of the POI and the current position of the mobile terminal;
determining a display area at a corresponding orientation around the simulated graphics;
acquiring a preset graph corresponding to the type of the POI;
and displaying the preset graph in the determined display area.
6. The method of displaying a compass application interface of claim 1 wherein the geographic location is a street level administrative area;
the translating the longitude and latitude information into a name of a geographic location specifically comprises: if the longitude and latitude information does not have a corresponding street, searching a street closest to the current position;
and displaying the name of the street closest to the current position on a compass application interface as a longitude and latitude information translation result.
7. The method for displaying a compass application interface of claim 6, wherein said locating a street closest to the current location comprises:
acquiring longitude and latitude information of landmark buildings of streets adjacent to the periphery of the current position;
calculating the straight-line distance between the landmark building of the street and the current position according to the longitude and latitude information of the current position;
and taking the street where the landmark building with the shortest straight-line distance is located as the street closest to the current position.
8. A display device for a compass application interface, comprising:
the latitude and longitude information acquisition unit is used for acquiring latitude and longitude information on a compass application interface;
the longitude and latitude information translation unit is used for triggering a compass application to execute longitude and latitude information translation based on the fact that a user touches the longitude and latitude information translation bar, and translating the longitude and latitude information into a name of a geographic position;
the display unit is used for simultaneously displaying the name of the geographic position and the simulated graph of the compass on the compass application interface;
the display device further includes: the compass application interface is also provided with a positioning button, when a user triggers the positioning button, a map interface is displayed on the background of the compass application interface, meanwhile, the compass simulation graph is transparently displayed on the application interface, and when the compass simulation graph is transparently displayed, the simulation graph floats on the surface of the display interface so as not to block the display of the map interface;
the display device further includes: an interest information acquiring unit, configured to acquire user interest information related to a geographical location; and the interest information display unit is used for displaying the interest information of the user in the corresponding directions around the simulation graph based on the direction relation between the geographical position related to the interest information of the user and the current position of the mobile terminal, wherein the interest information of the user comprises at least one of weather information of a preset geographical position, surrounding scenery spot information and interest point POI.
9. The compass application interface display apparatus of claim 8, further comprising:
the living city acquisition unit is used for acquiring the city name of the living city of the user;
the street longitude and latitude information acquisition unit is used for acquiring the street name of each street of the user living city and the longitude and latitude information of the position of each street according to the city name;
the storage unit is used for correspondingly storing the street name of each street and the longitude and latitude information of the position of the street in a database;
the latitude and longitude information translation unit is specifically configured to:
and searching the corresponding street name in the database through the acquired longitude and latitude information on the compass application interface.
10. The compass application display of claim 9, wherein the city of residence acquisition unit is further configured to:
determining a city name input by a user as the city name of a city where the user lives; or,
and determining the city with the longest residence time of the mobile terminal according to the historical navigation data of the mobile terminal, determining the city as the user living city, and acquiring the city name of the city.
11. The compass application interface display of claim 8,
the information of interest display unit includes:
the azimuth obtaining subunit is used for obtaining an azimuth relation between the preset geographic position and the current position of the mobile terminal;
the display area determining subunit is used for determining a display area in the corresponding direction around the simulation graph based on the pointing state of the compass;
and the weather information display subunit displays the weather information in the determined display area.
12. The compass application interface display apparatus of claim 11, wherein the information of interest display unit comprises:
the POI position obtaining subunit is used for obtaining a position relation between the geographical position of the POI and the current position of the mobile terminal;
a display area determination subunit that determines a display area in a corresponding orientation around the simulation figure;
the POI preset graph acquisition subunit is used for acquiring a preset graph corresponding to the type of the POI;
and the POI display subunit is used for displaying the preset graph in the determined display area.
13. The compass application interface display of claim 8, wherein the geographic location is a street-level administrative area, and further comprising:
the latitude and longitude information translation unit further includes:
the searching subunit is used for searching a street closest to the current position if the longitude and latitude information has no corresponding street;
and the display unit is used for displaying the name of the street closest to the current position as a longitude and latitude information translation result on a compass application interface.
14. The compass application interface display device of claim 13, wherein the lookup subunit is specifically configured to:
acquiring longitude and latitude information of landmark buildings of streets adjacent to the periphery of the current position;
calculating the linear distance between the landmark building and the current position according to the longitude and latitude information of the current position;
and taking the street where the landmark building with the shortest straight-line distance is located as the street closest to the current position.
15. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
16. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201710825954.XA 2017-09-14 2017-09-14 Compass display method and device and computer readable medium Active CN107607097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710825954.XA CN107607097B (en) 2017-09-14 2017-09-14 Compass display method and device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710825954.XA CN107607097B (en) 2017-09-14 2017-09-14 Compass display method and device and computer readable medium

Publications (2)

Publication Number Publication Date
CN107607097A CN107607097A (en) 2018-01-19
CN107607097B true CN107607097B (en) 2020-09-25

Family

ID=61063566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710825954.XA Active CN107607097B (en) 2017-09-14 2017-09-14 Compass display method and device and computer readable medium

Country Status (1)

Country Link
CN (1) CN107607097B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111882604A (en) * 2020-06-16 2020-11-03 深圳市震有软件科技有限公司 Method for indicating map direction, compass component vue and storage medium
CN113255352A (en) * 2021-05-12 2021-08-13 北京易华录信息技术股份有限公司 Street information determination method and device and computer equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02243917A (en) * 1988-10-29 1990-09-28 British Aerospace Plc <Baf> Compass system
KR20050026666A (en) * 2003-09-09 2005-03-15 엘지전자 주식회사 Method and apparatus and structure of compass indicating mecca position for mobile phone
CN101268334A (en) * 2005-09-23 2008-09-17 伯斯有限公司 Vehicle navigation system
CN201601716U (en) * 2010-01-08 2010-10-06 龙旗电子(惠州)有限公司 Geomagnetic sensor of mobile phone
EP1336078B1 (en) * 2000-11-21 2011-05-18 Qualcomm Incorporated Method and apparatus for orienting a map display in a mobile or portable device
CN102630076A (en) * 2012-03-20 2012-08-08 广州市动景计算机科技有限公司 Display method and system of target position direction pointing information based on electronic compass
CN103592668A (en) * 2013-08-29 2014-02-19 柳州天运寰通科技有限公司 Wrist band type Beidou satellite positioning device
CN105446573A (en) * 2014-08-15 2016-03-30 小米科技有限责任公司 Method and device for showing direction

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000372B (en) * 2006-12-30 2010-09-29 深圳市凯立德计算机系统技术有限公司 Maprecording method and equipment for tracing navigation
CN201191192Y (en) * 2007-11-23 2009-02-04 吴玉先 Positioning device
US8174561B2 (en) * 2008-03-14 2012-05-08 Sony Ericsson Mobile Communications Ab Device, method and program for creating and displaying composite images generated from images related by capture position
CN101655550B (en) * 2009-08-31 2013-01-16 深圳市喜赛科技有限公司 System and device for tracking positioning and tracking method
CN101650193B (en) * 2009-09-17 2013-06-05 广州风神汽车有限公司 Navigation method
US9551980B2 (en) * 2011-11-09 2017-01-24 Lonestar Inventions, L.P. Solar timer using GPS technology
CN102607583A (en) * 2012-03-16 2012-07-25 武汉畅讯网络科技有限公司 Method for obtaining real-time weather condition in travel line

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02243917A (en) * 1988-10-29 1990-09-28 British Aerospace Plc <Baf> Compass system
EP1336078B1 (en) * 2000-11-21 2011-05-18 Qualcomm Incorporated Method and apparatus for orienting a map display in a mobile or portable device
KR20050026666A (en) * 2003-09-09 2005-03-15 엘지전자 주식회사 Method and apparatus and structure of compass indicating mecca position for mobile phone
CN101268334A (en) * 2005-09-23 2008-09-17 伯斯有限公司 Vehicle navigation system
CN201601716U (en) * 2010-01-08 2010-10-06 龙旗电子(惠州)有限公司 Geomagnetic sensor of mobile phone
CN102630076A (en) * 2012-03-20 2012-08-08 广州市动景计算机科技有限公司 Display method and system of target position direction pointing information based on electronic compass
CN103592668A (en) * 2013-08-29 2014-02-19 柳州天运寰通科技有限公司 Wrist band type Beidou satellite positioning device
CN105446573A (en) * 2014-08-15 2016-03-30 小米科技有限责任公司 Method and device for showing direction

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
how to use the compass on iphone;mick symons;《imore.com/compass-app》;20160901;第1页 *
基于安卓的手机校园导航应用系统;赵振峰;《电脑知识与技术》;20141130;第7050-7052页 *

Also Published As

Publication number Publication date
CN107607097A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
EP2386829B1 (en) Method, mobile device and computer program product for displaying surrounding points of interest
US9110573B2 (en) Personalized viewports for interactive digital maps
US9207096B2 (en) Map magnifier
US20140222335A1 (en) Concurrent Multi-Point Contact Gesture Detection and Response
US20140207368A1 (en) Variable Density Depthmap
US20120303263A1 (en) Optimization of navigation tools using spatial sorting
JP2017224323A (en) Vehicle navigation system and method for presenting information from mobile device
JP2017536527A (en) Providing in-navigation search results that reduce route disruption
CA2779590C (en) Map magnifier
JP2015052583A (en) User portable terminal for retrieving target geographical information and providing the same to user using present location and present azimuth angle of user
US20150002539A1 (en) Methods and apparatuses for displaying perspective street view map
CN107609080B (en) Map data acquisition method and system, electronic equipment and storage medium
JP5175709B2 (en) Direction display device, direction display method, and direction display program
CN107607097B (en) Compass display method and device and computer readable medium
CN105426443A (en) Map data processing method, device and system
US20060142935A1 (en) Providing a user with location-based information
CN114625983B (en) House source information display method and device, electronic equipment and readable storage medium
CN110376625A (en) For warehousing system method for rapidly positioning
CN107560633A (en) A kind of paths planning method and electronic equipment
CN113535285A (en) Interface display method, device, equipment and storage medium
JP2019045958A (en) Spot information display system
US20220163345A1 (en) Information processing apparatus, information processing method, and non-transitory storage medium
JP5688312B2 (en) Electronic book providing server and electronic book providing program
JP4812609B2 (en) Navigation system and navigation device
JP6695115B2 (en) Program, information processing device, operation method providing method

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant