WO2022222761A1 - 地图显示的方法及相关设备 - Google Patents

地图显示的方法及相关设备 Download PDF

Info

Publication number
WO2022222761A1
WO2022222761A1 PCT/CN2022/085582 CN2022085582W WO2022222761A1 WO 2022222761 A1 WO2022222761 A1 WO 2022222761A1 CN 2022085582 W CN2022085582 W CN 2022085582W WO 2022222761 A1 WO2022222761 A1 WO 2022222761A1
Authority
WO
WIPO (PCT)
Prior art keywords
exercise
consumption
route
map
electronic device
Prior art date
Application number
PCT/CN2022/085582
Other languages
English (en)
French (fr)
Inventor
王炳蘅
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22790870.4A priority Critical patent/EP4310453A4/en
Publication of WO2022222761A1 publication Critical patent/WO2022222761A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3453Special cost functions, i.e. other than distance or default speed limit of road segments
    • G01C21/3484Personalized, e.g. from learned user behaviour or user-defined profiles
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers
    • G01C21/3667Display of a road map
    • G01C21/3676Overview of the route on the road map
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • G01C22/006Pedometers
    • 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/23Updating
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • G06F16/287Visualization; Browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • G01S19/45Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to a map display method and related equipment.
  • Some existing methods for planning exercise routes for example, when a user plans an exercise route for outdoor sports (such as running), if the user wants to obtain the exercise consumption information of physical fitness, he can enter the starting and ending points on the electronic map, and the terminal device can pass the The exercise route connecting the starting and ending points calculates the estimated calories consumed by the user exercising on this exercise route.
  • the above-mentioned method for obtaining the exercise consumption information of physical fitness is relatively cumbersome, which is not conducive to the user planning the exercise route, and the user experience is poor.
  • the embodiments of the present application disclose a map display method and related equipment, which solve the technical problem that the prior art method of obtaining physical fitness exercise consumption information is cumbersome and is not conducive to users planning exercise routes.
  • the exercise consumption displayed by the method is It is more intuitive, and the user can directly select or plan a route according to the displayed exercise consumption, which is easy to operate and reduces the resource consumption of the electronic device when running the application program.
  • an embodiment of the present application provides a method for displaying a map, and the method includes:
  • the electronic device displays a first control of a first application, where the first control is used to trigger map planning based on exercise consumption; the electronic device receives a first operation input for the first control; the electronic device responds to the first control an operation, displaying a map interface; wherein, the map interface includes at least one planned target location and one or more movement routes from the starting point to each of the target locations; the target location is based on the first object (also called is the user’s basic consumption efficiency of this exercise, the maximum consumption of a single exercise, and the map information around the starting point, and the determined location; the exercise route shows the exercise consumption from the starting point to the target location.
  • the first object also called is the user’s basic consumption efficiency of this exercise, the maximum consumption of a single exercise, and the map information around the starting point, and the determined location
  • the exercise route shows the exercise consumption from the starting point to the target location.
  • the electronic device receives a first operation for a first control for triggering map planning based on exercise consumption, and displays a map interface, where the exercise route included in the map interface displays a starting point from the starting point.
  • the change of the exercise consumption to the target location provides the user with intuitive exercise consumption information of each exercise route, which solves the problem that the method of obtaining the exercise consumption information of physical fitness in the prior art is cumbersome and is not conducive to the user to plan the exercise route.
  • Users can directly select or plan exercise routes on the map interface according to their needs for exercise consumption, which is easy to operate and reduces the resource consumption of electronic devices when running applications.
  • each exercise route is divided into a plurality of line segments; different line segments in the same exercise route correspondingly display different exercise consumption.
  • each exercise route in the map interface displayed by the electronic device is divided into multiple line segments, and different line segments represent different exercise consumption, that is, a line segment represents a range of exercise consumption, which can provide users with With clear information on exercise consumption, users can better plan exercise routes according to their target exercise consumption and the range of exercise consumption represented by each line segment.
  • each movement route is divided into a plurality of line segments, and different line segments in the same movement route are distinguished by any one of the following display forms: color, line type, pattern , Thickness, Boundary Feature, End Shape, Blur, Transparency.
  • the same movement route is displayed in a gradient form
  • the gradient form is any one of the following display forms: color gradient, transparency gradient, and the gradient form is used for Displays changes in exercise consumption.
  • the same exercise route is marked in the display form of the above-mentioned color gradient or transparency gradient, and the relationship between the degree of gradient (used to indicate the degree of color change or transparency change) and the degree of change in exercise consumption is used, to process and display the exercise route on the map interface.
  • the gradient form provides the user with more concrete exercise consumption information, which is convenient for the user to plan the exercise route according to the information.
  • the map interface also displays an equal exercise consumption line; the equal exercise consumption line is formed by connecting the places that consume the same exercise consumption from the starting point. Close the curve.
  • the location within the area (or within the annular area) composed of each (or every two) and other exercise consumption lines and the range of exercise consumption consumed can be displayed, showing the exercise The relationship between the consumption and the geographical range, the user can directly select the exercise route according to the above relationship and the place they want to pass, which is easy to operate and can save the resource consumption of the electronic device running the application program.
  • the electronic device detects that the user's movement direction changes during the exercise process is greater than the first threshold, it can update the equal exercise consumption line based on the user's real-time location, so that the equal exercise consumption can be further improved. line accuracy.
  • the method further includes:
  • the electronic device receives the operation of the passing node input by the first object; the electronic device responds to the operation of the input passing node, and displays an updated map interface; wherein, the updated map interface includes at least one planned target location and a One or more exercise routes from the starting point to the target location through the passing node; the target location is the basic consumption efficiency of the current exercise based on the first object, the maximum consumption of a single exercise, the vicinity of the starting point and the vicinity of the passing node.
  • the user can select the place he wants to pass through on the map interface, and can touch the corresponding position on the map interface.
  • the map interface will be updated, and the map interface will be updated.
  • the updated map interface includes one or more movement routes from the starting point through the passing nodes to the target location.
  • the electron every time the electron receives an operation of selecting a passing node, it will update the map interface, and the movement consumption of reaching any point on the updated map interface will be superimposed on the movement consumption from the original starting point to the passing node. This ensures the cumulative calculation of exercise consumption. In this way, the electronic device does not need to repeatedly calculate the exercise consumption from the original starting point to the passing node when calculating the location from the original starting point to the passing node, which saves resource consumption.
  • the updated map interface also displays a second-level exercise consumption line; the second-level exercise consumption line is the same exercise consumption consumed from the passing node A closed curve connecting the points reached.
  • the isokinetic consumption line included in the displayed updated map interface can provide the information of the exercise consumption consumed from the passing node to the surrounding places, That is, the relationship between the increased exercise consumption and the geographical range around the passing node provides more intuitive information for the user to continue moving from the passing node.
  • the value of the corresponding exercise consumption is displayed on the iso-exercise consumption line.
  • the method further includes: a warning icon is displayed on the target location on the map interface; the warning icon is used to warn the first object to move on the movement route Exceeding the target site will result in excessive exercise.
  • the electronic device can display the exercise area where the user consumes the maximum consumption of a single exercise, and the warning icon is displayed in a position or area that exceeds the target location (that is, the consumption exceeds the single exercise.
  • the display of the warning icon can remind the user to pay attention to the consumption of exercise consumption during the planning or exercise of a single exercise, so as to avoid excessive fatigue, exercise injury or affect health.
  • a possible implementation manner of displaying a map interface may be: the electronic device according to the present status of the first object (also referred to as the user)
  • the basic consumption efficiency of the secondary exercise and the map information around the starting point are used to determine the exercise consumption from the starting point to multiple nodes; according to the exercise consumption from the starting point to the multiple nodes, the first
  • the maximum consumption of a single exercise of the object determine the movement from the starting point, and consume at least one target location reached by the maximum consumption of the single exercise; determine one or more movements from the starting point to the at least one target location Route; displaying the one or more exercise routes through an electronic map.
  • the basic efficiency of the user's current exercise consumption is determined by the electronic device through the obtained user's personal information and the user's current exercise setting information, and fully considers the user's physical condition, exercise ability and other personal factors, In this way, the electronic device can plan an exercise route based on exercise consumption that meets the user's personal situation and needs. For example, the electronic device predicts that the user's recent exercise ability is weaker than the general situation through the obtained personal information of the user, and the basic efficiency of this exercise is higher. When the maximum consumption of a single exercise is the same, the starting point and other factors are also the same. , the planned movement route is different from its general movement route.
  • the electronic device determines one or more exercise routes from the starting point to at least one target location through the user's current exercise basic consumption efficiency, map information around the starting point, and the user's maximum consumption for a single exercise, and these exercise routes are displayed in the On the map interface, users are provided with a variety of options for exercise routes.
  • the map information around the departure point includes the distance, gradient, gradient distribution, road surface quality, and traffic conditions of paths from the departure point to the plurality of nodes.
  • the electronic device determines the exercise consumption from the starting point to multiple nodes in combination with the basic consumption efficiency of this exercise and the above-mentioned map information around the starting point. In this way, the calculated exercise consumption will be more accurate, and the exercise route that meets the user's needs can be planned for the user.
  • the exercise consumption is measured by any one of the following measurement methods: calorie consumption, calorie consumption, energy consumption, weight loss, sugar consumption, fat consumption, Exercise volume integral, exercise task target percentage.
  • any one of the above-mentioned measurement methods can measure the amount of exercise consumption, and different measurement methods can represent different indicators of exercise consumption, providing users with various choices.
  • the user can select a measurement method according to requirements, for example, the user sets the calorie consumption as the measurement method of the exercise consumption.
  • the method further includes:
  • the electronic device receives a second operation inputted to a selection control of a route on the map interface, the selection control is used to select a target route; in response to the second operation, displaying the selected target route; performing the operation according to the target route navigation.
  • the electronic device can navigate the selected target route in response to the received operation input by the user on the selection control of the route, so as to guide the user to exercise according to the target route, and complete the user's consumption target exercise consumption without Exercise goals that exceed the maximum consumption of a single exercise.
  • the method further includes:
  • the map interface is updated with the current position as a passing node.
  • the map interface when the electronic device detects that the user deviates from the target route, the map interface can be updated.
  • the updated map interface can provide the user with the information on the exercise consumption and the feasible exercise route to continue exercising from the current position, ensuring that Exercising according to a feasible exercise route will not exceed the maximum consumption of a single exercise.
  • the exercise route of the map interface can still be temporarily adjusted to ensure that the user will not continue to exercise after deviating from the target route, exceeding the maximum consumption of a single exercise, causing excessive fatigue or increasing the risk of injury.
  • the method before the displaying the map interface, the method further includes:
  • the electronic device receives the maximum consumption of a single exercise entered by the user.
  • the maximum consumption of a single exercise can be set by the user according to his own body, exercise ability, etc., so that the electronic device can fully combine the user's requirements for the exercise consumption of this exercise, and improve the user experience at the same time. , and can also improve the accuracy and pertinence of the electronic device for the planning of the movement route.
  • embodiments of the present application provide an electronic device, including: one or more processors and one or more memories, wherein the one or more memories are respectively coupled to the one or more processors; the one or more memories for storing computer program code, the computer program code comprising computer instructions;
  • the processor is configured to invoke the computer instructions to execute: the method for displaying a map as described in the first aspect and any possible implementation manner of the first aspect.
  • an embodiment of the present application provides a computer storage medium, including computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to perform any one of the first aspect and the first aspect.
  • the implementation describes the map display method.
  • the electronic device provided in the second aspect and the computer-readable storage medium provided in the third aspect are both used to execute the map display method described in the first aspect and any possible implementation manner of the first aspect. Therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects in the corresponding method, which will not be repeated here.
  • FIG. 1 is a schematic diagram of an application scenario of a method for map display provided by an embodiment of the present application
  • FIG. 2A is a schematic flowchart of a method for displaying a map according to an embodiment of the present application
  • 2B is a schematic flowchart of a method for displaying a map provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of an indicator interface for setting this exercise provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of the display forms of several exercise routes provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a map display interface provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of display forms of several other exercise routes provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a display form of an isokinetic consumption line provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a display form of a warning icon provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of an electronic device displaying a map interface according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a display interface provided by an embodiment of the present application.
  • 11-13 are schematic diagrams of several calculation methods of exercise consumption from a starting point to a node provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • FIG. 15 is a schematic diagram of a software architecture of an electronic device provided by an embodiment of the present application.
  • the electronic device may be a terminal with a display function, where the terminal may include, but is not limited to, a smart phone, a notebook computer, a personal computer, a personal digital assistant, a mobile Internet device, and a smart wearable device (such as a smart watch, Smart bracelets) and other user terminals.
  • the electronic device may also be a server capable of generating a map showing exercise consumption provided by the embodiment of the present application.
  • the exercise consumption may be calorie consumption, calorie consumption, energy material consumption, weight loss, sugar consumption, fat consumption, exercise volume points, exercise task target percentage, etc., which can indicate exercise consumption. Any one of other measurement units is not limited in the embodiments of the present application.
  • FIG. 1 is a schematic diagram of an application scenario of a map display method provided by an embodiment of the present application.
  • the user also referred to as the first object in the embodiment of the present application
  • the application also referred to as the first application
  • the application program installed on the terminal device 20 may be a sports application program with map display and navigation functions, or an electronic map application program.
  • the terminal device 20 can be used to display the interface 30, and the interface 30 can include personal information of the user 10, such as gender, age, height, weight, exercise record, exercise ability, exercise skill level, historical exercise consumption evaluation value, recent fatigue level, recent sleep quality, etc.
  • the personal information of the user 10 may be obtained by the terminal device 20 through the Internet or local data, or may be input by the user 10 himself.
  • the terminal device 20 can also be used to display the interface 40.
  • the interface 40 can be the setting interface of this exercise, and can include the target exercise consumption, exercise type, physical fitness strategy, pace strategy, etc. of this exercise.
  • the interface 40 can include this exercise.
  • the target exercise consumption can be the target consumption of this exercise or the exercise of the day;
  • the exercise type can be set as one of running, walking, cycling, mountain climbing, etc.;
  • the physical fitness strategy can be the consumption per unit time, etc. ;
  • the pace strategy can be a user-selected or entered sport pace.
  • the terminal device 20 can display the map in response to the first operation after receiving the first operation that triggers the first control input for map planning based on exercise consumption.
  • An interface exemplarily, is interface 50 in FIG. 1 .
  • the map interface includes at least one planned target location and one or more exercise routes from the starting point to each target location; the target location is based on the user 10's basic consumption efficiency of this exercise, the maximum consumption of a single exercise, and the starting point.
  • the surrounding map information, the determined location; the exercise route shows the change of exercise consumption from the starting point to the target location.
  • the basic consumption efficiency of the current exercise of the user 10 may be determined by the terminal device 20 through the basic consumption efficiency of the user 10 and the exercise type, pace strategy and other information of the current exercise of the user 10; the maximum consumption of a single exercise It may be input by the user 10 on the terminal device 20 , or calculated by the terminal device through information such as the user 10's personal information and exercise records.
  • the variation of the exercise consumption from the starting point to the target location displayed by the exercise route can be displayed through different colors, transparency, blurriness, patterns, border features, line thickness, line end shape, line type, etc. one of them to represent.
  • the map interface may also display equal exercise consumption lines; these exercise consumption lines are closed curves formed by connecting places from the starting point to places that consume the same exercise consumption.
  • the user 10 can also select a route node on the map interface by touching and clicking, or inputting, etc. Each time a route node is selected, the map interface is updated, and finally one or more route nodes from the starting point can be obtained. exercise route.
  • the user 10 may select one of the one or more exercise routes on the map interface as the target route, and then the terminal device 20 displays the target route and performs navigation according to the target route.
  • the starting point or exercise area of the user 10 is a non-road network environment, such as a square or open water
  • the non-road network environment can be gridded, and then the movement route planning and map display can be performed.
  • FIG. 2A is a schematic flowchart of a method for displaying a map according to an embodiment of the present application.
  • the method can be performed by the terminal device 20 shown in FIG. 1 above, and the method can include but is not limited to the following steps:
  • the electronic device displays a first control through a display device.
  • the first control is used to trigger map planning based on exercise consumption.
  • the display device may be one of a display screen, a projection device, and the like, and the embodiments of the present application will be described by taking the display device being a display screen of an electronic device as an example.
  • FIG. 3 is a schematic diagram of an indicator interface for setting the current exercise.
  • the interface is used to display the setting entry for obtaining the user's current exercise and display the trigger for map planning based on consumption.
  • the interface may also be the interface 40 in FIG. 1 above.
  • the interface can include the input or setting entry of various indicators in this exercise, such as target exercise consumption 301, exercise type 302, physical fitness strategy 303, pace strategy 304, and the input or setting entry can be input through keyboard or touch selection.
  • the setting information input for each index in this exercise can be used to determine the basic exercise consumption efficiency of the user.
  • the interface also includes a planned route control 305, which may be the first control. After the electronic device receives the setting information of each index of the current exercise input by the user, it can also send out prompt information, where the prompt information is used to prompt the user to click the planned route control 305 .
  • the user inputs a first operation with respect to the first control.
  • the first operation input by the user for the first control may be a touch operation through an input device (such as a touch-sensitive panel), or may be an audio input collected through other input devices, such as a microphone, such as a voice command "Plan a route" ".
  • an input device such as a touch-sensitive panel
  • an audio input collected through other input devices such as a microphone, such as a voice command "Plan a route” ".
  • a method for displaying a map provided by the embodiment of the present application is described by taking the user operation as a touch operation as an example.
  • the electronic device receives the first operation input for the first control.
  • the electronic device displays a map interface in response to the first operation.
  • the map interface includes at least one planned target location and one or more movement routes from the starting point to each target location, “multiple” refers to two or more; the target location is based on the first object (user)
  • the basic consumption efficiency of this exercise the maximum consumption of a single exercise, and the map information around the starting point, determine the location; the exercise route shows the change in exercise consumption from the starting point to the target location. It should be understood that the maximum consumption of a single exercise needs to be consumed from the starting point to the target location.
  • the starting point is the location where the user starts the exercise, which may be the current location of the user obtained by the electronic device through the positioning system, or may be the location selected by the user in the map interface.
  • the map interface may also display an iso-exercise consumption line and a warning icon.
  • the exercise route on the map interface displays the change in exercise consumption from the starting point to the target location, which can be implemented in the following two implementation manners.
  • each motion route is divided into multiple line segments.
  • different line segments in the same exercise route correspondingly display different exercise consumption.
  • Different line segments in the same motion route are distinguished by any of the following display forms: transparency, color, line type, pattern, thickness, boundary feature, end point shape, ambiguity, etc.
  • FIG. 4 several marking methods shown in FIG. 4 are used to describe the display forms in which different line segments in the same exercise route correspondingly display different exercise consumption.
  • different line segments (different from the same display form) in each marking method correspond to different exercise consumptions respectively.
  • a is the movement route marked by the transparency marking method, wherein the transparency of different line segments can be distinguished by the transparency degree of the line segment from 0% to 100%
  • the line segment 1 in the movement route a is the line segment marked with transparency 1
  • line segment 2 is the line segment marked with transparency 2
  • line segment 3 is the line segment marked with transparency 3
  • transparency 1 corresponds to the range of exercise consumption [x1, x2]
  • transparency 2 corresponds to the range of exercise consumption [x2, x3]
  • the transparency 3 corresponds to the range of motion consumption [x3, x4]
  • each line segment is drawn in this way
  • x1, x2, x3, x4 are positive numbers.
  • FIG. 4 b in Figure 4 is the movement route marked with color marking method, wherein, line segment 4 is the line segment marked with color 1, line segment 5 is the line segment marked with color 2, line segment 6 is the line segment marked with color 3, color 1 Corresponds to the range of exercise consumption [x1, x2], color 2 corresponds to the range of exercise consumption [x2, x3], and color 3 corresponds to the range of exercise consumption [x3, x4].
  • the marking of the movement route can also be a line type marking method or a thickness marking method, and the movement route c is represented by different line types (such as the type of solid line and dashed line) to indicate different
  • the range of exercise consumption the exercise route d is the range of different exercise consumption represented by the thickness of different lines.
  • the marking method of different line segments of the same movement route can also be the boundary feature marking method, and the boundary feature can be the color of the line segment boundary, as shown in e in Figure 4, each line segment is outlined with a different boundary color, and the line segment 7 is the color of the line segment.
  • Line segment outlined by border color 1 line segment 8 is the line segment outlined by border color 2
  • line segment 9 is the line segment outlined by border color 3
  • line segment 7 corresponds to the range of exercise consumption [x1, x2]
  • line segment 8 corresponds to exercise
  • the line segment 9 corresponds to the range of exercise consumption [x3, x4]
  • each line segment is drawn in this way.
  • the pattern marks different line segments in the same exercise route, so that each line segment corresponds to a range of exercise consumption.
  • the range (value range) of the exercise consumption corresponding to each line segment can be displayed on the upper layer of each line segment to prompt the user to exercise to different line segments on the exercise route The amount of exercise consumption that needs to be consumed.
  • each line segment and its corresponding exercise consumption can be displayed on the map interface by means of a legend, which is used to assist the user to obtain exercise to exercise on the exercise route to different The exercise consumption that needs to be consumed on the line segment, wherein the legend can be the description of the content and indicators represented by various symbols and colors on the map interface, and can indicate the range of exercise consumption corresponding to the marking method of the line segment.
  • FIG. 5 shows the distance from the starting point to multiple target locations (T1, T2, T1, T2, T1, T2) determined by the electronic device based on the user’s maximum consumption for a single exercise, the user’s basic consumption efficiency for this exercise, and map information around the starting point. , T3, T4, T5, T6, T7, T8) multiple exercise routes.
  • color 1 corresponds to a range of exercise consumption, such as 0-100 kcal; color 2 corresponds to another range of exercise consumption, such as 100-200 kcal; color 3 Corresponding to another range of exercise consumption, such as 200-300 kcal; in this way, until the target location.
  • each motion path is displayed in a gradient.
  • the gradient form can be any of the following display forms: color gradient, transparency gradient, and the gradient form of the exercise route corresponding to display different exercise consumption, so as to display the change in exercise consumption from the starting point to the target location.
  • the display of the exercise route can be realized by the transparency gradient marking method in a in Figure 6.
  • the different transparency of the exercise route can represent the exercise consumption from the starting point, and the gradient of the transparency can be expressed in the exercise route.
  • the display of the exercise route can also be realized by the color gradient marking method, and the different colors of the exercise route can represent different exercise consumption from the starting point.
  • the color gradient (such as from color 1 to color 2) can indicate the change of exercise consumption on the exercise route, color 1 indicates that the exercise consumption is 0, and color 2 indicates that the exercise consumption is the maximum consumption of a single exercise .
  • a relationship between the degree of gradient (used to indicate the degree of color change or transparency change) and the degree of change in exercise consumption can be established, and the electronic device processes the exercise route on the map interface according to the relationship and display.
  • the gradient form provides the user with more concrete exercise consumption information, and assists the user to design and select the exercise route according to the information.
  • the map interface can also display an isokinetic consumption line; wherein, the isokinetic consumption line is a closed curve formed from the starting point and the points reached by consuming the same exercise consumption.
  • FIG. 7 is a schematic diagram of a display form of an iso-exercise consumption line, including iso-exercise consumption lines 1 , 2 , 3 , 4 , and 5 .
  • the process of determining the iso-exercise consumption line may be based on the user's current exercise basic consumption efficiency and the map information around the starting point, to determine the first exercise consumption (such as 100 kcal) of exercise consumption estimated to be consumed from the starting point to arrive.
  • a closed curve (1 is the consumption line of 100 kcal in Figure 7) and display it on the map interface.
  • Figure 7, 2, 3, 4, and 5 are the exercise consumption lines of 200 kcal, 300 kcal, 400 kcal, and 600 kcal, respectively. Moving along multiple exercise routes from the starting point (the direction of movement does not change) to an equal exercise consumption line, the exercise consumption is the same.
  • the electronic device when the electronic device detects that the user's movement direction changes during the exercise process is greater than a first threshold, it can update the iso-exercise consumption line with the user's real-time location. In some embodiments, as shown in FIG. 7 , the value of the corresponding exercise consumption may also be displayed on the iso-exercise consumption line.
  • the map interface may also display warning icons and marked points.
  • the warning icon and mark point can be displayed at the position of the target location of each exercise route or displayed in the area exceeding the target location, which can be used to warn the user that exercising over the target location on the exercise route will cause excessive exercise.
  • the display of the warning icon The user can be reminded to pay attention to the consumption of exercise consumption during the planning or exercise of a single exercise, so as to avoid sports injuries or affect health.
  • the warning icons and marking points may be displayed by elements such as colors and symbols. For example, as shown in the warning icons 801 , 802 , 803 and 804 in FIG. 8 , the position of the warning icons is that the consumption exceeds the maximum consumption of a single exercise.
  • the specific display mode of the warning icon and the mark point is not limited in the embodiment of the present application.
  • the above-mentioned maximum consumption of a single exercise is generally a consumption that the user cannot reach in a single exercise, and no calculation and display are performed for places that can only be reached by consuming more than the maximum consumption.
  • FIG. 2B is a schematic flowchart of another map display method provided by an embodiment of the present application.
  • the electronic device displays the map interface (S101-S104) including the movement route from the starting point to at least one place
  • the user may select a passing node by inputting or on the map interface.
  • the operation of selecting a passing node may be a touch
  • S101-S104 reference may be made to the relevant descriptions of steps S101-S104 in FIG. 2A, which are not repeated here. S1041.
  • the user inputs an operation for a route node on the map interface.
  • the electronic device executes S1042.
  • an updated map interface is displayed.
  • the updated map interface includes at least one planned target location and one or more exercise routes from the starting point to the passing node to the target location; the target location is based on the user's basic consumption efficiency of this exercise and the maximum consumption of a single exercise , the map information around the starting point and the surrounding nodes, and determine the location from the starting point to the passing node; the movement route shows the change of the movement consumption from the starting point through the passing node to the target location.
  • the target location in the updated map interface is the updated location, and the maximum consumption of a single exercise is required to reach the location from the starting point through the passing node.
  • the exercise route displayed on the updated map interface can display the change in exercise consumption from the starting point to the target location through the passing node.
  • the display method of the exercise route please refer to the above-mentioned related diagrams in FIG. 4 and FIG. 6 . description, which will not be repeated here.
  • the updated map interface may also display an iso-exercise consumption line (also called a second iso-exercise consumption line) starting from a passing node, and the exercise consumption line is a route from a passing node. It is a closed curve connecting the places that consume the same amount of exercise consumption.
  • the value of the corresponding exercise consumption may be displayed on the iso-exercise consumption line.
  • the electronic device After receiving the operation of selecting a route node input by the user each time, the electronic device updates the map interface with the input route node as the new starting point, and the exercise consumption reaching any point on the updated map interface will be superimposed on the map interface.
  • the exercise consumption from the original starting point to the passing node thus ensuring the cumulative calculation of the exercise consumption.
  • the electronic device responds to multiple input operations of selecting a passing node, it displays a map interface after multiple updates, and the map interface after multiple updates displays at least the number of times from the original starting point to the target location that passes through all the input passing nodes.
  • a movement route that is, after completing the route planning of passing nodes, can display the control for selecting the target route, which is used to prompt the user to select the movement route.
  • the electronic device navigates according to the received target route selected on the map display interface, and the process may be: the electronic device receives an operation input by a selection control for the route on the map interface, and the selection control is used to select the target route ; the electronic device displays the selected target route in response to the above-mentioned operation of the selection control for the route; further, the electronic device navigates according to the target route.
  • the user's starting point or exercise area is a non-road network environment or an open sports environment, such as a square or open water
  • the non-road network environment can be gridded, and then the above-mentioned map display method can be used. Display the map interface.
  • the electronic device when the electronic device detects that the user deviates from the selected target route during the movement, the electronic device may prompt the user and update the map interface, that is, display the map interface re-planned from the user's deviation point.
  • the electronic device receives an operation for the round-trip mode control input, and the round-trip mode is used to indicate that the default is to return to the original path, and the movement mode is consistent back and forth.
  • the electronic device can display the above-mentioned map interface, wherein the target location is also the starting point, and the map interface displays the exercise route from the starting point to the halfway point and the return from the halfway point to the starting point, and the round-trip exercise route can consume a maximum of a single time. exercise consumption.
  • the above-mentioned map interface may also include a route by way of driving, etc., for the combination of the travel route and the exercise route.
  • the electronic device detects that the user changes the exercise type (such as switching from running to hiking, the process may be to detect the user's exercise stride, exercise speed, etc. through a sensor), and can update the map interface. At this time, the exercise consumption The amount is superimposed on the exercise consumption from the original starting point to the current position.
  • the exercise type such as switching from running to hiking, the process may be to detect the user's exercise stride, exercise speed, etc. through a sensor
  • the electronic device detects that the user inputs an operation to change the exercise type and the location where the exercise type is changed, and updates the map interface.
  • the above-mentioned map display method displays the change of exercise consumption from the starting point to the target location through the exercise route, which provides the user with a more intuitive exercise route and can assist the user in planning and selecting the exercise route.
  • users can add passing nodes on the map interface by touching or inputting passing nodes according to their own needs, and can update the map interface to display the adjusted movement route. Both the starting point and the passing node can be freely selected.
  • the method of displaying the map is as follows: Users are provided with a flexible way to plan the movement route.
  • the process of displaying the map interface by the electronic device includes determining the amount of exercise consumption required to exercise from the starting point to any location around the starting point on the map interface, so that the consumption order can be determined.
  • the target location of the maximum exercise consumption of the second exercise Further, based on the exercise consumption required to move from the starting point to any location around the starting point on the map interface, the display mode of any movement route described in the above-mentioned S104 (the first realization and the second realization) are applied.
  • the various display methods described in ), sports consumption lines and warning icons are displayed to display the map interface.
  • FIG. 9 is a schematic flowchart of an electronic device displaying a map interface in response to a first operation. The process may include but is not limited to the following steps:
  • the electronic device acquires the maximum consumption of a single exercise of the user.
  • the electronic device may acquire the user's maximum consumption for a single exercise through the user's input.
  • the electronic device may display an interface as shown in FIG. 10 , and the interface may include prompt information 1001 of “Please enter the maximum consumption of a single exercise”, an input box 1002 of the maximum consumption of a single exercise, and a confirmation control 1003. .
  • the user can input the maximum consumption of a single exercise in the input box 1002 according to the prompt information, and then the electronic device can continue to perform S902 by using the obtained maximum consumption of a single exercise.
  • the maximum consumption of a single exercise is generally the consumption that a person will not reach.
  • the interface shown in FIG. 10 may be displayed after or before responding to the first operation.
  • the interface shown in FIG. 10 may be displayed after responding to the first operation, the electronic device displays the interface shown in FIG. 3 , and the first control is the “planning route” control 305.
  • the electronic device receives The user inputs an operation to the "plan route” control 305, and in response to the operation, the interface shown in FIG. 10 is displayed.
  • the interface shown in FIG. 10 may be displayed before responding to the first operation, and the electronic device may display the interface shown in FIG. 10 before displaying the interface shown in FIG. 3 .
  • the user can input the maximum consumption of this exercise in the input box 1002 of the maximum consumption of a single exercise through a soft keyboard, etc.
  • the electronic device receives the user's input operation, when the electronic device receives the confirmation control 1003 shown in FIG. 10 . After the input operation, the interface shown in Figure 3 is displayed.
  • the electronic device acquires the user's personal information (for example, gender, age, height, weight, exercise record, exercise ability, etc.).
  • the user's personal information can be obtained by electronic devices through the Internet or local data.
  • the user's personal information data may be stored locally or uploaded to a server in the Internet by acquiring the user's input in the interface 30 shown in FIG. 1 .
  • the user's personal information can be used to assess the user's physical profile.
  • the electronic device determines the basic consumption efficiency of the user's personal exercise consumption according to the user's personal information.
  • the electronic device determines the user's current exercise consumption basic efficiency according to the current exercise setting information (exercise type, pace, etc.) input by the user and combined with the consumption basic efficiency of personal exercise consumption.
  • the electronic device obtains map information from the user's starting point to each node around it (the distance, slope, slope distribution, number of intersections, road quality, and current traffic conditions of the path from the starting point to each node), the user
  • the basic efficiency of this exercise consumption and the map information from the starting point to each node determine the exercise consumption from the starting point to each node until the node (target location) with the maximum consumption of a single exercise is reached.
  • the node is any point on the map interface that can be reached from the starting point, including an intersection point or a non-junction point.
  • the electronic device determines the exercise consumption from the starting point to multiple nodes (junction points or non-junction points) according to the user's current exercise basic consumption efficiency and map information around the starting point. Include the following steps:
  • the energy consumption parameter p is:
  • represents the slope angle
  • pdf is the gradient density distribution function
  • k t ( ⁇ ) represents the unit distance movement consumption efficiency under different slopes
  • t is the movement type
  • d is the total distance of the path.
  • the slope angle ⁇ , pdf, d of the path can be obtained from the electronic map.
  • k t ( ⁇ ) is known data that can be obtained through big data statistics, and represents the exercise consumption rate of exercise type t under the slope angle ⁇ . Further, using the basic efficiency of current exercise consumption obtained in the above S02-S04, combined with the energy consumption parameter p, the exercise consumption amount Q that the user needs to consume when exercising with the exercise type t under the path is calculated.
  • the traversed intersection point A is taken as an example to illustrate the calculation of the movement consumption from the traversed intersection point A to its adjacent intersection point B.
  • B is not a traversed intersection point
  • the exercise consumption from starting point S to A is a
  • the exercise consumption ab from A to B
  • B is the traversed intersection point (A1 in Figure 11)
  • the calorie consumption from S to B is b'
  • the exercise consumption from starting point S to A is a
  • the exercise consumption from A to B is ab
  • the movement consumption from the non-junction point to its adjacent intersection point and the movement consumption from the departure point to its adjacent intersection point can be calculated. If there is one adjacent intersection point of the non-junction point C, which is the intersection point A, the movement consumption from the starting point S to A is a, and the movement consumption from C to A is ac, then from the starting point S to the non-junction point C
  • the exercise consumption c of can be expressed as a+ac. If there are two adjacent intersection points of non-junction point C, two different c can be calculated, and the smaller value is taken as the movement consumption to reach C.
  • C is a non-junction point, its adjacent intersection points are A and A1, the exercise consumption from the starting point S to A is a, and the exercise consumption from the starting point S to A1 is a1,
  • the intersection point is the actual location corresponding to the location of the intersection in the electronic map, which is characterized in that the point can directly travel in three or more different directions;
  • the adjacent intersection point of a certain point is an intersection point that starts from this point and can be reached by a specified movement type, and does not pass through other intersection points on the way.
  • the electronic device repeatedly performs the above step (3), and continuously extends the traversed intersection points to the periphery to obtain the movement consumption from the starting point to multiple nodes (including intersection points and non-junction points). For the traversed intersection points that need to consume more than the maximum consumption of a single movement to reach, the calculation process described in (3) is no longer performed. When there are no traversed intersection points to perform (3), stop the calculation.
  • the sports environment may also be a non-road network environment, such as a plaza or open water.
  • the calculation of the exercise consumption in the non-road network environment can be performed by grid processing on the non-road network environment. Meshing can use square meshes with diagonal lines, or more precise mesh construction methods to mesh non-road network environments; mesh density depends on the accuracy requirements of the data; For the road network, the calculation of (1)-(5) exercise consumption is performed.
  • the electronic device determines the basic efficiency of the user's current exercise consumption through the acquired personal information of the user and the user's current exercise setting information, and then combines each path (the starting point to each node) The energy consumption parameter p of the path), determine the exercise consumption from the starting point to each node, fully considering various factors that affect the consumption of this exercise, for example, the user's personal conditions such as gender, age, height, Weight, exercise record, exercise ability, exercise skill level, historical exercise consumption evaluation value, recent fatigue level, recent sleep quality, etc., and environmental information of the user's exercise area (around the starting point), such as distance, slope, slope distribution, road surface quality and Traffic conditions, etc., in this way, the exercise consumption that is closer to the actual exercise consumption can be determined, so that the calculation result is more accurate, so that the exercise route planning is more in line with the current situation of the user, and the user experience is improved.
  • the user's personal conditions such as gender, age, height, Weight, exercise record, exercise ability, exercise skill level, historical exercise consumption evaluation value, recent fatigue
  • the process of calculating the motion consumption from the starting point to each node by the electronic device described in the above S905 can also be implemented in other ways, for example, only the length of the path is used to calculate the motion consumption on the path.
  • the calculation method of the exercise consumption is not limited in this embodiment of the present application.
  • S906 the electronic device generates an exercise route from the starting point to the target location based on the exercise consumption from the starting point to each node, and obtains a map interface.
  • S906 may include but is not limited to steps S9061-S9063:
  • the electronic device determines at least one target location to start exercising from the starting point and consume the maximum consumption of a single exercise according to the exercise consumption from the starting point to each node and the user's maximum consumption for a single exercise.
  • the electronic device determines one or more movement routes from the starting point to at least one target location.
  • the electronic device displays one or more exercise routes through an electronic map.
  • the electronic device may add a display layer (ie, a map interface) to the obtained third-party electronic map, and display the above-mentioned map for planning the exercise route based on the exercise consumption from the starting point to multiple nodes
  • a display layer ie, a map interface
  • the user selects a route node on the map interface, and the electronic device executes S907 and S908.
  • the electronic device determines the amount of exercise consumption that needs to be consumed from the passing node to each node around the passing node.
  • the electronic device calculates the exercise consumption that needs to be consumed by each node around it.
  • the electronic device generates a movement route from the starting point through the passing node to the target location based on the movement consumption from the passing node to each node, and obtains an updated map interface.
  • a movement route from the starting point through the passing node to the target location based on the movement consumption from the passing node to each node, and obtains an updated map interface.
  • the maximum consumption of a single exercise of the user may also be obtained by the electronic device through the personal information of the user (for example, the information listed in the personal information shown in FIG.
  • the setting information of this exercise determines the maximum consumption of the user for a single exercise.
  • the electronic device may execute the process of determining the maximum consumption of a single exercise in response to the input of the first operation for the first control.
  • Example 1 The user wishes to use an electronic device (such as a smartphone) for navigation to complete today's target consumption (1200 kcal); at the same time, the user wishes to go to a farther area as much as possible, and there are scenery worth watching on the route. Users believe that if the exercise consumes more than 1500 calories, it will cause excessive fatigue and increase the risk of injury, so the maximum consumption of a single exercise is set at 1500 calories.
  • the user sets the exercise type as running on the current exercise setting interface of the electronic device (the interface shown in FIG. 3 ), and further inputs an operation for the first control (the route planning control in FIG. 3 ).
  • the electronic device receives the user's operation on the first control. In response to this operation, the electronic device displays a map interface.
  • the map interface displays a number of areas with good views, including shopping mall A, hill B, and pond C. Running to arrive consumes 300, 400, and 500 kcal respectively.
  • the user chooses to go to Hill B first, that is, select B as a passing node.
  • the electronic device uses B as the starting point to display the map interface.
  • the user thinks that the experience of running around the hill is better, so click the intersection points around the hill in turn (that is, multiple passing nodes), which forms a movement route around the hill, and finally returns to point B.
  • the cumulative number of reaching B is Burn 1000 calories.
  • the electronic device displays the updated map interface with B as the new starting point again.
  • due to terrain reasons only 250 kcal increments are required to return to the starting point, while 750 kcal increments are required to go to Pond C. If you go to C and consume 1750 calories, it will exceed the maximum consumption of a single exercise (1500 calories). Therefore, on the map interface, a warning icon will be displayed at the position of C to warn you. The end user chooses to return to the starting point.
  • a user When a user designs a running route by using a map display method provided by an embodiment of the present application, he or she can select a place of interest as a passing node while acquiring a large amount of calorie consumption data.
  • Using the different distinctions of display forms and the representation of the line of equal exercise consumption allows users to plan an exercise route that is both scientific and interesting based only on intuitive preferences. Users can design a route by simply selecting the place they want to go; and by checking the exercise consumption from the starting point to the current location, they can decide whether they should start the return trip at any time.
  • Example 2 A user likes mountain climbing, but due to muscle problems caused by long-term improper exercise, he cannot complete a large amount of exercise at one time. The doctor believes that it is safe for him to consume less than 1,100 calories in a single exercise, that is, the maximum consumption of a single exercise is 1,100 calories.
  • the user plans to drive to the foot of a certain mountain and then hike.
  • the user first sets 1100 kcal as the maximum calorie consumption for a single exercise, and selects the round-trip mode.
  • the round-trip mode is used to indicate that the default is to return to the original path, and the exercise method is consistent back and forth.
  • the electronic device displays a map interface in response to the user's first operation on the first control, and the information that can be obtained from the map interface includes: there are three candidate mountain peaks at the location. Among them, Peak A has the best scenery, but it takes 1600 calories to reach the summit; Peak B is relatively short, and only 700 calories are needed to reach the summit; Peak C is higher, but some sections can be ridden, and it takes a total of 700 calories to reach the top. Cycling consumes 600 calories, and climbing consumes 400 calories.
  • the user selects the foot of Mount A as the starting point through a touch operation. Because the consumption of climbing to the top is too high, the calorie map warns that reaching the top of the mountain may exceed the body's tolerance.
  • the user selects the foot of Mount B as the starting point through touch operation, and it is directly displayed that the top of the mountain can be reached.
  • the user selects the foot of Mount C as the starting point through touch operation, first selects the riding mode to exercise, and clicks the end of the riding ramp on Mount C as a passing node; then switches the exercise type to walking at the end of the riding ramp on Mount C.
  • the map interface displays the exercise route based on exercise consumption from the foot of Mount C to the top of the mountain, which can be obtained from the information in the interface.
  • the exercise route can be from the foot of Mount C to the top of the mountain, and the exercise consumption is within a safe range.
  • the user can choose between B and C according to their own exercise needs, and determine to drive to the travel location.
  • a map display method provided by the embodiment of the present application can also enable the user to freely select the starting point and type of exercise, and help the user to map different sports or even driving routes. Combined, the route planning of comprehensive travel and sports improves the user experience.
  • FIG. 14 shows a schematic structural diagram of the electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the electronic device 100 may process the graphics to be displayed on the map interface through the GPU, for example, by displaying the exercise consumption on the exercise route as described in the first implementation and the second implementation in S104 above.
  • the process of marking the motion route can be performed by the GPU, and the display form of the motion route can refer to the relevant descriptions in the first implementation and the second implementation in S104 above, which will not be repeated here.
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the display screen displays a map interface generated based on the exercise consumption.
  • the map interface For the description of the map interface, please refer to the relevant description in S104 in FIG. 2A.
  • the map interface can provide users with a more intuitive exercise consumption. , to help users plan exercise routes that are more in line with their needs.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • the camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the electronic device 100 may perform a related process according to the received touch operation of the user. For example, the user can select a passing node on the map interface, and the specific operation may be to sequentially touch the nodes displayed on the map interface as the selected passing node, and the electronic device 100 receives the above touch operations in sequence, and determines the corresponding position of the passing node on the electronic map. , and then update the map.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • FIG. 15 is a software architecture of an electronic device provided by an embodiment of the present application, and the electronic device can execute the map display method described in FIG. 2A or FIG. 2B. As shown in Figure 15:
  • Creating a user interface may include creating interface elements, such as controls such as icons and button lists, and setting page layouts, pictures, texts, and other resources referenced by interface elements through XML resource files.
  • the application framework layer can be divided into control layer and operation layer.
  • the framework layer can provide rich and extensible views (views), and views can be used to construct interface elements such as text boxes and grids in the user interface.
  • views can be used to construct interface elements such as text boxes and grids in the user interface.
  • the interface elements to be drawn by the upper-layer application can be decomposed into the following or multiple drawing elements: geometric figures, text, pictures, etc., determine the size, style, color and other attributes of the drawing elements, and call the system library for A local service that draws these drawing elements.
  • the system library can provide local services for drawing drawing elements, including local services for drawing graphics, local services for drawing text, and local services for drawing pictures. And, this local service can also be used to generate draw commands and send draw commands to the rendering thread in the kernel layer. All drawing commands involved in the user interface to be created by the application can be cached in the drawing command list, and the drawing commands can only be what the object to be drawn is (such as graphics, text, pictures, etc.), as well as colors, styles, and the like.
  • the local service for drawing drawing elements in the system library can be specifically used to: after receiving the operation inputted by the control for "planning route", generate a drawing command sent to the rendering thread in the kernel layer,
  • the drawing command is used to instruct the rendering thread to draw elements on the map interface (exercise routes, equal exercise consumption lines, warning icons, etc.) to generate a map interface based on exercise consumption.
  • elements on the map interface exercise routes, equal exercise consumption lines, warning icons, etc.
  • the term “when” can be interpreted to mean “if” or “after” or “in response to determining" or “in response to a determination of" depending on the context detected".
  • the phrases “on determining" or “if detecting (the stated condition or event)” can be interpreted to mean “if determining" or “in response to determining... “ or “on detection of (recited condition or event)” or “in response to detection of (recited condition or event)”.
  • Computer-readable media may include computer-readable storage media, which corresponds to tangible media, such as data storage media, or communication media including any medium that facilitates transfer of a computer program from one place to another (eg, according to a communication protocol) .
  • a computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier wave.
  • Data storage media can be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementing the techniques described in this application.
  • the computer program product may comprise a computer-readable medium.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Databases & Information Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Automation & Control Theory (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Social Psychology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Navigation (AREA)
  • Instructional Devices (AREA)

Abstract

一种地图显示的方法及相关设备,本方法包括:S101、显示第一控件;S102、针对第一控件输入第一操作;S103、接收针对第一控件输入第一操作;S104、响应于第一操作,显示地图界面;S105、根据接收到的针对地图显示界面上选择的目标路线的进行导航。本方法为用户提供了一种灵活规划运动路线的方式。还公开通过运动路线显示从出发点到目标地点运动的运动消耗量的变化,为用户提供了更加直观的运动路线,可以协助用户进行运动路线的规划和选择。还公开用户可以根据自己需求通过触摸或输入途经节点的方式在地图界面上添加途经节点,电子设备基于接收到的途经节点更新地图界面,地图界面包括调整后的运动路线。

Description

地图显示的方法及相关设备
本申请要求于2021年04月19日提交中国专利局、申请号为202110419782.2、申请名称为“地图显示的方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种地图显示的方法及相关设备。
背景技术
随着人们对健康的日益重视,越来越多的用户将运动作为日常生活中的一部分。用户常常使用在终端设备上安装的运动应用程序来定制运动计划或记录运动情况。例如,用户可以通过运动应用程序获取运动中或者运动后体能的运动消耗信息,进行运动路线的规划。
现有的一些规划运动路线的方法,例如,在用户规划户外运动(如跑步)的运动路线时,用户如果想要获取体能的运动消耗信息,可以在电子地图上输入起止点,终端设备可以通过连接起止点的运动路线计算出用户在该段运动路线上运动预计消耗的卡路里。
然而,上述获取体能的运动消耗信息的方法较为繁琐,不利于用户规划运动路线,用户体验较差。
发明内容
本申请实施例公开了一种地图显示的方法及相关设备,解决了现有技术中获取体能的运动消耗信息的方法较为繁琐,不利于用户规划运动路线的技术问题,该方法显示的运动消耗量较为直观,用户可以直接根据显示的运动消耗量选择或规划路线,操作简便,减少了电子设备在运行应用程序的资源消耗。
第一方面,本申请实施例提供一种地图显示的方法,该方法包括:
电子设备显示第一应用程序的第一控件,所述第一控件用于触发基于运动消耗量进行地图规划;电子设备接收针对所述第一控件输入的第一操作;电子设备响应于所述第一操作,显示地图界面;其中,所述地图界面包括规划的至少一个目标地点以及从出发点到每个所述目标地点的一条或多条运动路线;所述目标地点为基于第一对象(也称为用户)的本次运动基础消耗效率、单次运动最大消耗量以及所述出发点周边的地图信息,确定出的地点;所述运动路线显示有从所述出发点到所述目标地点的运动消耗量的变化。
实施第一方面提供的方法,电子设备接收到针对用于触发基于运动消耗量进行地图规划的第一控件的第一操作,显示地图界面,该地图界面中的所包括的运动路线显示有从出发点到目标地点的运动消耗量的变化,为用户提供了每条运动路线的直观的运动消耗信息,这样,解决了现有技术中获取体能的运动消耗信息的方法较为繁琐,不利于用户规划运动路线的技术问题,用户可以根据自己对运动消耗量的需求直接在地图界面上选择或规划运动路线,操作简便,减少了电子设备在运行应用程序的资源消耗。
结合第一方面,在一些实施例中,每条所述运动路线划分有多条线段;同一条运动路线中的不同线段对应显示不同的运动消耗量。
本申请实施例中,电子设备显示的地图界面中的每条运动路线都被划分为多条线段,不 同线段表示不同的运动消耗量,即一条线段表示一个运动消耗量的范围,可以为用户提供清晰的运动消耗的信息,用户可以根据自己的目标运动消耗量和每条线段表示运动消耗量的范围更好地进行运动路线的规划。
结合第一方面,在一些实施例中,每条所述运动路线划分有多条线段,所述同一条运动路线中的不同线段,通过以下任意一种显示形式进行区分:颜色、线型、花纹、粗细度、边界特征、端点形状、模糊度、透明度。
本申请实施例中,同一条运动路线中的不同线段通过上述的任意一种显示形式进行区分,可以给用户更加明显的运动消耗量的提示信息。
结合第一方面,在一些实施例中,同一条所述运动路线以渐变的形式进行显示,所述渐变的形式为以下任意一种显示形式:颜色渐变、透明度渐变,所述渐变的形式用于显示运动消耗量的变化。
本申请实施例中,以上述颜色渐变或透明度渐变的显示形式来标记同一条运动路线,利用渐变程度(用于指示颜色变化或透明度变化的程度)与运动消耗量的变化程度之间的关系,来对地图界面上的运动路线进行处理并显示。渐变的形式给用户提供了更加具象的运动消耗的信息,方便用户根据该信息对运动路线进行规划。
结合第一方面,在一些实施例中,所述地图界面还显示有等运动消耗量线;所述等运动消耗量线为从所述出发点起消耗相同的运动消耗量到达的地点所连成的闭合曲线。
本申请实施例中,在地图界面上,可以显示每条(或每两条)等运动消耗量线组成的区域内(或环形区域内)的地点和消耗的运动消耗量的范围,展现了运动消耗量与地理范围的关系,用户可以根据上述关系和自己想经过的地点,直接选择运动路线,操作简便,更加能够节省电子设备运行应用程序的资源消耗。在一些具体的实施方式中,当电子设备检测到用户在运动过程中的运动方向改变大于第一阈值时,可以基于用户的实时位置更新等运动消耗量线,这样,更加能提高等运动消耗量线的准确性。
结合第一方面,在一些实施例中,在响应于所述第一操作,所述显示地图界面之后,所述方法还包括:
电子设备接收所述第一对象输入的途经节点的操作;电子设备响应所述输入的途经节点的操作,显示更新的地图界面;其中,所述更新的地图界面包括规划的至少一个目标地点以及从出发点到经过所述途经节点到所述目标地点的一条或多条运动路线;所述目标地点为基于第一对象的本次运动基础消耗效率、单次运动最大消耗量、出发点周边以及途经节点周边的地图信息,确定出的从出发点经过途经节点到达的地点;所述运动路线显示有从所述出发点经过所述途经节点到所述目标地点的运动消耗量的变化。
本申请实施例中,用户可以在地图界面上选择自己想要途经的地点,可以通过触摸地图界面上的相应位置,当电子设备接收到用户选择途经节点的操作后,就会更新地图界面,该更新的地图界面包括从出发点经过途经节点到目标地点的一条或多条运动路线。而且,途经节点可以是多个,在不超过单次最大运动消耗量的运动路线上,不限制途经节点的位置和数量,这样,当电子设备接收到用户输入的多个途经节点时,就可以规划设计环形、往复的运动路线。其中,在电子每次接收到一个选择途经节点的操作后,就会更新一次地图界面,到达更新后的地图界面上任意一点的运动消耗量会叠加上从原始的出发点到该途经节点的运动消耗量,保证了运动消耗量的累计计算,这样,电子设备计算从原始的出发点经过该途经节点到达的地点时也无需重复计算从原始的出发点到该途经节点的运动消耗量,节省了资源消耗。
结合第一方面,在一些实施例中,所述更新的地图界面还显示有第二等运动消耗量线;所述第二等运动消耗量线为从所述途经节点起消耗相同的运动消耗量到达的地点所连成的闭合曲线。
本申请实施例中,在电子设备接收到选择途经节点的操作后,显示的更新的地图界面包括的等运动消耗量线可以提供从途经节点出发到其周边的地点消耗的运动消耗量的信息,即从途经节点继续运动,增加的运动消耗量与途经节点周边的地理范围的关系,为用户提供了更直观的信息。在一些实施例中,等运动消耗量线上显示其相对应的运动消耗量的值。
结合第一方面,在一些实施例中,所述方法还包括:所述地图界面上所述目标地点显示有警示图标;所述警示图标用于警示所述第一对象在所述运动路线上运动超过所述目标地点将造成运动过量。
本申请实施例中,通过用户设置的单次运动最大消耗量,电子设备可以显示用户消耗单次运动最大消耗量的运动区域,警示图标显示在超过目标地点的位置或区域(即为消耗超过单次运动最大消耗量的运动区域),警示图标的显示可以提醒用户在单次运动的规划或运动过程中注意运动消耗量的消耗,以免造成过度疲劳、运动受伤或影响健康等情况。
结合第一方面,在一些实施例中,所述响应于所述第一操作,显示地图界面的一种可能的实现方式可以是:电子设备根据所述第一对象(也称为用户)的本次运动基础消耗效率和所述出发点周边的地图信息,确定从所述出发点到多个节点的运动消耗量;根据所述从所述出发点到所述多个节点的运动消耗量、所述第一对象的单次运动最大消耗量,确定从所述出发点开始运动,消耗所述单次运动最大消耗量到达的至少一个目标地点;确定所述出发点到所述至少一个目标地点的一条或多条运动路线;将所述一条或多条运动路线通过电子地图显示。
本申请实施例中,用户的本次运动消耗基础效率是电子设备通过获取到的用户的个人信息和用户本次运动的设置信息确定的,充分考虑了用户的身体状况、运动能力等个人因素,这样,电子设备可以规划出符合该用户个人情况和需求的基于运动消耗量的运动路线。例如,电子设备通过获取到的用户的个人信息预测用户近期运动能力相比于其一般情况较弱,本次运动消耗基础效率较高,在单次运动最大消耗量相同、出发点等因素也相同时,规划出的运动路线不同于其一般情况时的运动路线。因此,应用本申请实施例提供的地图显示的方法在规划运动路线上具有较好的灵活性,可以针对不同用户、相同用户的不同状况进行路线的规划。另外,电子设备通过用户的本次运动基础消耗效率、出发点周边的地图信息和用户的单次运动最大消耗量确定出从出发点到至少一个目标地点的一条或多条运动路线,这些运动路线显示在地图界面上,给用户提供了多种的运动路线的选择。
结合第一方面,在一些实施例中,出发点周边的地图信息包括从所述出发点到所述多个节点的路径的路程、坡度、坡度分布、路面质量及交通状况。
本申请实施例中,电子设备结合本次运动基础消耗效率和上述的出发点周边的地图信息确定从所述出发点到多个节点的运动消耗量,充分考虑了用户从出发点开始的运动区域的各种环境因素,这样,计算的运动消耗量将更加准确,可以为用户规划出符合用户需求的运动路线。
结合第一方面,在一些实施例中,通过以下任意一种计量方式计量所述运动消耗量:卡路里消耗量、热量消耗量、能量物质消耗量、体重下降量、糖消耗量、脂肪消耗量、运动量积分、运动任务目标百分比。
本申请实施例中,上述任意一种计量方式都可以计量运动消耗量,不同的计量方式可以 表示不同的运动消耗的指标,为用户提供多样的选择。在一些实施例中,用户可以根据需求选择计量方式,例如,用户设置卡路里消耗量为运动消耗量的计量方式。
结合第一方面,在一些实施例中,所述响应于所述第一操作,显示地图界面之后,所述方法还包括:
电子设备接收针对所述地图界面上的路线的选择控件输入的第二操作,所述选择控件用于选择目标路线;响应于所述第二操作,显示选择的目标路线;根据所述目标路线进行导航。
本申请实施例中,电子设备可以响应接收到的用户针对路线的选择控件输入的操作,对选择的目标路线进行导航,可以实现指导用户按照目标路线运动,完成用户的消耗目标运动消耗量且不超过单次运动最大消耗量的运动目标。
结合第一方面,在一些实施例中,该方法还包括:
当电子设备检测到所述第一对象的所在的当前位置偏离所述目标路线,以所述当前位置为途经节点更新所述地图界面。
本申请实施例中,当电子设备检测到用户偏离目标路线时,可以更新地图界面,这样,更新后地图界面可以给用户提供从当前位置继续运动的运动消耗量的信息和可行的运动路线,保证按照可行的运动路线运动不会超过单次运动最大消耗量。在偏离路线的情况下依然能够临时调整地图界面的运动路线,确保用户不会在偏离目标路线后继续运动,超过单次运动最大消耗量而造成过度疲劳或增加受伤风险等情况。
结合第一方面,在一些实施例中,所述显示地图界面之前,该方法还包括:
电子设备接收用户输入的单次运动最大消耗量。
本申请实施例中,单次运动最大消耗量可以是用户根据自己的身体、运动能力等情况设置的,这样电子设备可以充分结合用户对本次运动的运动消耗量的要求,提升用户体验的同时,还可以提高电子设备对运动路线规划的准确性与针对性。
第二方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器、一个或多个存储器,所述一个或多个存储器分别与所述一个或多个处理器耦合;所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;
所述处理器用于调用所述计算机指令执行:如第一方面以及第一方面中任一可能的实现方式描述的地图显示的方法。
第三方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的地图显示的方法。
可以理解地,上述第二方面提供的电子设备和第三方面提供的计算机可读存储介质均用于执行上述第一方面以及第一方面中任一可能的实现方式描述的地图显示的方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。
附图说明
图1是本申请实施例提供的一种地图显示的方法的应用场景的示意图;
图2A是本申请实施例提供的一种地图显示的方法的流程示意图;
图2B是本申请实施例提供的一种地图显示的方法的流程示意图;
图3是本申请实施例提供的一种设置本次运动的指标界面示意图;
图4是本申请实施例提供的几种运动路线的显示形式的示意图;
图5是本申请实施例提供的一种地图显示界面的示意图;
图6是本申请实施例提供的另几种运动路线的显示形式的示意图;
图7是本申请实施例提供的一种等运动消耗量线的显示形式的示意图;
图8是本申请实施例提供的一种警示图标的显示形式的示意图;
图9是本申请实施例提供的一种电子设备显示地图界面的流程示意图;
图10是本申请实施例提供的一种显示界面的示意图;
图11-图13是本申请实施例提供的几种从出发点到节点的运动消耗量的计算方法示意图;
图14是本申请实施例提供的一种电子设备100的结构示意图;
图15是本申请实施例提供的一种电子设备的软件架构示意图。
具体实施方式
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。
本申请实施例中,电子设备可以是具备显示功能的终端,其中,该终端可以包括但不限于智能手机、笔记本电脑、个人计算机、个人数字助理、移动互联网设备、智能穿戴设备(如智能手表、智能手环)等各类用户终端。或者,该电子设备还可以是具备生成本申请实施例提供的显示运动消耗量的地图的服务器。
在本申请实施例中,运动消耗量可以是卡路里消耗量、热量消耗量、能量物质消耗量、体重下降量、糖消耗量、脂肪消耗量、运动量积分、运动任务目标百分比等可以指示运动消耗的其他计量单位中的任意一种,本申请实施例不作限定。
下面首先介绍本申请实施例涉及的应用场景。图1是本申请实施例提供的一种地图显示的方法的应用场景的示意图。如图1所示,用户(本申请实施例中也称为第一对象)10计划户外运动,可以通过安装在终端设备20上的应用程序(也称为第一应用程序)根据自己的身体状况、运动类型、体能策略等规划本次运动路线。其中,安装在终端设备20上的应用程序可以是具有地图显示及导航功能的运动应用程序,也可以是电子地图应用程序。终端设备20可以用于显示界面30,界面30中可以包括用户10的个人信息,例如性别、年龄、身高、体重、运动记录、运动能力、运动技巧水平、历史运动消耗评估值、近期疲劳程度、近期睡眠质量等。用户10的个人信息可以是终端设备20通过互联网或本地数据获取到的,也可以是用户10自己输入的,用户10的个人信息可以用于评估用户10的个人消耗基础效率。终端设备20还可以用于显示界面40,界面40可以是本次运动的设置界面,可以包括本次运动的目标运动消耗量、运动类型、体能策略、配速策略等,界面40可以包括本次运动的各项指标的参数选择控件或如图1中所示的各项指标的参数的输入框。其中,目标运动消耗量可以是本次运动或当日运动的目标消耗量;运动类型可以选择设置为跑步、步行、骑行、爬山等中的一种;体能策略可以是单位时间消耗的消耗量等;配速策略可以是用户选择的或输入的运动配速。
用户10完成本次运动的设置后,可以针对触发基于运动消耗量进行地图规划的第一控件输入的第一操作,当终端设备20接收该第一操作后,响应于该第一操作,显示地图界面,示 例性的,如图1中的界面50。其中,该地图界面包括规划的至少一个目标地点以及从出发点到每个目标地点的一条或多条运动路线;目标地点为基于用户10的本次运动基础消耗效率、单次运动最大消耗量以及出发点周边的地图信息,确定出的地点;运动路线显示有从出发点到目标地点的运动消耗量的变化。应理解,用户10的本次运动基础消耗效率可以是终端设备20通过用户10的个人消耗基础效率和用户10的本次运动的运动类型、配速策略等信息确定的;单次运动最大消耗量可以是用户10在终端设备20上输入的,或者是终端设备通过用户10的个人信息和运动记录等信息计算得到的。在一些实施例中,运动路线显示的从出发点到目标地点的运动消耗量的变化可以通过不同的颜色、透明度、模糊度、花纹、边界特征、线条的粗细度、线条的端点形状、线型等中的一种来表示。
在一些实施例中,地图界面还可以显示有等运动消耗量线;该等运动消耗量线为从出发点起消耗相同的运动消耗量到达的地点所连成的闭合曲线。
在一些实施例中,用户10还可以通过触摸点击、或输入等方式在地图界面上选择途经节点,每选择一个途经节点,更新一次地图界面,最终可以得到从出发点经过途经节点的一条或多条运动路线。
此时,用户10可以选择地图界面上的一条或多条运动路线中的一条运动路线作为目标路线,进而终端设备20显示目标路线,根据该目标路线进行导航。
应理解,在一些实施例中,用户10的出发点或运动区域为非路网环境下,例如广场或者公开水域,可以将非路网环境进行网格化处理,进而进行运动路线规划和地图的显示。
下面结合附图详细描述本申请实施例提供的地图显示的方法。
如图2A所示,图2A为本申请实施例提供的一种地图显示的方法的流程示意图。该方法可以由上述图1中所示的终端设备20执行,该方法可以包括但不限于以下步骤:
S101、电子设备通过显示设备显示第一控件。
其中,第一控件用于触发基于运动消耗量进行地图规划。显示装置可以是显示屏、投影设备等设备中的一种,本申请实施例以显示设备是电子设备的显示屏为例进行说明。
在一些实施例中,如图3所示,图3为一种设置本次运动的指标界面示意图,该界面用于显示获取用户的本次运动的设置入口和显示触发基于消耗量进行地图规划的第一控件,该界面也可以是如上述图1中的界面40。该界面可以包括本次运动中各项指标的输入或设置入口,如目标运动消耗量301、运动类型302、体能策略303、配速策略304,输入或设置入口可以通过键盘输入或者触摸选择的方式实现。针对本次运动中各项指标输入的设置信息可以用于确定用户的运动基础消耗效率。该界面还包括规划路线控件305,该规划路线控件305可以为第一控件。当电子设备接收到用户输入的本次运动的各项指标的设置信息之后,还可以发出提示信息,该提示信息用于提示用户点击规划路线控件305。
S102、用户针对第一控件输入第一操作。
其中,用户针对第一控件输入的第一操作可以是通过输入装置(如触敏面板)的触摸操作,也可以是通过其他输入装置,如麦克风,采集到的音频输入,如语音指令“规划路线”。本申请实施例中,以用户操作是触摸操作为例进行说明本申请实施例提供的一种地图显示的方法。
S103、电子设备接收到该针对第一控件输入的第一操作。
S104、电子设备响应于第一操作,显示地图界面。
其中,地图界面包括规划的至少一个目标地点以及从出发点到每个目标地点的一条或多 条运动路线,“多条”指两条或两条以上;目标地点为基于第一对象(用户)的本次运动基础消耗效率、单次运动最大消耗量以及出发点周边的地图信息,确定出的地点;运动路线显示有从出发点到目标地点的运动消耗量的变化。应理解,从出发点到目标地点需要消耗单次运动最大消耗量。出发点是用户开始本次运动的地点,该地点可以是电子设备通过定位系统获取到的用户当前所在的位置,也可以是用户在地图界面中选择的地点。在一些实施例中,地图界面还可以显示等运动消耗量线、警示图标。
在具体的实施方式中,地图界面上的运动路线显示有从出发点到目标地点的运动消耗量的变化可以通过以下两种实现方式实现。
在第一种实现中,每条运动路线划分有多条线段。其中,同一条运动路线中的不同线段对应显示不同的运动消耗量。同一条运动路线中的不同线段,通过以下任意一种显示形式进行区分:透明度、颜色、线型、花纹、粗细度、边界特征、端点形状、模糊度等。示例性的,以图4中所示的几种标记方法对同一条运动路线中的不同线段对应显示不同的运动消耗量的显示形式进行说明。如图4所示,每种标记方法中不同的线段(由相同显示形式的不同)分别对应不同的运动消耗量。如图4中的a为使用透明度标记法标记的运动路线,其中,不同线段的透明度可以用线段的透明程度0%-100%来区别,运动路线a中的线段1为以透明度1标记的线段,线段2为以透明度2标记的线段,线段3为以透明度3标记的线段,透明度1对应于运动消耗量的范围[x1,x2],透明度2对应于运动消耗量的范围[x2,x3],透明度3对应于运动消耗量的范围[x3,x4],以此方式对每条线段进行绘制,x1,x2,x3,x4为正数。如图4中的b为使用颜色标记法标记的运动路线,其中,线段4为以颜色1标记的线段,线段5为以颜色2标记的线段,线段6为以颜色3标记的线段,颜色1对应于运动消耗量的范围[x1,x2],颜色2对应于运动消耗量的范围[x2,x3],颜色3对应于运动消耗量的范围[x3,x4]。同样的,如图4中的c、d所示,运动路线的标记还可以是线型标记法、粗细度标记法,运动路线c为用不同的线型(如实线、虚线的类型)表示不同的运动消耗量的范围,运动路线d为用不同的线条的粗细度表示不同的运动消耗量的范围。同一条运动路线的不同线段的标记方法还可以是边界特征标记法,边界特征可以是线段边界的颜色,如图4中的e所示,每条线段用不同的边界颜色勾勒,线段7为以边界颜色1勾勒的线段,线段8为以边界颜色2勾勒的线段,线段9为以边界颜色3勾勒的线段,如线段7对应于运动消耗量的范围[x1,x2],线段8对应于运动消耗量的范围[x2,x3],线段9对应于运动消耗量的范围[x3,x4],以此方式对每条线段进行绘制。如图4中的f所示,还可以使用不同的端点标记同一条运动路线中的不同线段,使得每个线段对应一个运动消耗量的范围,又如图4中的g,使用相同颜色的不同花纹标记同一条运动路线中的不同线段,使得每个线段对应一个运动消耗量的范围。在一些实施例中,对于同一条运动路线,每条线段对应的运动消耗量的范围(数值范围)可以显示在每条线段的上层,用于提示用户在该条运动路线上运动到不同线段上需要消耗的运动消耗量。在另一些实施例中,对于同一条运动路线,每条线段和其对应的运动消耗量可以通过图例的方式显示在地图界面上,用于协助用户获取运动到在该条运动路线上运动到不同线段上需要消耗的运动消耗量,其中,图例可以为地图界面上各种符号和颜色所代表内容与指标的说明,可以指示线段的标记方式对应的运动消耗量的范围。
示例性的,以同一条运动路线的不同线段通过颜色进行区分为例来说明不同线段显示不同的运动消耗量的情况。如图5所示,图5为电子设备基于用户的单次运动最大消耗量、用户的本次运动基础消耗效率和出发点周边的地图信息确定到的从出发点起到多个目标地点(T1、T2、T3、T4、T5、T6、T7、T8)的多条运动路线。其中,从出发点开始,在同一条 运动路线中,颜色1对应一个运动消耗量的范围,例如0-100大卡;颜色2对应另一个运动消耗量的范围,例如100-200大卡;颜色3对应另一个运动消耗量的范围,例如200-300大卡;以此方式,直至目标地点。
在第二种实现中,每条运动路线以渐变的形式进行显示。渐变的形式可以为以下任意一种显示形式:颜色渐变、透明度渐变,运动路线的渐变的形式对应显示不同的运动消耗量,以实现显示从出发点到目标地点的运动消耗量的变化。如图6所示,对运动路线的显示可以通过图6中的a以透明度渐变标记法来实现,运动路线的不同透明度可以表示从出发点开始的运动消耗量,透明度的渐变可以表示在该运动路线上的运动消耗量的变化;如图6中的运动路线b所示,对运动路线的显示还可以以颜色渐变标记法来实现,运动路线的不同颜色可以表示从出发点开始的不同的运动消耗量,颜色的渐变(如从颜色1渐变至颜色2)可以表示在该运动路线上的运动消耗量的变化,颜色1表示运动消耗量为0,颜色2表示运动消耗量为单次运动最大消耗量。其中,在一些实施例中,可以建立渐变程度(用于指示颜色变化或透明度变化的程度)与运动消耗量的变化程度之间的关系,电子设备根据该关系对地图界面上的运动路线进行处理并显示。渐变的形式给用户提供了更加具象的运动消耗的信息,协助用户根据该信息对运动路线进行设计和选择。
在一些实施例中,地图界面还可以显示等运动消耗量线;其中,等运动消耗量线为从出发点起消耗相同的运动消耗量到达的地点所连成的闭合曲线。示例性的,如图7所示,图7为一种等运动消耗量线的显示形式的示意图,包括等运动消耗量线1、2、3、4、5。其中,等运动消耗量线的确定过程可以是根据用户的本次运动基础消耗效率和出发点周边的地图信息,确定从出发点开始运动预计消耗的运动消耗第一运动消耗量(如100大卡)到达的地点,将确定到的地点连接成闭合曲线(如图7中的1为100大卡等消耗量线)在地图界面上显示。如图7中所示的2、3、4、5分别为200大卡、300大卡、400大卡、600大卡等运动消耗量线。沿着从出发点开始的多条运动路线运动(运动方向不改变)到一条等运动消耗量线上,所运动消耗量是相同的。在地图界面上,可以显示每条(或每两条)等运动消耗量线组成的区域内(或环形区域内)的地点和消耗的运动消耗量的范围,展现了运动消耗量与地理范围的关系。在一些具体的实施方式中,当电子设备检测到用户在运动过程中的运动方向改变大于第一阈值时,可以以用户的实时位置更新等运动消耗量线。在一些实施例中,如图7所示,等运动消耗量线上还可以显示其相对应的运动消耗量的值。
在一些实施例中,地图界面还可以显示警示图标、标记点。其中,警示图标、标记点可以显示在每条运动路线的目标地点的位置或显示超过目标地点的区域,可以用于警示用户在运动路线上运动超过目标地点将会造成运动过量,警示图标的显示可以提醒用户在单次运动的规划或运动过程中注意运动消耗量的消耗,以免造成运动受伤或影响健康等情况。警示图标、标记点可以是通过颜色、符号等元素来显示的,示例性的,如图8所示的警示图标801、802、803、804,警示图标所在的位置为消耗超过单次运动最大消耗量才能到达的位置,本申请实施例对警示图标、标记点具体的显示方式不作限定。
应理解,上述单次运动最大消耗量一般是用户单次运动不会达到的消耗量,对于需要消耗超过最大消耗量才能到达的地点,不进行计算和显示。
在一些实施例中,用户在规划运动路线时或在运动过程中,可以根据自己需求选择途经节点。如图2B所示,图2B为本申请实施例提供的另一种地图显示的方法的流程示意图。在电子设备显示包括从出发点开始到至少一个地点的运动路线的地图界面(S101-S104)之后,用户可以通过输入或在地图界面上选择途经节点,示例性的,选择途经节点的操作可以是触 摸地图界面上的相应位置,其中,S101-S104可以参考上述图2A的步骤S101-S104的相关描述,此处不再赘述。S1041、用户针对地图界面上的途经节点输入操作,当电子设备接收到选择途经节点的操作后,电子设备执行S1042、响应于针对地图界面上的途经节点输入操作,显示更新的地图界面。其中,更新的地图界面包括规划的至少一个目标地点以及从出发点到经过途经节点到目标地点的一条或多条运动路线;目标地点为基于用户的本次运动基础消耗效率、单次运动最大消耗量、出发点周边以及途经节点周边的地图信息,确定出的从出发点经过途经节点到达的地点;运动路线显示有从出发点经过途经节点到目标地点的运动消耗量的变化。应理解,在更新的地图界面的目标地点为更新后的地点,从出发点经过途经节点到达该地点需要消耗单次运动最大消耗量。
在一些具体的实施方式中,更新的地图界面上显示的运动路线可以显示有从出发点经过途经节点到目标地点的运动消耗量的变化,运动路线的显示方式可以参见上述图4和图6的相关描述,此处不再赘述。
在另一些具体的实施方式中,更新的地图界面上还可以显示以途经节点为出发点的等运动消耗量线(也称为第二等运动消耗量线),该运动消耗量线为从途经节点起消耗相同的运动消耗量到达的地点所连成的闭合曲线。在一些实施例中,等运动消耗量线上可以显示其相对应的运动消耗量的值。
应理解,在每次接收到用户输入的选择途经节点的操作后,电子设备以输入的途经节点为新的出发点更新一次地图界面,到达更新后的地图界面上任意一点的运动消耗量会叠加上从原始的出发点到该途经节点的运动消耗量,这样就保证了运动消耗量的累计计算。当电子设备响应多次输入的选择途经节点的操作,显示多次更新后的地图界面,该多次更新后的地图界面上显示从原始的出发点开始经过所有输入的途经节点的到达目标地点的至少一条运动路线,即完成了经过途经节点的路线规划,可以显示选择目标路线的控件,用于提示用户选择运动路线。
S105、电子设备根据接收到的针对地图显示界面上选择的目标路线的进行导航,该过程可以是:电子设备接收针对地图界面上的路线的选择控件输入的操作,该选择控件用于选择目标路线;电子设备响应于上述针对路线的选择控件输入的操作,显示选择的目标路线;进一步地,电子设备根据目标路线进行导航。
应理解,在一些实施例中,用户的出发点或运动区域为非路网环境或开放运动环境,例如广场或者公开水域,可以将非路网环境进行网格化处理,进而通过上述地图显示的方法显示地图界面。
在一些实施例中,当电子设备检测到用户在运动过程中偏离了选择的目标路线,可以提示用户,并更新地图界面,即显示从用户的偏离地点重新规划后的地图界面。
在一些实施例中,电子设备接收到针对往返模式控件输入的操作,往返模式用于指示默认按照原路返回,运动方式来回保持一致。电子设备响应于上述操作,可以显示上述地图界面,其中,目标地点也为出发点,该地图界面中显示从出发点到中途点和从中途点返回到出发点的运动路线,往返运动路线可以消耗单次最大运动消耗量。
在一些实施例中,在上述地图界面中,还可以包括驾车等方式的路线,用于旅行路线和运动路线的结合。
在一些实施例中,电子设备检测到用户改变运动类型(如从跑步切换至徒步,该过程可以是通过传感器检测用户的运动步幅、运动速度等),可以更新地图界面,此时,运动消耗量叠加上从原来的出发点到当前位置的运动消耗量。
在一些实施例中,电子设备检测到用户输入改变运动类型的操作和改变运动类型的地点,更新地图界面。
上述地图显示的方法,通过运动路线显示从出发点到目标地点运动的运动消耗量的变化,为用户提供了更加直观的运动路线,可以协助用户进行运动路线的规划和选择。另外,用户可以根据自己需求通过触摸或输入途经节点的方式在地图界面上添加途经节点,可以更新地图界面,显示调整后的运动路线,出发点和途经节点都可以自由选择,该地图显示的方法为用户提供了一种灵活规划运动路线的方式。
下面介绍上述S104中电子设备响应于第一操作,显示地图界面的过程。
在具体的实施方式中,电子设备响应于第一操作,显示地图界面的过程中包括确定从出发点起运动到地图界面上出发点周边的任何一个地点所需要消耗的运动消耗量,从而可以确定消耗单次运动最大运动消耗量到达的目标地点。进一步地,基于从出发点起运动到地图界面上出发点周边的任何一个地点所需要消耗的运动消耗量,应用上述S104中描述的任一种运动路线的显示方式(第一种实现和第二种实现中描述的多种显示方式)、等运动消耗量线和警示图标的显示方式显示地图界面。
在一种实施方式中,如图9所示,图9为一种电子设备响应于第一操作,显示地图界面的流程示意图,该过程可以包括但不限于以下步骤:
S901、电子设备获取用户的单次运动最大消耗量。
在一些实施例中,电子设备可以通过用户的输入获取用户的单次运动最大消耗量。示例性的,电子设备可以显示如图10所示的界面,该界面中可以包括“请输入单次运动最大消耗量”的提示信息1001、单次运动最大消耗量的输入框1002和确认控件1003。用户可以根据提示信息在输入框1002中输入单次运动最大消耗量,进而电子设备可以通过获取到的单次运动最大消耗量继续执行S902。单次运动最大消耗量一般是一个人不会达到的消耗量。其中,图10所示的界面可以是在响应于第一操作之后或之前显示。
在一些实施例中,图10所示的界面可以是在响应于第一操作之后显示,电子设备显示如图3所示的界面,第一控件为“规划路线”控件305,当电子设备接收到用户针对“规划路线”控件305输入操作,响应该操作,显示如图10所示的界面。
在另一些实施例中,图10所示的界面可以是在响应于第一操作之前显示,电子设备可以在显示图3所示的界面之前,显示图10所示的界面。用户可以通过软键盘等方式在单次运动最大消耗量的输入框1002中输入本次运动的最大消耗量,电子设备接收用户的输入操作,当电子设备接收到针对图10所示的确认控件1003输入操作后,显示图3所示的界面。
在电子设备接收到针对第一控件的操作后,执行下述步骤:
S902、电子设备获取用户的个人信息(例如性别、年龄、身高、体重、运动记录、运动能力等)。用户的个人信息可以是电子设备通过互联网或本地数据获取到的。其中,用户的个人信息数据可以是通过获取用户在上述图1中所示的界面30中的输入进行本地存储或上传互联网中的服务器中。其中,用户的个人信息可以用于评估用户的身体概况。
S903、电子设备根据用户的个人信息,确定用户个人运动消耗量的消耗基础效率。
S904、电子设备根据用户输入的本次运动的设置信息(运动类型、配速等),结合个人运动消耗量的消耗基础效率,确定用户本次运动消耗基础效率。
S905、电子设备根据获取到的用户出发点到其周边每个节点的地图信息(从出发点到每个节点的路径的路程、坡度、坡度分布、路口数量、路面质量及当前的交通状况等)、用户 本次运动消耗基础效率和从出发点到每个节点地图信息确定从出发点到每个节点的运动消耗量,直到达到单次运动最大消耗量的节点(目标地点)为止。其中,节点为地图界面上从出发点出发可以到达的任何一个地点,包括路口点或非路口点。
具体地,在S905的一种实现中,电子设备根据用户的本次运动基础消耗效率和出发点周边的地图信息,确定从出发点到多个节点(路口点或非路口点)的运动消耗量,可以包括以下步骤:
(1)通过能耗参数p计算某一路径的运动消耗量。能耗参数p为:
Figure PCTCN2022085582-appb-000001
其中,θ表示坡度角,pdf是坡度密度分布函数,k t(θ)表示不同坡度下的单位距离运动消耗效率,t为运动类型,d为该路径的总路程。可以从电子地图中获取该路径的坡度角θ、pdf、d。k t(θ)是可以通过大数据统计获得的已知数据,表示在坡度角θ下运动类型t的运动消耗率。进一步地,应用上述S02-S04得到的本次运动消耗基础效率,结合能耗参数p,计算得到用户在该路径下以运动类型t运动需要消耗的运动消耗量Q。
(2)利用(1)中提供的运动消耗量Q的计算方法,计算从出发点到达其相邻路口点所需要的运动消耗量。计算过运动消耗量后,出发点的相邻路口点称为已遍历路口点,例如,如图11所示,出发点为S,S的相邻路口点为A和A1,利用(1)分别计算S到A和A1的运动消耗量,则A和A1为已遍历路口点。其中,出发点到达其相邻路口点的地图信息可以从互联网或本地电子地图中获取。
(3)使用广度优先搜索的方法,依次计算每个已遍历路口点A i到达其相邻路口点B i的运动消耗量。若从已遍历路口点A i到该已遍历路口点的相邻路口点B i的路线在之前的计算中已经遍历过,停止计算。如果从已遍历路口点A i到该已遍历路口点的相邻路口点B i的路线从未被计算过,则根据B i是否为已遍历路口点,进行A i到B i的运动消耗量计算。
示例性的,如图11和图12所示,以已遍历路口点A为例说明从已遍历路口点A到其相邻路口点B的运动消耗量的计算。如图11所示,B不是已遍历路口点,出发点S到达A的运动消耗量为a,从A到达B的运动消耗量ab,出发点S到达B的运动消耗量b,则b=a+ab。如图12所示,B是已遍历路口点(图11中A1),S到达B的卡路里消耗为b’,出发点S到达A的运动消耗量为a,从A到达B的运动消耗量ab,出发点S经过A到达B的运动消耗量a+ab,则从出发点S到达B的运动消耗量b取两个路线(S→B和S→A→B)的较小值,即b=min(b’,a+ab)。
(4)对于从出发点到非路口点的运动消耗量的计算,可以通过非路口点到其相邻路口点的运动消耗量和出发点到其相邻路口点的运动消耗量来计算。如果非路口点C的相邻路口点有一个,为路口点A,从出发点S到A的运动消耗量为a,从C到A的运动消耗量为ac,则从出发点S到非路口点C的运动消耗量c可以表示为a+ac。如果非路口点C的相邻路口点有两个,可以计算出两个不同的c,取其中较小值作为到达C的运动消耗量。示例性的,如图13所示,C为非路口点,其相邻路口点为A和A1,从出发点S到A的运动消耗量为a,从出发点S到A1的运动消耗量为a1,从C到A的运动消耗量为ac,从C到A1的运动消耗量为a1c,则从出发点S到非路口点C的运动消耗量c可以表示为a+ac(路线S→A→C)或a 1+a1c(路线S→A1→C),c=min(a+ac,a 1+a1c)。
其中,路口点是电子地图中路口所在位置对应的现实地点,其特征为该点处可以直接往三个或三个以上的不同方向行进;非路口点,是电子地图中除路口点外,其他呈现在电子地 图界面上的点对应的现实地点;某一点的相邻路口点,是一个从该点出发,可以通过指定运动类型抵达,且中途不经过其他路口点的路口点。
(5)电子设备重复执行上述步骤(3),不断将已遍历路口点向周边延伸,得到从出发点到多个节点(包括路口点和非路口点)的运动消耗量。对于需要消耗超过单次运动最大消耗量才能到达的已遍历路口点,不再对其执行(3)所描述的计算过程。当没有已遍历路口点可以执行(3)时,停止计算。
应理解,在一些实施例中,运动环境也可以是非路网环境,如广场或公开水域。在非路网环境下的运动消耗量的计算可以是对非路网环境进行网格化处理。网格化处理可以使用带有对角线的正方形网格,或者更加精确的网格构建方法对非路网环境进行网格化;网格密度取决于数据的准确度需求;最后将网格视为路网,进行(1)-(5)运动消耗量的计算。
在上述的运动消耗量的计算方式中,电子设备通过获取到的用户的个人信息和用户本次运动的设置信息确定用户的本次运动消耗基础效率,再结合每条路径(出发点到每个节点的路径)的能耗参数p,确定出从出发点到每个节点的运动消耗量,充分考虑到影响到本次运动的消耗的多种因素,例如,用户的个人状况如性别、年龄、身高、体重、运动记录、运动能力、运动技巧水平、历史运动消耗评估值、近期疲劳程度、近期睡眠质量等,和用户运动区域(出发点周边)的环境信息,如路程、坡度、坡度分布、路面质量及交通状况等,这样,可以确定出更接近实际运动消耗的运动消耗量,使计算结果更加准确,从而运动路线规划更加符合用户的当前情况,提高用户的使用体验。
需要说明的是,上述S905描述的电子设备计算从出发点到每个节点的所需要消耗的运动消耗量的过程还可以是其他实现方式,例如只利用路径的长度计算在该路径运动所需要消耗的运动消耗量,对于运动消耗量的计算方式本申请实施例不作限定。
S906、电子设备基于从出发点到每个节点的运动消耗量生成从出发点到目标地点运动路线,得到地图界面。S906可以包括但不限于步骤S9061-S9063:
S9061、电子设备根据从出发点到每个节点的运动消耗量、用户的单次运动最大消耗量,确定从出发点开始运动,消耗单次运动最大消耗量到达的至少一个目标地点。
S9062、电子设备确定出发点到至少一个目标地点的一条或多条运动路线。
S9063、电子设备将一条或多条运动路线通过电子地图显示。在一种具体的实施方式中,电子设备可以在获取到的第三方电子地图上增加显示图层(即为地图界面),显示上述基于从出发点到多个节点的运动消耗量规划运动路线的地图界面,具体的地图界面可以参见上述S104中的相关描述,此处不再赘述。
在一些实施例中,用户在地图界面上选择途经节点,电子设备执行S907和S908。
S907、电子设备确定从途经节点到途经节点周边的每个节点需要消耗的运动消耗量。
该过程可以参见上述S905中(1)-(5)中的相关描述,此处不再赘述。这时,以途经节点为出发点,电子设备计算其周边的每个节点需要消耗的运动消耗量。
S908、电子设备基于从途经节点到每个节点的运动消耗量生成从出发点经过途经节点到目标地点运动路线,得到更新后的地图界面。该过程可以参见上述S907中的相关描述,此处不再赘述。
应理解,在一些实施方式中,用户的单次运动最大消耗量还可以是电子设备通过获取到的用户的个人信息(例如上述图1中所示的个人信息中所列举的信息)和用户对本次运动的设置信息,确定该用户的单次运动最大消耗量。电子设备响应上述针对第一控件输入第一操作,可以执行该确定单次运动最大消耗量的过程。
下面通过两个示例说明应用上述地图显示方法进行运动路线规划或运动过程中的导航的场景。
示例1、用户希望使用电子设备(如智能手机)进行导航,完成今日目标消耗量(1200大卡);同时用户希望尽量去到较远的区域,并且在路线上有值得观赏的景色。用户认为如果运动消耗超过1500大卡会导致过度疲劳,并且会增加受伤风险,因此设定单次运动最大消耗量为1500大卡。用户在电子设备的本次运动的设置界面(如图3所示的界面)设置运动类型为跑步,进一步地,针对第一控件(如图3中的规划路线控件)输入操作。
电子设备接收到用户针对第一控件的操作。电子设备响应于该操作,显示地图界面,地图界面上显示有多处景色良好的区域,其中包括商城A、小山B、池塘C,跑步到达分别消耗300、400、500大卡。
用户选择先去小山B,即选择B为一个途经节点。选择B后,电子设备以B为出发点显示地图界面。在B周边,用户认为绕小山跑步体验较好,因此依次点击小山周边的路口点(即为多个途经节点),这样形成了一条绕山的运动路线,最后返回B点,此时到达B累计消耗卡路里1000大卡。
电子设备再次以B为新的出发点显示更新后的地图界面。其中由于地形原因,返回起点只需要250大卡增量,而前往池塘C需要750大卡增量。如果前往C,消耗1750大卡,将会超出单次运动最大消耗量(1500大卡),因此在地图界面上,在C的位置上显示警示图标予以警示。最终用户选择返回起点。
这样就形成了一条起点——B——环山路——B——起点的运动路线,累计消耗1250大卡,既完成了今日目标消耗量(1200大卡),又不会超过单次运动最大消耗量1500大卡,从而在该运动路线上跑步,降低了由于过量运动而受伤的风险。
当用户通过本申请实施例提供的一种地图显示的方法设计跑步路线的时候,可以在获取大量卡路里消耗数据的同时,选择自己感兴趣的地点作为途经节点。使用显示形式的不同区分和等运动消耗量线的表示方式,可以让用户仅仅凭直觉的喜好,就规划处一条兼顾科学性和趣味性的运动路线。用户只需选择想去的地点,就可以设计路线;并且可以通过查看从出发点到当前位置的运动消耗量,随时决定是否应该开始返程。
示例2、某用户喜爱爬山,但是因为长期不当运动导致的肌肉问题,他一次无法完成较大的运动量。医生认为他一次运动消耗1100大卡以内是安全的,即单次运动最大消耗量为1100大卡。
该用户计划驾车前往某山峰脚下后徒步登山。用户首先设定1100大卡作为单次运动最大卡路里消耗,选择往返模式,往返模式用于指示默认按照原路返回,运动方式来回保持一致。电子设备响应用户针对第一控件的第一操作,显示地图界面,从地图界面可以获取的信息有:该地点有三个备选山峰。其中,山峰A景色最好,但是登顶来回需要消耗1600大卡;山峰B高度较矮,登顶来回只需要700大卡;山峰C高度较高,但部分路段可以骑行,登顶总共需要骑行消耗600大卡,登山消耗400大卡。
用户通过触摸操作选择A山脚下作为出发点,因为登顶消耗过大,因此卡路里地图上予以警示,到达山顶可能超出身体承受范围。
用户通过触摸操作选择B山脚下作为出发点,直接显示可以到达山顶。
用户通过触摸操作选择C山脚下作为出发点,先选择骑行方式进行运动,并且点击C山的骑行坡道尽头作为途经节点;然后在C山的骑行坡道尽头切换运动类型为步行,此时,地 图界面显示从C山脚下到山顶的基于运动消耗量的运动路线,由界面中的信息可以得到,以该运动路线可以从C山脚下到山顶,且运动消耗量在安全范围内。
因此,通过上述显示的地图界面,用户可以根据自身锻炼需求在B和C山进行选择,确定驾车到旅行地点。
由示例2可知,本申请实施例提供的一种地图显示的方法,除了可以协助用户路线规划之外,还可以使用户自由的选择运动的出发点和运动类型,帮助用户将不同运动甚至驾车的路线结合起来,进行综合旅行、运动的路线规划,提高了用户体验。
下面介绍本申请实施例提供的示例性电子设备100。
图14示出了电子设备100的结构示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
在本申请实施例中,电子设备100可以通过GPU对地图界面上需要显示的图形进行处理,如通过如上述S104中第一种实现和第二种实现中描述的运动路线上显示运动消耗量的变化的几种标记方法,对运动路线的标记过程可由GPU执行,运动路线的显示形式可以参见上述S104中第一种实现和第二种实现中的相关描述,此处不再赘述。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S) 接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设 备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution, LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
在本申请实施例中,显示屏显示基于运动消耗量生成的地图界面,关于地图界面的描述可以参见上述图2A中S104中的相关描述,这样,地图界面可以为用户提供更加直观的运动消耗量,帮助用户规划更符合自己需求的运动路线。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功 能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
在本申请实施例中,电子设备100可以根据接收到的用户的触摸操作执行相关的过程。如用户可以在地图界面上选择途经节点,具体的操作可以是依次触摸地图界面上显示的节点作为选择的途经节点,电子设备100依次接收上述触摸操作,确定途经节点在电子地图上的相应的位置,进而进行地图的更新。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动 信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
请参阅图15,图15是本申请实施例提供的一种电子设备的软件架构,该电子设备可以执行如上述图2A或图2B所描述的地图显示的方法。如图15所示:
应用程序层中的应用程序可以通过调用应用框架中提供的视图(view)接口来创建用户界面。用户界面通常可以解析为以下两个方面:视图组件/视图布局、资源文件。创建用户界面可包括创建界面元素,例如图标、按钮列表等控件,以及通过XML资源文件设置页面布局、界面元素引用的图片、文本等资源。
应用程序框架层可以分为控件层和作图层。其中,框架层可提供丰富而又可扩展的视图(view),视图可用于构建用户界面中的文本框、网格等界面元素。作图层可以将上层应用程序要绘制的界面元素分解为以下或多项绘图元素:几何图形、文字、图片等等,确定绘图元素的尺寸、风格、颜色等属性,并调用系统库中用于绘制这些绘图元素的本地服务。
系统库可提供用于绘制绘图元素的本地服务,具体包括用于绘制图形的本地服务、用于绘制文字的本地服务以及用于绘制图片的本地服务等。并且,该本地服务还可用于生成绘制命令,并向内核层中的渲染线程发送绘制命令。应用程序要创建的用户界面所涉及的全部绘制命令可以缓存于绘制命令列表中,该绘制命令可只是要绘制的对象是什么(如图形、文字、图片等),以及颜色、风格等。本申请实施例中,系统库中用于绘制绘图元素的本地服务具体可以用于:在接收到针对“规划路线”的控件输入的操作后,生成发送给内核层中的渲染线程的绘制命令,该绘制命令用于指令渲染线程绘制地图界面上的元素(运动路线、等运动消耗量线、警示图标等),以生成基于运动消耗量的地图界面。具体的地图界面上的元素显示形式可以参见上述S104中的相关描述,此处不再赘述。
上述实施例中所用,根据上下文,术语“当...时”可以被解释为意思是“如果...”或“在...后”或“响应于确定...”或“响应于检测到...”。类似地,根据上下文,短语“在确定...时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定...”或“响应于确定...”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。
可以理解,本领域普通技术人员可以意识到,结合本申请各个实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本领域技术人员能够领会,结合本申请各个实施例中公开描述的各种说明性逻辑框、模块和算法步骤所描述的功能可以硬件、软件、固件或其任何组合来实施。如果以软件来实施,那么各种说明性逻辑框、模块、和步骤描述的功能可作为一或多个指令或代码在计算机可读媒体上存储或传输,且由基于硬件的处理单元执行。计算机可读媒体可包含计算机可读存储媒体,其对应于有形媒体,例如数据存储媒体,或包括任何促进将计算机程序从一处传送到另一处的媒体(例如,根据通信协议)的通信媒体。以此方式,计算机可读媒体大体上可对应于(1)非暂时性的有形计算机可读存储媒体,或(2)通信媒体,例如信号或载波。数据存储媒体可为可由一或多个计算机或一或多个处理器存取以检索用于实施本申请中描述的技术的指令、代码和/或数据结构的任何可用媒体。计算机程序产品可包含计算机可读媒体。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (16)

  1. 一种地图显示的方法,其特征在于,所述方法包括:
    显示第一应用程序的第一控件;所述第一控件用于触发基于运动消耗量进行地图规划;
    接收针对所述第一控件输入的第一操作;
    响应于所述第一操作,显示地图界面;其中,所述地图界面包括规划的至少一个目标地点以及从出发点到每个所述目标地点的一条或多条运动路线;所述目标地点为基于第一对象的本次运动基础消耗效率、单次运动最大消耗量以及所述出发点周边的地图信息,确定出的地点;所述运动路线显示有从所述出发点到所述目标地点的运动消耗量的变化。
  2. 根据权利要求1所述的方法,其特征在于,每条所述运动路线划分有多条线段;同一条运动路线中的不同线段对应显示不同的运动消耗量。
  3. 根据权利要求2所述的方法,其特征在于,所述同一条运动路线中的不同线段,通过以下任意一种显示形式进行区分:颜色、线型、花纹、粗细度、边界特征、端点形状、模糊度、透明度。
  4. 根据权利要求1所述的方法,其特征在于,同一条所述运动路线以渐变的形式进行显示,所述渐变的形式为以下任意一种显示形式:颜色渐变、透明度渐变;所述渐变的形式用于显示运动消耗量的变化。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述地图界面还显示有等运动消耗量线;所述等运动消耗量线为从所述出发点起消耗相同的运动消耗量到达的地点所连成的闭合曲线。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,在响应于所述第一操作,所述显示地图界面之后,所述方法还包括:
    接收所述第一对象输入的途经节点的操作;
    响应所述输入的途经节点的操作,显示更新的地图界面;其中,所述更新的地图界面包括规划的至少一个目标地点以及从出发点到经过所述途经节点到所述目标地点的一条或多条运动路线;所述目标地点为基于第一对象的本次运动基础消耗效率、单次运动最大消耗量、出发点周边以及途经节点周边的地图信息,确定出的从出发点经过途经节点到达的地点;所述运动路线显示有从所述出发点经过所述途经节点到所述目标地点的运动消耗量的变化。
  7. 根据权利要求6所述的方法,其特征在于,所述更新的地图界面还显示有第二等运动消耗量线;所述第二等运动消耗量线为从所述途经节点起消耗相同的运动消耗量到达的地点所连成的闭合曲线。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:所述地图界面上所述目标地点显示有警示图标;所述警示图标用于警示所述第一对象在所述运动路线上运动超过所述目标地点将造成运动过量。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述响应于所述第一操作,显示地图界面,包括:
    根据所述第一对象的本次运动基础消耗效率和所述出发点周边的地图信息,确定从所述出发点到多个节点的运动消耗量;
    根据所述从所述出发点到所述多个节点的运动消耗量、所述第一对象的单次运动最大消耗量,确定从所述出发点开始运动,消耗所述单次运动最大消耗量到达的至少一个目标地点;
    确定所述出发点到所述至少一个目标地点的一条或多条运动路线;
    显示包括所述一条或多条运动路线的地图界面。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述出发点周边的地图信息包括从所述出发点到所述多个节点的路径的路程、坡度、坡度分布、路面质量及交通状况。
  11. 根据权利要求1-10任一项所述的方法,其特征在于,通过以下任意一种计量方式计量所述运动消耗量:卡路里消耗量、热量消耗量、能量物质消耗量、体重下降量、糖消耗量、脂肪消耗量、运动量积分、运动任务目标百分比。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述响应于所述第一操作,显示地图界面之后,所述方法还包括:
    接收针对所述地图界面上的路线的选择控件输入的第二操作,所述选择控件用于选择目标路线;
    响应于所述第二操作,显示选择的目标路线;
    根据所述目标路线进行导航。
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述方法还包括:
    当检测到所述第一对象的所在的当前位置偏离所述目标路线,以所述当前位置为途经节点更新所述地图界面。
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述显示地图界面之前,还包括:
    接收用户输入的单次运动最大消耗量。
  15. 一种电子设备,其特征在于,包括:一个或多个处理器、一个或多个存储器,所述一个或多个存储器分别与所述一个或多个处理器耦合;所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;
    所述处理器用于调用所述计算机指令执行:如权利要求1-14任一项所述的地图显示的方法。
  16. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-14任一项所述的地图显示的方法。
PCT/CN2022/085582 2021-04-19 2022-04-07 地图显示的方法及相关设备 WO2022222761A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22790870.4A EP4310453A4 (en) 2021-04-19 2022-04-07 MAP DISPLAY METHOD AND ASSOCIATED DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110419782.2 2021-04-19
CN202110419782.2A CN115221250A (zh) 2021-04-19 2021-04-19 地图显示的方法及相关设备

Publications (1)

Publication Number Publication Date
WO2022222761A1 true WO2022222761A1 (zh) 2022-10-27

Family

ID=83605861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/085582 WO2022222761A1 (zh) 2021-04-19 2022-04-07 地图显示的方法及相关设备

Country Status (3)

Country Link
EP (1) EP4310453A4 (zh)
CN (1) CN115221250A (zh)
WO (1) WO2022222761A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW202143063A (zh) * 2019-12-31 2021-11-16 芬蘭商亞瑪芬體育數字服務公司 用於呈現主題地圖的設備及方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013188294A (ja) * 2012-03-13 2013-09-26 Casio Computer Co Ltd 運動情報生成システム、運動情報生成プログラムおよび運動情報生成方法
CN104122994A (zh) * 2013-02-22 2014-10-29 耐克创新有限合伙公司 活动监测、跟踪和同步
CN104697559A (zh) * 2015-03-18 2015-06-10 百度在线网络技术(北京)有限公司 骑行数据的显示方法和装置
CN106267776A (zh) * 2015-06-26 2017-01-04 三星电子株式会社 提供锻炼指导信息的方法和装置
CN108088457A (zh) * 2018-01-09 2018-05-29 莆田市烛火信息技术有限公司 一种用户运动线路生成方法、装置、系统及智能手环
CN108133741A (zh) * 2017-12-21 2018-06-08 莆田市烛火信息技术有限公司 一种用户运动线路规划方法、用户终端、服务器端及智能手环
CN109951815A (zh) * 2019-01-15 2019-06-28 杭州赛鲁班网络科技有限公司 一种室内运动健康数据采集系统和方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102216050B1 (ko) * 2014-02-26 2021-02-15 삼성전자주식회사 운동경로 추천 시스템 및 방법
US9464906B1 (en) * 2015-05-07 2016-10-11 International Business Machines Corporation Transport option selection to serve well-being objectives
WO2016193856A1 (en) * 2015-06-02 2016-12-08 Koninklijke Philips N.V. Activity suggestion
CN108133739B (zh) * 2017-12-14 2021-06-04 咪咕互动娱乐有限公司 一种运动路径的推送方法、装置及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013188294A (ja) * 2012-03-13 2013-09-26 Casio Computer Co Ltd 運動情報生成システム、運動情報生成プログラムおよび運動情報生成方法
CN104122994A (zh) * 2013-02-22 2014-10-29 耐克创新有限合伙公司 活动监测、跟踪和同步
CN104697559A (zh) * 2015-03-18 2015-06-10 百度在线网络技术(北京)有限公司 骑行数据的显示方法和装置
CN106267776A (zh) * 2015-06-26 2017-01-04 三星电子株式会社 提供锻炼指导信息的方法和装置
CN108133741A (zh) * 2017-12-21 2018-06-08 莆田市烛火信息技术有限公司 一种用户运动线路规划方法、用户终端、服务器端及智能手环
CN108088457A (zh) * 2018-01-09 2018-05-29 莆田市烛火信息技术有限公司 一种用户运动线路生成方法、装置、系统及智能手环
CN109951815A (zh) * 2019-01-15 2019-06-28 杭州赛鲁班网络科技有限公司 一种室内运动健康数据采集系统和方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4310453A4

Also Published As

Publication number Publication date
EP4310453A1 (en) 2024-01-24
EP4310453A4 (en) 2024-06-12
CN115221250A (zh) 2022-10-21

Similar Documents

Publication Publication Date Title
CN112130742B (zh) 一种移动终端的全屏显示方法及设备
CN110445978A (zh) 一种拍摄方法及设备
WO2021036568A1 (zh) 辅助健身的方法和电子装置
CN110072070A (zh) 一种多路录像方法及设备
CN109766043A (zh) 电子设备的操作方法和电子设备
WO2021169394A1 (zh) 基于深度的人体图像美化方法及电子设备
CN111202955A (zh) 运动数据处理方法及电子设备
WO2021169515A1 (zh) 一种设备间数据交互的方法及相关设备
CN115734071A (zh) 图像处理方法及装置
WO2022222761A1 (zh) 地图显示的方法及相关设备
WO2022143921A1 (zh) 一种图像重建方法、相关装置及系统
CN113996046B (zh) 热身判断方法、装置及电子设备
CN114444000A (zh) 页面布局文件的生成方法、装置、电子设备以及可读存储介质
WO2022214004A1 (zh) 一种目标用户确定方法、电子设备和计算机可读存储介质
US20230402150A1 (en) Adaptive Action Evaluation Method, Electronic Device, and Storage Medium
WO2022135272A1 (zh) 三维模型重建方法、设备和存储介质
WO2022135144A1 (zh) 自适应显示方法、电子设备及存储介质
WO2021036562A1 (zh) 用于健身训练的提示方法和电子设备
CN111339513A (zh) 数据分享的方法和装置
CN113472996B (zh) 图片传输方法及装置
WO2023207862A1 (zh) 确定头部姿态的方法以及装置
WO2021254091A1 (zh) 运动次数的确定方法和终端
WO2022161027A1 (zh) 动作提示图标序列生成方法、电子设备和可读存储介质
WO2022062978A1 (zh) 数据处理方法及电子设备
WO2022206783A1 (zh) 拍摄方法、装置、电子设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22790870

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022790870

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022790870

Country of ref document: EP

Effective date: 20231020

NENP Non-entry into the national phase

Ref country code: DE