WO2019071378A1 - 位置识别方法及终端 - Google Patents

位置识别方法及终端 Download PDF

Info

Publication number
WO2019071378A1
WO2019071378A1 PCT/CN2017/105343 CN2017105343W WO2019071378A1 WO 2019071378 A1 WO2019071378 A1 WO 2019071378A1 CN 2017105343 W CN2017105343 W CN 2017105343W WO 2019071378 A1 WO2019071378 A1 WO 2019071378A1
Authority
WO
WIPO (PCT)
Prior art keywords
location
electronic map
positioning mark
positioning
priority
Prior art date
Application number
PCT/CN2017/105343
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 PCT/CN2017/105343 priority Critical patent/WO2019071378A1/zh
Priority to CN201780095752.2A priority patent/CN111213118B/zh
Publication of WO2019071378A1 publication Critical patent/WO2019071378A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a location identification method and a terminal.
  • the user when using the above method to select a location, the user usually needs to drag the electronic map multiple times to ensure that the location to be selected coincides with the marker, or the user needs to first reduce the electronic map to determine the location to be selected after the region in the electronic map. Then enlarge the area, and then drag the electronic map to ensure that the position to be selected coincides with the mark, the operation is cumbersome, and the position recognition efficiency is low.
  • the embodiment of the invention discloses a location identification method and a terminal, which can simplify the operation flow when the user selects a location in the electronic map, and improve the location recognition efficiency of the terminal.
  • a first aspect of the embodiments of the present invention provides a location identification method, including:
  • the method further includes:
  • the method further includes:
  • attribute information of the positioning mark according to the attribute information setting instruction, where the attribute information includes start point identification information, waypoint identification information, and termination point identification information;
  • the priority of the location tag of the attribute information is higher than the priority of the location identifier of the route identifier information, and the priority of the location tag of the route identifier information is higher than the attribute information.
  • the method further includes:
  • the display color of the positioning mark is determined as the target color.
  • the terminal detects a scaling instruction for the electronic map input
  • the acquiring location information input to the electronic map includes:
  • the acquiring location information input to the electronic map includes:
  • a second aspect of the embodiments of the present invention provides a terminal, including:
  • An obtaining unit configured to acquire location information input to the electronic map
  • a determining unit configured to determine a location corresponding to the location information in the electronic map, and display a positioning mark on the location
  • a detecting unit configured to detect a sliding instruction input to the positioning mark, and move the positioning mark in the electronic map according to the sliding instruction to update a current position of the positioning mark
  • the identifying unit is configured to identify the current location of the positioning mark, and obtain updated position information.
  • the terminal provided by the second aspect of the embodiment of the present invention is used to implement the location identification method provided by the first aspect of the embodiment of the present invention.
  • the terminal provided by the second aspect of the embodiment of the present invention is used to implement the location identification method provided by the first aspect of the embodiment of the present invention.
  • a third aspect of the embodiments of the present invention provides another terminal, including a processor, an input device, an output device, and a memory, wherein the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used to store a computer program.
  • the computer program includes program instructions, and the processor is configured to invoke the program instructions to perform the method of the first aspect of the embodiments of the present invention.
  • a fourth aspect of embodiments of the present invention provides a computer readable storage medium, the computer storage medium storing a computer program, the computer program comprising program instructions, the program instructions, when executed by a processor, causing the processor to execute The method of the first aspect of the embodiments of the present invention.
  • the terminal acquires location information input to the electronic map, determines a location corresponding to the location information in the electronic map, and displays an positioning marker on the location, and detects the positioning marker by detecting Inputting a slide instruction, and moving the positioning mark in the electronic map according to the sliding instruction to update a current position of the positioning mark, and further identifying a current position of the positioning mark
  • the updated location information can simplify the operation flow when the user selects a location in the electronic map, and improve the location recognition efficiency of the terminal.
  • FIG. 1 is a schematic flowchart of a location identification method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of another location identification method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an electronic map interface according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the terminal involved in the embodiment of the present invention may include, but is not limited to, an electronic device such as a smart phone, a palmtop computer, a vehicle-mounted terminal, or a wearable device.
  • the operating system of the terminal may include, but is not limited to, an Android operating system, an IOS operating system, a Symbian operating system, a Blackberry operating system, a Windows Phone 8 operating system, and the like, which are not limited in the embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a location identification method according to an embodiment of the present invention, where the method may include:
  • the location information input function is enabled, and the user can input the location information of the location that is desired to be queried, and the terminal can obtain the location information input by the user on the electronic map.
  • the location information is a real geographical location, such as "Hangzhou West Lake”, “Xi'an Terracotta Warriors” and so on.
  • the manner in which the user inputs the location information includes, but is not limited to, touching the electronic map input location information, inputting the location information text in the location search box, or inputting the voice carrying the location information in the location search box.
  • the location information represents a real geographic location
  • the location corresponding to the location information Set this real location to correspond to the location in the electronic map.
  • an anchor mark is displayed at the location corresponding to the location information.
  • the shape of the positioning mark may include, but is not limited to, a water drop, a red dot, a circle, and the like, which are not limited in the embodiment of the present invention.
  • the terminal can adjust the display area of the electronic map, and displays “Hangzhou West Lake” and its surrounding map in the display area of the electronic map, and Add a positioning mark of inverted water drop shape at the location of the "West Lake” in Hangzhou.
  • the user's finger performs a sliding operation on the touch screen, and the terminal generates a sliding instruction according to the sliding operation, and moves the positioning mark according to the sliding instruction.
  • the movement track of the positioning mark can be the same as the sliding track of the user's finger.
  • the terminal when the terminal displays the positioning mark at the position 301 of the electronic map, the user presses the positioning mark, and then the finger drags the positioning mark to slide the distance to the position 302, the terminal A sliding operation of the user to input the positioning mark is detected, a sliding instruction is generated, and the positioning mark is moved along the trajectory of the finger sliding to the position 302 according to the sliding instruction, and the positioning mark is displayed at the position 302 to complete the position update.
  • the terminal may display the location information and the display time of the positioning tag in the display frame 303 of the electronic map.
  • the terminal determines whether the pressure value carried by the sliding instruction is greater than a preset threshold, and if the pressure value is greater than a preset threshold, the terminal determines that the sliding instruction is valid. Instructing to control the positioning mark 301 in the electronic map to follow the trajectory of the user's finger to move. If the pressure value is less than or equal to the preset threshold, optionally, the process ends, or the user is prompted to perform the sliding operation again.
  • the preset threshold may be 0.5 ⁇ , 1 ⁇ , or 2 ⁇ , etc., and the preset threshold may be set by the R&D personnel at the factory, or may be set by the user, which is not limited in the embodiment of the present invention. .
  • the terminal detects the position information corresponding to the positioning mark, re-records the position information, and completes the corresponding position mark. Update operation of location information.
  • the electronic map may include a reliable location area and an unreliable location area.
  • the terminal After detecting that the positioning marker moves, the terminal determines whether the current location of the positioning marker is in a reliable location area, and if the location identifier is located in the reliable location area. Then, the terminal identifies the current location of the positioning tag, and obtains the updated location information. If the position of the positioning mark is in the unreliable position area, prompting the user to confirm moving the positioning mark to the position, and if the user confirms moving the positioning mark to the position, the terminal is currently positioned by the positioning mark The location is identified and the updated location information is obtained.
  • the terminal may update the display color of the reliable location area adjacent to the positioning mark in the electronic map from the first display color to the second display color to prompt the user to move the positioning mark to
  • the display position is a reliable position area of the second display color.
  • the terminal re-determines the position where the positioning mark is located, and completes the update operation of the position information of the positioning mark.
  • the reliable location area and the unreliable location area are location areas that are preset on the map by the terminal, which are not limited in the embodiment of the present invention.
  • the first display color and the second display color are different, for example, the first display color may be blue, and the second display color may be red.
  • the terminal will send a prompt message asking the user whether to confirm moving the positioning mark to the position, and the user selects No, the terminal will be in the electronic map.
  • the color of the reliable position area adjacent to the positioning mark is changed from blue to red, so that the user can move the positioning mark to the reliable position area, and the user moves the positioning mark to the reliable position area according to the prompt of the terminal (such as a restaurant on the river bank).
  • the terminal re-determines the location where the positioning mark is located as the restaurant on the river bank, and completes the update operation of the location mark location information.
  • the reliable location area may be set according to user requirements. For example, when the user needs to locate the input location information, the terminal may set an area in the electronic map centered on the location information as a reliable location area. For example, when the user needs to navigate the input location information (for example, using the location information as a starting point or a termination point), the terminal may set the area of the electronic map including the road, the station, or the gateway adjacent to the location information to be reliable. Location area.
  • the terminal can set the area containing “Hangzhou West Lake” as a reliable location area, for example, the user needs to use electronic map navigation ( For example, when the location information is input as a starting point by the taxi software, Then “Hangzhou West Lake” belongs to the unreliable location area.
  • the road around “Hangzhou West Lake” belongs to the reliable location area, and the terminal can set the road around “Hangzhou West Lake” as a reliable location area.
  • the updated location information can simplify the operation flow when the user selects a location in the electronic map, and improve the location recognition efficiency of the terminal.
  • FIG. 2 is a schematic flowchart of a location identification method according to an embodiment of the present invention, where the method may include:
  • the terminal acquires location information input by the user on the electronic map, where the manner in which the user inputs the location information includes, but is not limited to, a touch operation on the electronic map, inputting the location information text in the location search box, or inputting and carrying in the location search box. Voice of location information, etc.
  • the user inputs a touch operation to the electronic map
  • the terminal detects a touch position of the touch operation input by the user, and acquires position information corresponding to the touch position.
  • the zoom processing of the electronic map may be completed according to the operation of the user, and then the touch operation of the electronic map input by the user after the zoom processing is detected, and the Touch the location information corresponding to the location of the operation.
  • the terminal performs scaling processing on the electronic map interface, and displays a map module that the user wants to query in the display screen.
  • the map module includes the location that the user wants to query, for example, the location that the user wants to query is “West Lake”, and the terminal will be based on the user.
  • the operation displays an electronic map module containing the location of the “West Lake”.
  • the terminal can obtain the location information input by the user as “West Lake”.
  • the terminal displays a location search box in the electronic map, and the user can input the location information that he wants to query in the location search box.
  • the terminal may display multiple candidate location information in the prompt box of the electronic map according to the information input by the user.
  • User selected prompt The terminal determines one of the plurality of alternative location information in the frame, and the terminal determines the candidate location information selected by the user as the location information input by the user.
  • the terminal can adjust the display area of the electronic map to display all the alternative location information in the display area of the electronic map.
  • the terminal determines that the candidate location information selected by the user is the location information input by the user.
  • the content entered by the user in the location search box is “West Lake”, and the terminal determines that the alternative location information is “West Lake” located in Hangzhou and “West Lake” located in Sichuan according to the information input by the user, and the terminal may be in the prompt box.
  • the display shows the “West Lake” in Hangzhou and the “West Lake” in Sichuan, and adjusts the display area of the electronic map so that the electronic map can simultaneously display the location of the two “West Lakes”.
  • the terminal will determine the location information input by the user as "West Lake” in Hangzhou.
  • the terminal can also adjust the electronic map zoom ratio to accurately display the positioning mark of the “West Lake” in Hangzhou according to the electronic map zoom ratio at the corresponding position of the display screen.
  • the terminal may provide a voice input button, and the user starts to input the voice information after pressing the voice input button, and the terminal acquires the location information that the user needs to query according to the voice information input by the user.
  • the terminal determines the location corresponding to the location information in the electronic map, and displays an positioning marker on the location. For example, if the user inputs “Hangzhou West Lake” in the location search box, the terminal will display a positioning mark in the corresponding position of “Hangzhou West Lake” in the electronic map.
  • the user may input only one location information, or may input multiple location information; if the user inputs multiple location information, the terminal may display one positioning marker respectively at the location corresponding to each location information.
  • the user can click anywhere in the map.
  • the terminal detects that the user's click duration is greater than the preset duration the user can display the positioning mark at the location clicked by the user.
  • the user can click anywhere in the map.
  • the terminal detects that the user's click pressure value is greater than the preset pressure value the user can display the positioning mark at the position clicked by the user.
  • the user can click anywhere in the map, and when the terminal detects that the user's click pressure value is greater than the preset pressure value, and the click duration is greater than the preset When the time is long, the positioning mark can be displayed at the position the user clicks.
  • the terminal displays the positioning mark
  • the display time of each positioning mark is recorded, and the display time of each positioning mark is displayed in the display area of the electronic map.
  • the display time of the positioning mark is recorded.
  • the priority of the positioning mark is determined according to the display time. In an optional implementation manner, the earlier the display time is, the higher the priority of the positioning mark is, or the later the display time is, the higher the priority of the positioning mark is, which is not limited in the embodiment of the present invention.
  • the identifier corresponding to the priority of the positioning tag is displayed on the positioning tag, and the identifier includes, but is not limited to, a number, a letter, and the like.
  • the identifier corresponding to the positioning tag can be modified.
  • N is an integer greater than or equal to 1
  • the highest priority positioning mark displays the number 1 on the top
  • the second priority positioning mark displays the number 2, and so on, and the lowest priority positioning mark.
  • the number N is displayed.
  • the attribute information may be added to the positioning tag, and the terminal determines the priority of the positioning tag according to the attribute information added by the user.
  • the attribute information includes start point identification information, waypoint identification information, or termination point identification information, where the attribute information is that the positioning mark of the starting point identification information has a higher priority than the attribute information is the location point identification information.
  • the priority of the tag, the attribute information is the priority of the location tag of the waypoint identification information, and the priority of the location tag of the tag information of the terminating point identification information.
  • the terminal determines the content displayed in the positioning tag attribute setting box according to the number of positioning tags displayed in the electronic map.
  • the terminal adds an identifier for each waypoint identification information, and determines a priority of the waypoint identification information according to the identifier, including but not limited to numbers, letters, and the like.
  • the terminal displays four positioning marks on the electronic map, and the corresponding positions are location 1, location 2, location 3, and location 4.
  • the positioning mark attribute information setting box is displayed in the electronic map, and the four positioning mark options are displayed in the box, which are the starting point identifier, the waypoint 1 identifier, the waypoint 2 identifier, and the termination point.
  • logo User for location 1 If the starting point identifier is selected in the positioning mark option, the terminal may determine the attribute information of the positioning mark corresponding to the location 1 as the starting point identification information.
  • the user selects the waypoint 1 identifier in the location tag option for the location 2, and the terminal can determine the attribute information of the location tag corresponding to the location 2 as the waypoint 1 identification information.
  • the user selects the waypoint 1 identifier in the location tag option for the location 2, and the terminal may determine the attribute information of the location tag corresponding to the location 2 as the waypoint 1 identification information.
  • the user selects the waypoint 2 identifier in the location tag option for the location 3, and the terminal can determine the attribute information of the location tag corresponding to the location 3 as the waypoint 2 identification information.
  • the terminal determines that the priority of the location tag corresponding to the location 1 is higher than the priority of the location marker corresponding to the location 2 according to the setting of the user, and the priority of the location tag corresponding to the location 2 is higher than the priority of the location tag corresponding to the location 3, and the location 3
  • the corresponding positioning mark has a higher priority than the positioning mark corresponding to the place 4.
  • the target color corresponding to the priority of the positioning mark may be determined according to the correspondence between the priority and the color, and the terminal acquires the target color, and the positioning mark is obtained.
  • the color is set to the target color.
  • the display color of the positioning mark also changes to the color corresponding to the modified priority.
  • the specific correspondence between the priority and the color is set by the R&D personnel at the time of leaving the factory, and the user can also modify it in the setting function option, which is not limited in the embodiment of the present invention.
  • the terminal detects the user sliding positioning mark, the distance between the sliding starting point and the pressing end point is determined. If the distance is greater than the preset distance, the terminal determines that the sliding operation is a sliding instruction input by the user on the positioning mark, and the terminal will The positioning mark is redisplayed at the position where the user slide operation ends, and the position where the positioning mark is located and the display time of the positioning mark are recorded, and the update operation of the current position of the positioning mark is completed. If the distance is less than or equal to the preset distance, optionally, the terminal may end the process.
  • the terminal After detecting that the user moves the positioning mark, the terminal re-determines the positioning mark.
  • the location and the display time of the anchor mark are displayed in the display box to get the updated location information.
  • the route is generated according to the priorities of the at least two positioning marks, where the route includes a starting point and a ending point, and the starting point corresponds to the positioning.
  • the priority of the tag is higher than the priority of the positioning tag corresponding to the termination point.
  • the route may further include a path point, where the priority of the positioning mark corresponding to the starting point is higher than the priority of the positioning mark corresponding to the path point, and the priority of the positioning mark corresponding to the path point is higher than the positioning mark corresponding to the ending point. Priority.
  • the user detects that the preset route generation button in the electronic map is clicked. If the terminal detects the click operation of the button by the user, the route is generated according to the priority of the at least two positioning tags, and the route is displayed in the electronic map.
  • the highest priority positioning mark is defined as the starting point of the route
  • the second priority positioning mark is defined as the first waypoint of the route
  • the lowest priority positioning mark is defined as the ending point of the route.
  • the terminal by acquiring location information input to the electronic map, determining a location corresponding to the location information in the electronic map, displaying an positioning marker on the location, and displaying the positioning marker in the electronic map
  • the terminal obtains the display time of the positioning mark, and determines the priority of the positioning mark according to the display time, determining a target color corresponding to the positioning mark according to the correspondence between the priority and the color, and the positioning mark is
  • the current location is identified, and the updated location information is obtained, and the terminal generates a route according to the priority of the at least two positioning markers.
  • the terminal provided by the embodiment of the present invention will be described in detail below with reference to FIG. It should be noted that the terminal shown in FIG. 4 is used to perform the method of the embodiment shown in FIG. 1 to FIG. 2 of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown, and the specific technical details are described. Unexplained, reference is made to the embodiment shown in Figures 1-2 of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal according to the present invention.
  • the terminal 40 may include: an obtaining unit 401, a determining unit 402, a detecting unit 403, and an identifying unit 404.
  • An obtaining unit 401 configured to acquire location information input to an electronic map
  • a determining unit 402 configured to determine a location corresponding to the location information in the electronic map, and display a positioning mark on the location;
  • the detecting unit 403 is configured to detect a sliding instruction input to the positioning mark, and move the positioning mark in the electronic map according to the sliding instruction to update a current position of the positioning mark;
  • the identifying unit 404 is configured to identify the current location of the positioning tag to obtain updated location information.
  • the obtaining unit 401 is further configured to: after the determining unit 402 determines a location corresponding to the location information in the electronic map, and after displaying the positioning marker on the location, acquiring at least two positioning markers Display time, the at least two positioning marks including the positioning mark;
  • the determining unit 402 is further configured to determine, according to each of the display times, a priority of the positioning mark corresponding to the display time;
  • the determining unit 402 is further configured to generate a route according to a priority of the at least two positioning tags, where the route includes a starting point and a ending point, where the positioning mark corresponding to the starting point has a higher priority than the ending point The priority of the corresponding positioning tag.
  • the terminal in the embodiment of the present invention may further include:
  • the receiving unit 405 is configured to determine, by the determining unit 402, a location corresponding to the location information in the electronic map, and after displaying the positioning marker on the location, receive an attribute information setting instruction;
  • the setting unit 406 is configured to set attribute information of the positioning mark according to the attribute information setting instruction, where the attribute information includes start point identification information, waypoint identification information, and termination point identification information;
  • the determining unit 402 is further configured to determine a priority of the positioning tag according to the attribute information.
  • the attribute information is that the priority mark of the start point identification information has a higher priority than the attribute information is the priority of the way point identification information positioning mark, and the attribute information is that the location mark of the way point identification information has a higher priority than the attribute information.
  • the obtaining unit 401 is further configured to: after the determining unit 402 determines a location corresponding to the location information in the electronic map, and after displaying the positioning marker on the location, acquiring the positioning Mark the corresponding priority;
  • the obtaining unit 401 is further configured to acquire, according to a correspondence between a priority and a color, a target color corresponding to a priority of the positioning mark;
  • the setting unit 406 is configured to set a display color of the positioning mark to the target color.
  • the detecting unit 403 is further configured to detect a zoom instruction input for the electronic map
  • the scaling unit 407 is configured to perform scaling processing on the electronic map according to the scaling instruction.
  • the acquiring unit 401 acquires location information input to the electronic map, and specifically includes:
  • the acquiring unit 401 acquires location information input to the electronic map, and specifically includes:
  • the obtaining unit 401 acquires the location information input to the electronic map; the determining unit 402 determines the location corresponding to the location information in the electronic map, and displays the positioning marker on the location; the detecting unit 403 detects the input of the positioning marker. Sliding the command, and moving the positioning mark in the electronic map according to the sliding instruction to update the current position of the positioning mark; the identifying unit 404 identifies the current position of the positioning mark, and obtains the updated position information, which can be simplified The operation when the user selects a location in the electronic map improves the location recognition efficiency of the terminal.
  • FIG. 5 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the terminal includes at least one processor 501, an input device 503, an output device 504, a memory 505, and at least one communication bus 502.
  • the communication bus 502 is used to implement connection communication between these components.
  • the input device 503 can be a control panel or a microphone, etc.
  • the output device 504 can be a display screen or the like.
  • the memory 505 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 505 can also optionally be at least one storage device located remotely from the aforementioned processor 501.
  • the processor 501 can be combined with the terminal described in FIG. 4.
  • the memory 505 stores a set of program codes, and the processor 501, the input device 503, and the output device 504 call the program code stored in the memory 505 for performing the following operations:
  • the input device 503 acquires location information input to the electronic map
  • the processor 501 determines a location corresponding to the location information in the electronic map, and the output device 504 displays the positioning marker on the location;
  • the input device 503 detects a sliding instruction input to the positioning mark, and the processor 501 moves the positioning mark in the electronic map according to the sliding instruction to update a current position of the positioning mark;
  • the processor 501 identifies the current location of the positioning mark to obtain updated position information.
  • the output device 504 displays the positioning mark at the location, it is further configured to perform the following steps:
  • the processor 501 acquires display time of at least two positioning marks, where the at least two positioning marks include the positioning mark;
  • the processor 501 determines a priority of the positioning mark corresponding to the display time according to each of the display times;
  • the processor 501 generates a route according to the priority of the at least two positioning marks, where the route includes a starting point and a ending point, and the priority of the positioning mark corresponding to the starting point is higher than the priority of the positioning mark corresponding to the ending point level.
  • the output device 504 displays the positioning mark at the location, it is further configured to perform the following steps:
  • the input device 503 receives an attribute information setting instruction
  • the processor 501 sets attribute information of the positioning tag according to the attribute information setting instruction, where the attribute information includes start point identification information, waypoint identification information, and termination point identification information;
  • the processor 501 determines the priority of the positioning tag according to the attribute information, where the attribute information is that the positioning mark of the starting point identification information has a higher priority than the attribute information is the priority of the waypoint identification information positioning mark, and the attribute information is a path.
  • the positioning tag of the point identification information has a higher priority than the positioning tag whose attribute information is the end point identification information.
  • the output device 504 displays the positioning mark at the location, it is further configured to perform the following steps:
  • the processor 501 acquires a priority corresponding to the positioning tag
  • the processor 501 acquires a priority pair of the positioning tag according to the correspondence between the priority and the color.
  • Target color
  • the processor 501 sets the display color of the positioning mark to the target color.
  • the input device 503 can also perform the following steps:
  • the processor 501 can also perform the following steps:
  • the input device 503 obtains location information input to the electronic map, which may be specifically:
  • the processor 501 acquires location information of a location pointed by the touch point in the electronic map.
  • the input device 503 obtains location information input to the electronic map, which may be specifically:
  • the input device 503 detects a search instruction for a search area in the electronic map
  • the processor 501 is responsive to the search instruction and acquires location information input in the search area.
  • the input device 503 acquires location information input to the electronic map; the processor 501 determines the location corresponding to the location information in the electronic map, the output device 504 displays the positioning marker in the location; and the input device 503 detects the alignment marker.
  • the input sliding instruction the processor 501 moves the positioning mark in the electronic map according to the sliding instruction to update the current position of the positioning mark; the processor 501 identifies the current position of the positioning mark to obtain the updated position.
  • the information can simplify the operation of the user when selecting a location in the electronic map, and improve the location recognition efficiency of the terminal.
  • the unit in the embodiment of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit) or an ASIC (Application Specific Integrated Circuit).
  • a CPU Central Processing Unit
  • ASIC Application Specific Integrated Circuit
  • the processor 501 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware group Pieces and so on.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the bus 504 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc., and the bus 504 may be divided into Address bus, data bus, control bus, etc., for ease of representation, Figure 5 is only indicated by a thick line, but does not mean that there is only one bus or one type of bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the computer storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例公开了一种位置识别方法和终端,其中方法包括,终端获取对电子地图输入的位置信息,在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记;检测对所述定位标记输入的滑动指令,并根据所述滑动指令将所述定位标记在所述电子地图中进行移动,以对所述定位标记当前所处位置进行更新,对所述定位标记当前所处位置进行识别,得到更新后的位置信息,通过实施上述方法,可以简化用户在电子地图中选择位置时的操作流程,提高终端的位置识别效率。

Description

位置识别方法及终端 技术领域
本发明涉及电子技术领域,尤其涉及位置识别方法及终端。
背景技术
随着科技的发展,电子地图的使用越来越频繁,人们在使用地图的时候最常用的就是路线搜索,路线搜索必然会存在位置(例如起始点、途经点或者目的地)的选择。目前的电子地图的中心区域会显示一个标记(例如红点),且该标记不可移动,当用户需要在电子地图上选择位置时,可以拖动地图,确保需要选择的位置和该标记重合,进而终端可以对该标记对应的位置进行识别。
但使用上述方法选择位置时,用户通常需要多次拖动电子地图才能确保需要选择的位置和该标记重合,或者用户需要先将电子地图缩小,确定需要选择的位置在电子地图中所属区域之后,再将该区域进行放大,进而对电子地图进行拖动,确保需要选择的位置和该标记重合,操作繁琐,且位置识别的效率较低。
发明内容
本发明实施例公开了位置识别方法及终端,可以简化用户在电子地图中选择位置时的操作流程,提高终端的位置识别效率。
本发明实施例第一方面提供了一种位置识别方法,包括:
获取对电子地图输入的位置信息;
在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记;
检测对所述定位标记输入的滑动指令,并根据所述滑动指令将所述定位标记在所述电子地图中进行移动,以对所述定位标记当前所处位置进行更新;
对所述定位标记当前所处位置进行识别,得到更新后的位置信息。
在一种可能实现的方式中,所述在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记之后,还包括:
获取至少两个定位标记的显示时间,所述至少两个定位标记包括所述定位标记;
根据各个所述显示时间确定所述显示时间所对应的定位标记的优先级;
根据所述至少两个定位标记的优先级生成路线,所述路线包括起始点和终止点,所述起始点所对应定位标记的优先级高于所述终止点所对应定位标记的优先级。
在一种可能实现的方式中,所述在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记之后,还包括:
接收属性信息设置指令;
根据所述属性信息设置指令设置所述定位标记的属性信息,所述属性信息包括起始点标识信息、途经点标识信息和终止点标识信息;
根据所述属性信息确定所述定位标记的优先级。
其中,属性信息为起始点标识信息的定位标记的优先级高于属性信息为途经点标识信息定位标记的优先级,属性信息为途经点标识信息的定位标记的优先级高于属性信息为终止点标识信息的定位标记的优先级。
在一种可能实现的方式中,所述在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记之后,还包括:
获取所述定位标记对应的优先级;
根据优先级与颜色的对应关系,获取所述定位标记对应的目标颜色;
将所述定位标记的显示颜色确定为所述目标颜色。
在一种可能实现的方式中,终端检测针对所述电子地图输入的缩放指令;
根据所述缩放指令对所述电子地图进行缩放处理。
在一种可能实现的方式中,所述获取对电子地图输入的位置信息,包括:
检测到对所述电子地图的触摸操作时,获取所述触摸操作对应的触摸点;
获取所述触摸点在所述电子地图中所指向位置的位置信息。
在一种可能实现的方式中,所述获取对电子地图输入的位置信息,包括:
检测对所述电子地图中搜索区域的搜索指令;
响应所述搜索指令,并获取在所述搜索区域输入的位置信息。
本发明实施例第二方面提供一种终端,包括:
获取单元,用于获取对电子地图输入的位置信息;
确定单元,用于在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记;
检测单元,用于检测对所述定位标记输入的滑动指令,并根据所述滑动指令将所述定位标记在所述电子地图中进行移动,以对所述定位标记当前所处位置进行更新;
识别单元,用于对所述定位标记当前所处位置进行识别,得到更新后的位置信息。
本发明实施例第二方面提供的终端用于实现本发明实施例第一方面提供的位置识别方法,具体实现过程可参见第一方面的具体描述,在此不再赘述。
本发明实施例第三方面提供另一种终端,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行本发明实施例第一方面所述的方法。
本发明实施例第四方面提供一种计算机可读存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行本发明实施例第一方面所述的方法。
在本发明实施例中,终端获取对电子地图输入的位置信息,在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记,通过检测对所述定位标记输入的滑动指令,并根据所述滑动指令将所述定位标记在所述电子地图中进行移动,以对所述定位标记当前所处位置进行更新,进一步对所述定位标记当前所处位置进行识别,得到更新后的位置信息,可以简化用户在电子地图中选择位置时的操作流程,提高终端的位置识别效率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是 本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种位置识别方法的流程示意图;
图2为本发明实施例提供的另一种位置识别方法的流程示意图;
图3为本发明实施例提供的一种电子地图界面示意图;
图4为本发明实施例提供的一种终端的结构示意图;
图5为本发明实施例提供的另一种终端的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例涉及的终端可包括但不限于智能手机、掌上电脑、车载终端或者可穿戴设备等电子设备。该终端的操作系统可包括但不限于Android操作系统、IOS操作系统、Symbian(塞班)操作系统、Black Berry(黑莓)操作系统、Windows Phone8操作系统等等,本发明实施例不做限定。
请参见图1,为本发明实施例提供的一种位置识别方法的流程示意图,该方法可包括:
S101、获取对电子地图输入的位置信息。
具体的,终端检测到当前显示界面为电子地图界面,则开启位置信息输入功能,用户可以输入希望查询的位置的位置信息,进而终端可以获取用户对电子地图输入的位置信息。其中所述位置信息为一个真实的地理位置,如“杭州西湖”、“西安兵马俑”等。用户输入位置信息的方式包括但不限于触摸电子地图输入位置信息、在位置搜索框输入携带位置信息文字或在位置搜索框中输入携带位置信息的语音等。
S102、在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记。
具体的,所述位置信息表示一个真实的地理位置,所述位置信息对应的位 置为该真实的地理位置对应电子地图中的位置。当终端获取到用户输入的位置信息后,将在所述位置信息对应的位置处显示一个定位标记。具体的,所述定位标记的形状可以包括但不限于倒水滴、红点、圆形等,本发明实施例不做限定。
可选的,用户按压电子地图上的语音输入按键,通过语音输入“杭州西湖”,终端可以调整电子地图的显示区域,在电子地图的显示区域中显示“杭州西湖”及其周边地图,并在所述“杭州西湖”位置处添加一个倒水滴形状的定位标记。
S103、检测对所述定位标记输入的滑动指令,并根据所述滑动指令将所述定位标记在所述电子地图中进行移动,以对所述定位标记当前所处位置进行更新。
具体的,用户手指在触摸屏上进行滑动操作,终端根据所述滑动操作生成滑动指令,并根据滑动指令对定位标记进行移动。可选的,定位标记的移动轨迹可以和用户手指的滑动轨迹相同。
以图3所示的电子地图界面示意图为例,当终端在电子地图的位置301处显示定位标记时,用户按压定位标记,然后手指拖动定位标记,使其滑动一段距离到位置302处,终端检测到用户对定位标记输入的滑动操作,生成滑动指令,并根据滑动指令将上述定位标记沿手指滑动的轨迹移动到位置302处,并在位置302处显示上述定位标记,完成位置更新。可选的,终端可以在电子地图的显示框303中显示上述定位标记的位置信息和显示时间。
可选的,终端在接收到用户输入的滑动指令时,会判断所述滑动指令携带的压力值是否大于预设阈值,若所述压力值大于预设阈值,终端判断所述滑动指令为有效的指令,控制电子地图中定位标记301跟随用户手指滑动的轨迹进行移动。若所述压力值小于或等于预设阈值,可选的,结束本流程,或者提示用户重新进行滑动操作。其中,所述预设阈值可以为0.5牛、1牛或2牛等,需要说明的是,该预设阈值可以由研发人员出厂时设置,也可以是用户设置的,本发明实施例不做限定。
S104、对所述定位标记当前所处位置进行识别,得到更新后的位置信息。
具体的,终端根据用户对定位标记输入的滑动操作移动定位标记后,会检测定位标记对应的位置信息,重新记录所述位置信息,完成对定位标记对应的 位置信息的更新操作。
可选的,电子地图可以包括可靠位置区域和不可靠位置区域,终端检测到定位标记移动后,会判断定位标记当前所处位置是否处于可靠位置区域,若定位标记所处位置在可靠位置区域内,则终端对所述定位标记当前所处位置进行识别,得到更新后的位置信息。若所述定位标记所处位置在不可靠位置区域内,则提示用户是否确认将定位标记移动到所述位置,若用户确认将定位标记移动到所述位置,则终端对所述定位标记当前所处位置进行识别,得到更新后的位置信息。若用户确认拒绝将定位标记移动到所述位置,终端可以将电子地图中定位标记相邻的可靠位置区域的显示颜色由第一显示颜色更新为第二显示颜色,以提示用户将定位标记移动至显示颜色为第二显示颜色的可靠位置区域,当用户对定位标记进行移动后,终端会重新确定定位标记所处的位置,完成对定位标记位置信息的更新操作。需要说明的是,所述可靠位置区域和不可靠位置区域为终端预先在地图上设置的位置区域,本发明实施例不做限定。第一显示颜色和第二显示颜色不相同,例如第一显示颜色可以为蓝色,第二显示颜色可以为红色。
举例说明,用户将定位标记移动至一条河流中,所述河流处于不可靠位置区域,则终端会发出提示信息询问用户是否确认将定位标记移至所述位置,用户选择否,终端将电子地图中定位标记相邻的可靠位置区域的颜色由蓝色改为红色,方便用户将定位标记移动至可靠位置区域,用户根据终端的提示将定位标记移动至所述可靠位置区域(如河岸边的饭店),终端重新确定定位标记所处的位置为所述河岸边的饭店,完成对定位标记位置信息的更新操作。
可选的,所述可靠位置区域可以基于用户需求进行设置,例如用户需要对输入的位置信息进行定位时,终端可以将电子地图中以该位置信息为中心的区域设置为可靠位置区域。又如用户需要对输入的位置信息进行导航(例如将该位置信息作为起始点或者终止点)时,终端可以将电子地图中包含与该位置信息相邻的道路、站点或者关口等区域设置为可靠位置区域。
举例说明,如用户输入的位置信息为“杭州西湖”,当用户只需要使用电子地图定位时,那么终端可以将包含“杭州西湖”的区域设置为可靠位置区域,如用户需要使用电子地图导航(例如通过打车软件输入位置信息作为起始点)时, 那么“杭州西湖”属于不可靠位置区域,“杭州西湖”周边的公路属于可靠位置区域,则终端可以将“杭州西湖”周边的公路设置为可靠位置区域。
在本发明实施例中,通过获取对电子地图输入的位置信息,在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记;检测对所述定位标记输入的滑动指令,并根据所述滑动指令将所述定位标记在所述电子地图中进行移动,以对所述定位标记当前所处位置进行更新,对所述定位标记当前所处位置进行识别,得到更新后的位置信息,可以简化用户在电子地图中选择位置时的操作流程,提高终端的位置识别效率。
请参见图2,为本发明实施例提供的一种位置识别方法的流程示意图,该方法可包括:
S201、获取对电子地图输入的位置信息。
具体的,终端获取用户对电子地图输入的位置信息,其中,用户输入位置信息的方式包括但不限对电子地图的触摸操作、在位置搜索框输入携带位置信息文字或在位置搜索框中输入携带位置信息的语音等。
在一种可能实现的方式中,用户对电子地图输入一个触摸操作,终端检测用户输入的触摸操作的触摸位置,并获取所述触摸位置对应的位置信息。
可选的,终端获取用户对电子地图输入的位置信息的过程中,可以根据用户的操作完成对电子地图的缩放处理,进而检测用户针对缩放处理后的电子地图输入的触摸操作,并获取所述触摸操作的位置对应的位置信息。
举例说明,终端对电子地图界面进行缩放处理,在显示屏中显示用户希望查询的地图模块,地图模块中包含了用户希望查询的位置,例如用户希望查询的位置为“西湖”,终端会根据用户的操作显示包含“西湖”所处位置的电子地图模块,用户触摸电子地图中“西湖”的位置,终端即可获取到用户输入的位置信息为“西湖”。
在一种可能实现的方式中,终端在电子地图中显示一个位置搜索框,用户可以在位置搜索框中输入自己想要查询的位置信息。
可选的,当用户输入的信息存在多个备选位置信息时,终端可以根据用户输入的信息,在电子地图的提示框中显示多个备选位置信息。用户选择了提示 框中多个备选位置信息中的一个,终端确定用户选择的备选位置信息为用户输入的位置信息。
可选的,终端可以调整电子地图的显示区域,在电子地图的显示区域中显示所有备选位置信息。用户点击电子地图的显示区域中多个备选信息中的一个时,终端确定用户选择的备选位置信息为用户输入的位置信息。
举例说明,用户在位置搜索框中输入的内容为“西湖”,终端根据用户输入的信息,确定备选位置信息为位于杭州的“西湖”和位于四川的“西湖”,则终端可以在提示框中显示位于杭州的“西湖”和位于四川的“西湖”,并调整电子地图的显示区域,使电子地图可以同时显示两个“西湖”的位置。当用户在提示框中选择位于杭州的“西湖”,或者,点击电子地图中位于杭州的“西湖”的位置时,终端将确定用户输入的位置信息为杭州的“西湖”。可选的,终端还可以调整电子地图缩放比例,使其精确的根据电子地图缩放比例在显示屏幕的对应位置显示位于杭州的“西湖”的定位标记。
在一种可能实现的方式中,终端可以提供语音输入按键,用户按压语音输入按键后开始输入语音信息,终端根据用户输入的语音信息获取到用户需要查询的位置信息。
S202、在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记。
具体的,终端在接收到用户输入的位置信息后,会在电子地图中确定所述位置信息对应的位置,并在所述位置上显示一个定位标记。举例说明,用户在位置搜索框中输入了“杭州西湖”,则终端会在电子地图中“杭州西湖”对应的位置显示一个定位标记。
需要说明的是,用户可以只输入一个位置信息,也可以输入多个位置信息;若用户输入多个位置信息,则终端可以在各个位置信息所对应的位置上分别显示一个定位标记。例如,用户可以点击地图中任意位置,当终端检测到用户的点击时长大于预设时长时,可以在用户点击的位置处显示定位标记。又如,用户可以点击地图中任意位置,当终端检测到用户的点击压力值大于预设压力值时,可以在用户点击的位置处显示定位标记。又如,用户可以点击地图中任意位置,当终端检测到用户的点击压力值大于预设压力值,且点击时长大于预设 时长时,可以在用户点击的位置处显示定位标记
当终端显示定位标记时,会记录各个定位标记的显示时间,并在电子地图的显示区域内显示各个定位标记的显示时间。
S203、根据定位标记的显示时间确定所述定位标记的优先级。
具体的,终端在电子地图中显示定位标记后,会记录定位标记的显示时间,当终端显示了至少了两个定位标记时,会根据所述显示时间确定定位标记的优先级。在一种可选的实现方式中,显示时间越早的定位标记优先级越高,或者,显示时间越晚的定位标记优先级越高,本发明实施例不做限定。
可选的,当终端确定了各个定位标记的优先级后,会在定位标记上显示定位标记的优先级对应的标识,所述标识包括但不限于数字、字母等。当用户需要修改定位标记的优先级时,可以对定位标记对应的标识进行修改。
举例说明,对于N个定位标记,N为大于等于1的整数,优先级最高的定位标记上回显示数字1,优先级第二的定位标记显示数字2,以此类推,优先级最低的定位标记显示数字N。当用户希望改变定位标记的优先级时,可以点击定位标记上的数字,对所述数字进行修改,当所述数字修改后,其对应的定位标记的优先级也会变为所述数字对应的优先级。
可选的,当用户希望自行设置定位标记的优先级时,可以给定位标记添加属性信息,终端根据用户添加的属性信息确定定位标记的优先级。需要说明的是,所述属性信息包括起始点标识信息、途经点标识信息或终止点标识信息,其中,属性信息为起始点标识信息的定位标记的优先级高于属性信息为途经点标识信息定位标记的优先级,属性信息为途经点标识信息的定位标记的优先级高于属性信息为终止点标识信息的定位标记的优先级。终端会根据电子地图中显示的定位标记的个数确定定位标记属性设置框中显示的内容。当存在多个途经点标识信息时,终端会为每个途经点标识信息添加一个标识,并根据所述标识确定途经点标识信息的优先级,所述标识包括但不限于数字、字母等。
举例说明,终端在电子地图上显示了4个定位标记,对应的位置分别为地点1、地点2、地点3和地点4。用户点击地点1对应的定位标记时,电子地图中会显示定位标记属性信息设置框,框中显示内容4个定位标记选项,分别为起始点标识、途经点1标识、途经点2标识、终止点标识。用户针对地点1 在定位标记选项中选择了起始点标识,则终端可以将地点1对应的定位标记的属性信息确定为起始点标识信息。相应的,用户针对地点2在定位标记选项中选择了途经点1标识,则终端可以将地点2对应的定位标记的属性信息确定为途经点1标识信息。用户针对地点2在定位标记选项中选择了途经点1标识,则终端可以将地点2对应的定位标记的属性信息确定为途经点1标识信息。用户针对地点3在定位标记选项中选择了途经点2标识,则终端可以将地点3对应的定位标记的属性信息确定为途经点2标识信息。终端根据用户的设置确定地点1对应的定位标记的优先级高于地点2对应的定位标记的优先级,地点2对应的定位标记的优先级高于地点3对应的定位标记的优先级,地点3对应的定位标记的优先级高于地点4对应的定位标记的优先级。
S204、根据优先级与颜色的对应关系,确定所述定位标记对应的目标颜色。
具体的,根据步骤S203确定了定位标记的优先级后,可以根据优先级与颜色的对应关系,确定所述定位标记的优先级对应的目标颜色,终端获取到所述目标颜色,并将定位标记的颜色设置为所述目标颜色。当终端根据用户的操作对定位标记的优先级进行修改后,定位标记的显示颜色也会变为修改后的优先级对应的颜色。需要说明的是,优先级与颜色的具体对应关系,由研发人员在出厂时设定,用户也可以在设置功能选项中对其进行修改,本发明实施例不做限定。
S205、检测对所述定位标记输入的滑动指令,并根据所述滑动指令将所述定位标记在所述电子地图中进行移动,以对所述定位标记当前所处位置进行更新。
具体的,所述滑动指令为终端的显示界面为电子地图界面时,用户手指在触摸屏上滑动操作。当终端检测到用户滑动定位标记后,会判断滑动起始点和按压终止点的距离,若所述距离大于预设距离,则终端判断所述滑动操作为用户对定位标记输入的滑动指令,终端会在用户滑动操作结束的位置重新显示定位标记,并记录定位标记所处的位置和定位标记的显示时间,完成对定位标记当前所处位置的更新操作。若所述距离小于或等于预设距离,可选的,终端可以结束本流程。
S206、对所述定位标记当前所处位置进行识别,得到更新后的位置信息。
具体的,终端检测到用户对定位标记进行移动之后,会重新确定定位标记 所处的位置和定位标记的显示时间,并在显示框中显示,以此得到更新后的位置信息。
S207、根据所述至少两个定位标记的优先级生成路线。
具体的,当终端检测到电子地图中显示了至少两个定位标记时,根据所述至少两个定位标记的优先级生成路线,所述路线包括起始点和终止点,所述起始点所对应定位标记的优先级高于所述终止点所对应定位标记的优先级。
可选的,路线还可以包括途经点,其中起始点对应的定位标记的优先级高于途经点对应的定位标记的优先级,途经点对应的定位标记的优先级高于终止点所对应定位标记的优先级。
可选的,终端生成路线之前,会检测用户点击了电子地图中预设的路线生成按键。若终端检测到用户对所述按键的点击操作,会根据所述至少两个定位标记的优先级生成路线,并在电子地图中显示该路线。其中,优先级最高的定位标记定义为路线的起始点,优先级第二的定位标记定义为路线的第一个途经点,以此类推,优先级最低的定位标记定义为路线的终止点。
在本发明实施例中,通过获取对电子地图输入的位置信息,在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记,在电子地图中显示定位标记后,终端获取所述定位标记的显示时间并根据所述显示时间确定所述定位标记的优先级,根据优先级与颜色的对应关系,确定所述定位标记对应的目标颜色,对所述定位标记当前所处位置进行识别,得到更新后的位置信息,终端根据所述至少两个定位标记的优先级生成路线。通过本发明实施例,可以简化用户在电子地图中选择位置时的操作,提高终端的位置识别效率。
下面将结合附图4对本发明实施例提供的终端进行详细介绍。需要说明的是,附图4所示的终端,用于执行本发明图1-图2所示实施例的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,经参照本发明图1-图2所示的实施例。
请参见图4,为本发明提供的一种终端的结构示意图;该终端40可包括:获取单元401、确定单元402、检测单元403和识别单元404。
获取单元401,用于获取对电子地图输入的位置信息;
确定单元402,用于在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记;
检测单元403,用于检测对所述定位标记输入的滑动指令,并根据所述滑动指令将所述定位标记在所述电子地图中进行移动,以对所述定位标记当前所处位置进行更新;
识别单元404,用于对所述定位标记当前所处位置进行识别,得到更新后的位置信息。
可选的,获取单元401,还用于在所述确定单元402在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记之后,获取至少两个定位标记的显示时间,所述至少两个定位标记包括所述定位标记;
所述确定单元402,还用于根据各个所述显示时间确定所述显示时间所对应的定位标记的优先级;
所述确定单元402,还用于根据所述至少两个定位标记的优先级生成路线,所述路线包括起始点和终止点,所述起始点所对应定位标记的优先级高于所述终止点所对应定位标记的优先级。
可选的,本发明实施例中的终端还可以包括:
接收单元405,用于所述确定单元402在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记之后,接收属性信息设置指令;
设置单元406,用于根据所述属性信息设置指令设置所述定位标记的属性信息,所述属性信息包括起始点标识信息、途经点标识信息和终止点标识信息;
所述确定单元402,还用于根据所述属性信息确定所述定位标记的优先级。
可选的,属性信息为起始点标识信息的定位标记的优先级高于属性信息为途经点标识信息定位标记的优先级,属性信息为途经点标识信息的定位标记的优先级高于属性信息为终止点标识信息的定位标记的优先级。
可选的,所述获取单元401,还用于在所述确定单元402在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记之后,获取所述定位标记对应的优先级;
所述获取单元401,还用于根据优先级与颜色的对应关系,获取所述定位标记的优先级对应的目标颜色;
本发明实施例中的终端还可以包括:
设置单元406,用于将所述定位标记的显示颜色设置为所述目标颜色。
可选的,所述检测单元403,还用于检测针对所述电子地图输入的缩放指令;
本发明实施例中的终端还可以包括:
缩放单元407,用于根据所述缩放指令对所述电子地图进行缩放处理。
可选的,所述获取单元401获取对电子地图输入的位置信息,具体包括:
检测到对所述电子地图的触摸操作时,获取所述触摸操作对应的触摸点;
获取所述触摸点在所述电子地图中所指向位置的位置信息。
可选的,所述获取单元401获取对电子地图输入的位置信息,具体包括:
检测对所述电子地图中搜索区域的搜索指令;
响应所述搜索指令,并获取在所述搜索区域输入的位置信息。
本发明实施例中,获取单元401获取对电子地图输入的位置信息;确定单元402在电子地图中确定位置信息所对应的位置,并在位置上显示定位标记;检测单元403检测对定位标记输入的滑动指令,并根据滑动指令将定位标记在电子地图中进行移动,以对定位标记当前所处位置进行更新;识别单元404对定位标记当前所处位置进行识别,得到更新后的位置信息,可以简化用户在电子地图中选择位置时的操作,提高终端的位置识别效率。
请参见图5,为本发明实施例提供了另一种终端的结构示意图。如图5所示,该终端包括:至少一个处理器501,输入设备503,输出设备504,存储器505,至少一个通信总线502。其中,通信总线502用于实现这些组件之间的连接通信。其中,输入设备503可以是控制面板或者麦克风等,输出设备504可以是显示屏等。其中,存储器505可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器505可选的还可以是至少一个位于远离前述处理器501的存储装置。其中处理器501可以结合图4所描述的终端,存储器505中存储一组程序代码,且处理器501,输入设备503,输出设备504调用存储器505中存储的程序代码,用于执行以下操作:
输入设备503获取对电子地图输入的位置信息;
处理器501在所述电子地图中确定所述位置信息所对应的位置,输出设备504在所述位置上显示定位标记;
输入设备503检测对所述定位标记输入的滑动指令,处理器501根据所述滑动指令将所述定位标记在所述电子地图中进行移动,以对所述定位标记当前所处位置进行更新;
处理器501对所述定位标记当前所处位置进行识别,得到更新后的位置信息。
在可选的实施例中,输出设备504在所述位置上显示定位标记之后,还用于执行以下步骤:
处理器501获取至少两个定位标记的显示时间,所述至少两个定位标记包括所述定位标记;
处理器501根据各个所述显示时间确定所述显示时间所对应的定位标记的优先级;
处理器501根据所述至少两个定位标记的优先级生成路线,所述路线包括起始点和终止点,所述起始点所对应定位标记的优先级高于所述终止点所对应定位标记的优先级。
在可选的实施例中,输出设备504在所述位置上显示定位标记之后,还用于执行以下步骤:
输入设备503接收属性信息设置指令;
处理器501根据所述属性信息设置指令设置所述定位标记的属性信息,所述属性信息包括起始点标识信息、途经点标识信息和终止点标识信息;
处理器501根据所述属性信息确定所述定位标记的优先级,其中属性信息为起始点标识信息的定位标记的优先级高于属性信息为途经点标识信息定位标记的优先级,属性信息为途经点标识信息的定位标记的优先级高于属性信息为终止点标识信息的定位标记的优先级。
在可选的实施例中,输出设备504在所述位置上显示定位标记之后,还用于执行以下步骤:
处理器501获取所述定位标记对应的优先级;
处理器501根据优先级与颜色的对应关系,获取所述定位标记的优先级对 应的目标颜色;
处理器501将所述定位标记的显示颜色设置为所述目标颜色。
在可选的实施例中,输入设备503还可以执行以下步骤:
检测针对所述电子地图输入的缩放指令;
处理器501还可以执行以下步骤:
根据所述缩放指令对所述电子地图进行缩放处理。
在可选的实施例中,输入设备503获取对电子地图输入的位置信息,具体可以为:
输入设备503检测到对所述电子地图的触摸操作时,获取所述触摸操作对应的触摸点;
处理器501获取所述触摸点在所述电子地图中所指向位置的位置信息。
在可选的实施例中,输入设备503获取对电子地图输入的位置信息,具体可以为:
输入设备503检测对所述电子地图中搜索区域的搜索指令;
处理器501响应所述搜索指令,并获取在所述搜索区域输入的位置信息。
本发明实施例中,输入设备503获取对电子地图输入的位置信息;处理器501在电子地图中确定位置信息所对应的位置,输出设备504在位置上显示定位标记;输入设备503检测对定位标记输入的滑动指令,处理器501根据滑动指令将定位标记在电子地图中进行移动,以对定位标记当前所处位置进行更新;处理器501对定位标记当前所处位置进行识别,得到更新后的位置信息,可以简化用户在电子地图中选择位置时的操作,提高终端的位置识别效率。
本发明实施例中所述单元,可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application Specific Integrated Circuit,专用集成电路)来实现。
应当理解,在本发明实施例中,所称处理器501可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组 件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
总线504可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互联(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等,该总线504可以分为地址总线、数据总线、控制总线等,为便于表示,图5仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的计算机存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims (10)

  1. 一种位置识别方法,其特征在于,包括:
    获取对电子地图输入的位置信息;
    在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记;
    检测对所述定位标记输入的滑动指令,并根据所述滑动指令将所述定位标记在所述电子地图中进行移动,以对所述定位标记当前所处位置进行更新;
    对所述定位标记当前所处位置进行识别,得到更新后的位置信息。
  2. 根据权利要求1所述的方法,其特征在于,所述在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记之后,还包括:
    获取至少两个定位标记的显示时间,所述至少两个定位标记包括所述定位标记;
    根据各个所述显示时间确定所述显示时间所对应的定位标记的优先级;
    根据所述至少两个定位标记的优先级生成路线,所述路线包括起始点和终止点,所述起始点所对应定位标记的优先级高于所述终止点所对应定位标记的优先级。
  3. 根据权利要求1所述的方法,其特征在于,所述在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记之后,还包括:
    接收属性信息设置指令;
    根据所述属性信息设置指令设置所述定位标记的属性信息,所述属性信息包括起始点标识信息、途经点标识信息和终止点标识信息;
    根据所述属性信息确定所述定位标记的优先级。
  4. 根据权利要求3所述的方法,其特征在于,属性信息为起始点标识信息的定位标记的优先级高于属性信息为途经点标识信息定位标记的优先级,属性信息为途经点标识信息的定位标记的优先级高于属性信息为终止点标识信息的定位标记的优先级。
  5. 根据权利要求2-4任一所述的方法,其特征在于,所述在所述电子地图中确定所述位置信息所对应的位置,并在所述位置上显示定位标记之后,还包括:
    获取所述定位标记对应的优先级;
    根据优先级与颜色的对应关系,获取所述定位标记的优先级对应的目标颜色;
    将所述定位标记的显示颜色设置为所述目标颜色。
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    检测针对所述电子地图输入的缩放指令;
    根据所述缩放指令对所述电子地图进行缩放处理。
  7. 根据权利要求1所述的方法,其特征在于,所述获取对电子地图输入的位置信息,包括:
    检测到对所述电子地图的触摸操作时,获取所述触摸操作对应的触摸点;
    获取所述触摸点在所述电子地图中所指向位置的位置信息。
  8. 根据权利要求1所述的方法,其特征在于,所述获取对电子地图输入的位置信息,包括:
    检测对所述电子地图中搜索区域的搜索指令;
    响应所述搜索指令,并获取在所述搜索区域输入的位置信息。
  9. 一种终端,其特征在于,包括用于执行如权利要求1-8任一权利要求所述的方法的单元。
  10. 一种终端,其特征在于,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-8任一项所述的方法。
PCT/CN2017/105343 2017-10-09 2017-10-09 位置识别方法及终端 WO2019071378A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/105343 WO2019071378A1 (zh) 2017-10-09 2017-10-09 位置识别方法及终端
CN201780095752.2A CN111213118B (zh) 2017-10-09 2017-10-09 位置识别方法及终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/105343 WO2019071378A1 (zh) 2017-10-09 2017-10-09 位置识别方法及终端

Publications (1)

Publication Number Publication Date
WO2019071378A1 true WO2019071378A1 (zh) 2019-04-18

Family

ID=66100336

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105343 WO2019071378A1 (zh) 2017-10-09 2017-10-09 位置识别方法及终端

Country Status (2)

Country Link
CN (1) CN111213118B (zh)
WO (1) WO2019071378A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111707234A (zh) * 2020-06-01 2020-09-25 柳七峰 铁轨轨道施工用水平度检测方法、系统、存储介质以及智能终端
CN112651806B (zh) * 2020-12-30 2023-08-08 北京瞰瞰智能科技有限公司 快速找到乘客的方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103280153A (zh) * 2013-05-24 2013-09-04 南京邮电大学 一种基于qr码的移动终端定位方法
CN103455558A (zh) * 2013-08-08 2013-12-18 义乌中国小商品城信息技术有限公司 一种定位方法及装置
CN104679423A (zh) * 2013-12-03 2015-06-03 方正国际软件(北京)有限公司 一种触摸屏地理位置精确定位的方法和系统
CN106969774A (zh) * 2013-04-28 2017-07-21 腾讯科技(深圳)有限公司 导航方法与装置、终端、服务器及系统
CN107093210A (zh) * 2017-04-20 2017-08-25 北京图森未来科技有限公司 一种激光点云标注方法及装置

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020077746A1 (en) * 2000-12-14 2002-06-20 Gary Zuber Method and apparatus for providing routes using auto ferries and channels
JP5055006B2 (ja) * 2007-04-13 2012-10-24 クラリオン株式会社 車載地図表示装置
US20110224896A1 (en) * 2010-03-09 2011-09-15 Nokia Corporation Method and apparatus for providing touch based routing services
US20120215439A1 (en) * 2011-02-22 2012-08-23 E-Lead Electronic Co., Ltd. More accurate navigation method
US10655979B2 (en) * 2013-06-08 2020-05-19 Apple Inc. User interface for displaying predicted destinations
US9404766B2 (en) * 2013-06-08 2016-08-02 Apple Inc. Navigation peek ahead and behind in a navigation application
US20170039076A1 (en) * 2014-04-30 2017-02-09 Empire Technology Development Llc Adjusting tap position on touch screen
KR101755785B1 (ko) * 2015-03-31 2017-07-10 네이버 주식회사 줌 제어를 수행한 노선도 또는 지도를 제공하는 방법 및 시스템
CN104991727B (zh) * 2015-07-20 2019-05-07 无线生活(杭州)信息科技有限公司 一种信息显示方法及装置
CN105260431A (zh) * 2015-09-30 2016-01-20 百度在线网络技术(北京)有限公司 基于电子地图的信息获取方法和装置
CN106323317B (zh) * 2016-09-22 2020-03-17 百度在线网络技术(北京)有限公司 导航方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106969774A (zh) * 2013-04-28 2017-07-21 腾讯科技(深圳)有限公司 导航方法与装置、终端、服务器及系统
CN103280153A (zh) * 2013-05-24 2013-09-04 南京邮电大学 一种基于qr码的移动终端定位方法
CN103455558A (zh) * 2013-08-08 2013-12-18 义乌中国小商品城信息技术有限公司 一种定位方法及装置
CN104679423A (zh) * 2013-12-03 2015-06-03 方正国际软件(北京)有限公司 一种触摸屏地理位置精确定位的方法和系统
CN107093210A (zh) * 2017-04-20 2017-08-25 北京图森未来科技有限公司 一种激光点云标注方法及装置

Also Published As

Publication number Publication date
CN111213118A (zh) 2020-05-29
CN111213118B (zh) 2023-11-03

Similar Documents

Publication Publication Date Title
US11290820B2 (en) Voice instructions during navigation
US10109082B2 (en) System and method for generating signal coverage information from client metrics
US8788203B2 (en) User-driven navigation in a map navigation tool
CN108021303B (zh) 在设备处于锁定模式时提供导航指令
TWI545536B (zh) 一地圖繪製應用程式中之旋轉操作
US9182233B2 (en) System and method for autocompletion and alignment of user gestures
US20110224896A1 (en) Method and apparatus for providing touch based routing services
US8478516B2 (en) Method and system for providing navigation assistance on a mobile device
CN103473227A (zh) 微博动态显示方法和装置
WO2013097129A1 (zh) 联系人搜索方法、装置及其应用的移动终端
CN109377509A (zh) 图像语义分割标注的方法、装置、存储介质和设备
CN105318880A (zh) 一种导航路线规划方法和装置
WO2019071378A1 (zh) 位置识别方法及终端
TW201638906A (zh) 具三度空間呈現之地圖繪製應用程式
CN109029480B (zh) 具有改进的导航工具的地图应用
JP5615858B2 (ja) 経路探索システムおよび経路探索方法
TW201522913A (zh) 電子裝置、提供導航指引的語音啟動方法、提供導航指引的方法及機器可讀取媒體
CN103778209A (zh) 一种poi检索结果显示方法及电子设备
TWI521187B (zh) 整合式地圖繪製及導航應用程式
CN113127584B (zh) 一种地图标注方法、装置、电子设备及存储介质
TW201407559A (zh) 路線顯示及檢閱
CN114691801A (zh) 车辆及其控制方法
JP6313615B2 (ja) 行き先候補表示方法及び行き先候補表示装置
TWI492074B (zh) 待辦工作顯示方法、裝置及電腦程式產品
KR20150134938A (ko) 모바일 장치

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: 17928158

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17928158

Country of ref document: EP

Kind code of ref document: A1