[go: up one dir, main page]

CN118347488A - A navigation method and system - Google Patents

A navigation method and system Download PDF

Info

Publication number
CN118347488A
CN118347488A CN202410545280.8A CN202410545280A CN118347488A CN 118347488 A CN118347488 A CN 118347488A CN 202410545280 A CN202410545280 A CN 202410545280A CN 118347488 A CN118347488 A CN 118347488A
Authority
CN
China
Prior art keywords
map data
location information
navigation
type
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410545280.8A
Other languages
Chinese (zh)
Inventor
陈林兵
杨群
史欣于
刘玉竹
武乃福
王仲远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202410545280.8A priority Critical patent/CN118347488A/en
Publication of CN118347488A publication Critical patent/CN118347488A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/005Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 with correlation of navigation data from several sources, e.g. map or contour matching
    • 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/20Instruments for performing navigational calculations
    • 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/20Instruments for performing navigational calculations
    • G01C21/206Instruments for performing navigational calculations specially adapted for indoor navigation
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/024Guidance services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Automation & Control Theory (AREA)
  • Signal Processing (AREA)
  • Navigation (AREA)

Abstract

本公开提供了一种导航方法及系统,属于导航技术领域,旨在提高导航服务的便利性,所述方法应用于终端,所述方法包括:响应于目标区域的导航请求,基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,并基于所述地图数据和所述位置信息渲染出第一导航页面;在检测到所述位置信息的类型发生变化时,将所述第一导航页面切换为第二导航页面;其中,所述第二导航页面由当前时刻获取的位置信息、以及与变化后的类型对应的地图数据渲染得到;其中,所述类型包括经纬度类型和无线电波信号类型,不同的类型对应所述目标区域的不同地图数据,所述地图数据包括描述所述目标区域全局的全局地图数据、和所述目标区域的局部区域的局部地图数据。

The present disclosure provides a navigation method and system, which belongs to the field of navigation technology and aims to improve the convenience of navigation services. The method is applied to a terminal, and comprises: in response to a navigation request of a target area, map data is acquired based on real-time acquired location information and a type corresponding to the location information, and a first navigation page is rendered based on the map data and the location information; when a change in the type of the location information is detected, the first navigation page is switched to a second navigation page; wherein the second navigation page is rendered by the location information acquired at the current moment and the map data corresponding to the changed type; wherein the types include latitude and longitude types and radio wave signal types, and different types correspond to different map data of the target area, and the map data include global map data describing the global target area, and local map data of a local area of the target area.

Description

一种导航方法及系统A navigation method and system

技术领域Technical Field

本公开涉及定位技术领域,特别是涉及一种导航方法及系统。The present disclosure relates to the field of positioning technology, and in particular to a navigation method and system.

背景技术Background technique

传统导航软件采用GPS(Global Positioning System,全球定位系统)获取用户的位置信息进行定位,然而,GPS是根据经纬度信息进行定位,其无法区分用户具体所在位置所处的场景,如无法区分用户位于室内还是位于室外。Traditional navigation software uses GPS (Global Positioning System) to obtain user location information for positioning. However, GPS is based on longitude and latitude information and cannot distinguish the scene where the user is located, such as whether the user is indoors or outdoors.

发明内容Summary of the invention

基于背景技术的内容,本公开提出了一种导航方法及系统。Based on the content of the background technology, the present disclosure proposes a navigation method and system.

本公开第一方面,提供一种导航方法,包括:In a first aspect, the present disclosure provides a navigation method, comprising:

响应于目标区域的导航请求,基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,并基于所述地图数据和所述位置信息渲染出第一导航页面;In response to a navigation request of a target area, map data is acquired based on the position information acquired in real time and the type corresponding to the position information, and a first navigation page is rendered based on the map data and the position information;

在检测到所述位置信息的类型发生变化时,将所述第一导航页面切换为第二导航页面;其中,所述第二导航页面由当前时刻获取的位置信息、以及与变化后的类型对应的地图数据渲染出;When a change in the type of the location information is detected, the first navigation page is switched to a second navigation page; wherein the second navigation page is rendered by the location information acquired at the current moment and map data corresponding to the changed type;

其中,所述类型包括经纬度类型和无线电波信号类型,不同的类型对应所述目标区域的不同地图数据,所述地图数据包括描述所述目标区域全局的全局地图数据、和所述目标区域的局部区域的局部地图数据。Among them, the types include longitude and latitude types and radio wave signal types, different types correspond to different map data of the target area, and the map data include global map data describing the global target area, and local map data of the local area of the target area.

可选地,在所述类型由所述经纬度类型变化到所述无线电波信号类型的情况下,所述第一导航页面中以三维模式渲染出所述全局地图数据,所述第二导航页面以二维模式渲染所述局部地图数据和所述当前时刻获取的位置信息;Optionally, when the type changes from the longitude and latitude type to the radio wave signal type, the global map data is rendered in a three-dimensional mode in the first navigation page, and the local map data and the location information acquired at the current moment are rendered in a two-dimensional mode in the second navigation page;

在所述类型由所述无线电波信号类型变化到所述经纬度类型的情况下,所述第一导航页面中以二维模式渲染出所述局部地图数据,所述第二导航页面以三维模式渲染所述全部地图数据和所述当前时刻获取的位置信息。When the type changes from the radio wave signal type to the longitude and latitude type, the local map data is rendered in a two-dimensional mode in the first navigation page, and the second navigation page renders the entire map data and the location information obtained at the current moment in a three-dimensional mode.

可选地,所述实时获取的位置信息和所述位置信息对应的类型,获取地图数据,并基于所述地图数据和所述位置信息渲染出第一导航页面,包括;Optionally, the real-time acquired location information and the type corresponding to the location information, acquiring map data, and rendering a first navigation page based on the map data and the location information, include:

在所述类型为所述经纬度类型的情况下,获取所述全局地图数据,并在目标窗口中渲染所述全局地图数据和所述位置信息,得到所述第一导航页面;In the case where the type is the longitude and latitude type, acquiring the global map data, and rendering the global map data and the location information in a target window to obtain the first navigation page;

在所述类型为所述无线电波信号类型的情况下,获取与所述位置信息对应的局部地图数据,并在所述目标窗口中渲染所述局部地图数据和所述位置信息,得到所述第一导航页面。In a case where the type is the radio wave signal type, local map data corresponding to the location information is acquired, and the local map data and the location information are rendered in the target window to obtain the first navigation page.

可选地,所述地图数据携带有多个预设标识以及与每个所述预设标识对应的位置,不同的预设标识标识不同的无线电设备;所述在所述类型为所述无线电波信号类型的情况下,获取与所述位置信息对应的局部地图数据,包括:Optionally, the map data carries a plurality of preset identifiers and a position corresponding to each of the preset identifiers, and different preset identifiers identify different radio devices; and when the type is the radio wave signal type, obtaining local map data corresponding to the position information includes:

从所述位置信息中解析出无线电波信号的强度值和目标标识;其中,所述强度值表征所述终端与所述目标区域中设置的无线电设备之间的距离大小;Parsing the strength value of the radio wave signal and the target identifier from the location information; wherein the strength value represents the distance between the terminal and the radio equipment set in the target area;

从多个所述预设标识中,确定与所述目标标识对应的目标预设标识,以及所述目标预设标识对应的目标位置;Determine, from the plurality of preset identifiers, a target preset identifier corresponding to the target identifier, and a target position corresponding to the target preset identifier;

获取所述目标位置所在的局部地图数据。Obtain local map data where the target location is located.

可选地,所述基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,并基于所述地图数据和所述位置信息渲染出第一导航页面之前,所述方法还包括:Optionally, before acquiring map data based on the real-time acquired location information and the type corresponding to the location information, and rendering the first navigation page based on the map data and the location information, the method further includes:

在所述导航请求被触发的时刻,下载并缓存所述目标区域中每个楼栋中每个楼层的局部地图数据;When the navigation request is triggered, download and cache local map data of each floor in each building in the target area;

所述基于所述地图数据和所述位置信息渲染出第一导航页面,包括:The rendering of a first navigation page based on the map data and the location information includes:

在所述类型为所述经纬度类型的情况下,从所述缓存中获取每个楼栋所包括的每个楼层的局部地图数据层;In the case where the type is the latitude and longitude type, obtaining a local map data layer of each floor included in each building from the cache;

将多个所述局部地图数据按照所属楼层堆叠,得到三维地图页面;Stacking the plurality of local map data according to the floors to which they belong to obtain a three-dimensional map page;

在所述三维地图页面中标记所述位置信息,得到三维模式的所述第一导航页面。The location information is marked in the three-dimensional map page to obtain the first navigation page in a three-dimensional mode.

可选地,所述经纬度类型的位置信息通过以下步骤获取:Optionally, the location information of the latitude and longitude type is obtained by the following steps:

调用所述终端配置的定位器,通过所述定位器向第三方服务器获取所述经纬度类型的第一位置信息;Calling a locator configured in the terminal, and obtaining the first location information of the latitude and longitude type from a third-party server through the locator;

所述无线电波信号类型的位置信息通过以下步骤获取:The location information of the radio wave signal type is obtained by the following steps:

调用所述终端配置的无线通信模块,通过所述无线通信模块对所述目标区域中的无线电设备进行扫描,得到所述无线电波信号的类型的第二位置信息。The wireless communication module configured in the terminal is called, and the radio equipment in the target area is scanned by the wireless communication module to obtain the second location information of the type of the radio wave signal.

可选地,所述方法还包括:Optionally, the method further comprises:

在所述导航请求被触发的时刻,同时调用所述定位器,以及激活所述无线通信模块;When the navigation request is triggered, calling the locator and activating the wireless communication module at the same time;

检测所述无线通信模块是否获取到所述第二位置信息;detecting whether the wireless communication module acquires the second location information;

基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,包括:Acquiring map data based on the real-time acquired location information and the type corresponding to the location information includes:

若获取到所述第二位置信息,则获取与所述第二位置信息对应的局部地图数据;If the second location information is obtained, obtaining local map data corresponding to the second location information;

若未获取到所述第二位置信息,则获取所述全局地图数据。If the second location information is not obtained, the global map data is obtained.

本公开提出的导航方法,应用于终端,包括:响应于目标区域的导航请求,基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,并基于所述地图数据和所述位置信息渲染出第一导航页面;在检测到所述位置信息的类型发生变化时,将所述第一导航页面切换为第二导航页面;其中,所述第二导航页面由当前时刻获取的位置信息、以及与变化后的类型对应的地图数据渲染出;其中,所述类型包括经纬度类型和无线电波信号类型,不同的类型对应所述目标区域的不同地图数据,所述地图数据包括描述所述目标区域全局的全局地图数据、和所述目标区域的局部区域的局部地图数据;The navigation method proposed in the present disclosure is applied to a terminal, comprising: in response to a navigation request of a target area, obtaining map data based on real-time acquired location information and a type corresponding to the location information, and rendering a first navigation page based on the map data and the location information; when a change in the type of the location information is detected, switching the first navigation page to a second navigation page; wherein the second navigation page is rendered by the location information acquired at the current moment and the map data corresponding to the changed type; wherein the types include latitude and longitude types and radio wave signal types, different types correspond to different map data of the target area, and the map data include global map data describing the global target area, and local map data of a local area of the target area;

由此,本公开提供的导航方法,根据实时获取的位置信息类型,采用地图数据生成第一导航页面,并在接收到的位置信息的类型发生变化时,采用不同的地图数据生成第二导航页面,其中,由于地图数据可以是描述目标区域全局的全局地图数据,或是目标区域的局部区域的局部地图数据,则可以在用户接收到位置信息时,采用其中一种地图数据得到第一导航页面,而在用户接收到的位置信息的类型变化时,切换为另一种地图数据得到第二导航页面,通过导航页面的切换区分用户处于室内场景还是室外场景,并且,不管用户是从室内区域进入室外区域,还是从室外区域进入室内区域,均能接收到位置信息,实现为用户进行导航,提升用户体验。Therefore, the navigation method provided by the present invention uses map data to generate a first navigation page according to the type of location information obtained in real time, and uses different map data to generate a second navigation page when the type of the received location information changes. Since the map data can be global map data that describes the target area as a whole, or local map data of a local area of the target area, when the user receives location information, one type of map data can be used to obtain the first navigation page, and when the type of location information received by the user changes, it can be switched to another type of map data to obtain the second navigation page. By switching the navigation page, it can be distinguished whether the user is in an indoor scene or an outdoor scene, and no matter whether the user enters an outdoor area from an indoor area or enters an indoor area from an outdoor area, the location information can be received to achieve navigation for the user and improve the user experience.

本公开的第二方面,提供一种导航系统,包括:A second aspect of the present disclosure provides a navigation system, comprising:

第一应用以及嵌设在所述第一应用中的web渲染器;A first application and a web renderer embedded in the first application;

所述第一应用,用于响应于目标区域的导航请求,调用所述终端的定位器和无线通信模块,实时获取位置信息,并基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,并将所述地图数据和所述位置信息发送给所述web渲染器;The first application is used to call the locator and the wireless communication module of the terminal in response to the navigation request of the target area, obtain the location information in real time, obtain the map data based on the location information obtained in real time and the type corresponding to the location information, and send the map data and the location information to the web renderer;

所述web渲染器,用于将所述地图数据和所述位置信息渲染成第一导航页面;The web renderer is used to render the map data and the location information into a first navigation page;

所述第一应用,还用于在检测到所述位置信息的类型发生变化时,向所述web渲染器发送与变化后的类型和当前时刻获取的位置信息对应的新的地图数据;The first application is further configured to send new map data corresponding to the changed type and the location information obtained at the current moment to the web renderer when detecting that the type of the location information has changed;

所述web渲染器,还用于将所述第一导航页面,切换为由所述新的地图数据渲染出的第二导航页面;The web renderer is further used to switch the first navigation page to a second navigation page rendered by the new map data;

其中,所述类型包括经纬度类型和无线电波信号类型,不同的类型对应所述目标区域的不同地图数据,所述地图数据包括描述所述目标区域全局的全局地图数据、和所述目标区域的局部区域的局部地图数据。Among them, the types include longitude and latitude types and radio wave signal types, different types correspond to different map data of the target area, and the map data include global map data describing the global target area, and local map data of the local area of the target area.

可选地,所述系统还包括第二应用,所述第一应用嵌设在所述第二应用中;Optionally, the system further includes a second application, and the first application is embedded in the second application;

所述第二应用,用于检测所述导航请求被触发的时刻,激活所述第一应用,以使所述第一应用响应所述导航请求。The second application is used to detect the moment when the navigation request is triggered and activate the first application so that the first application responds to the navigation request.

可选地,所述第二应用,具体用于响应于接收到的扫描请求,调用所述终端的图像采集装置,并获取所述图像采集装置所采集的标识码图像;Optionally, the second application is specifically used to call the image acquisition device of the terminal in response to the received scanning request, and obtain the identification code image acquired by the image acquisition device;

以及,对所述标识码图像进行解析,在解析结果表征为对所述目标区域进行导航时,激活所述第一应用。And, the identification code image is parsed, and when the parsing result indicates navigation to the target area, the first application is activated.

上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够更明显易懂,以下特举本公开的具体实施方式。The above description is only an overview of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are listed below.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。需要说明的是,附图中的比例仅作为示意并不代表实际比例。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or related technologies, the following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the proportions in the drawings are only for illustration and do not represent the actual proportions.

图1示出了本公开实施例提供的导航方法的步骤流程图;FIG1 shows a flowchart of the steps of a navigation method provided by an embodiment of the present disclosure;

图2示出了本公开实施例中用户从一个场景运动到另一场景时,导航页面的变化示意图;FIG2 is a schematic diagram showing changes in a navigation page when a user moves from one scene to another in an embodiment of the present disclosure;

图3示出了本公开实施例提供的导航方法的流程示意图;FIG3 shows a schematic flow chart of a navigation method provided by an embodiment of the present disclosure;

图4示出了本公开实施例提供的导航系统的结构示意图;FIG4 shows a schematic diagram of the structure of a navigation system provided by an embodiment of the present disclosure;

图5示出了本公开实施例的导航过程中的数据流向图。FIG. 5 shows a data flow diagram during the navigation process of an embodiment of the present disclosure.

具体实施方式Detailed ways

为使本公开的上述目的、特征和优点能够更加明显易懂,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the above-mentioned purposes, features and advantages of the present disclosure more obvious and understandable, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

相关技术中,以园区的停车导航为例,在用户需要导航进入园区的室内停车场进行停车时,仅能够通过导航至室内停车场所在的建筑,而无法向用户展示室内停车场位于室内建筑中的具体位置,这使得用户需要打开用于室内的定位软件或是自行在室内寻找停车场的位置,降低用户体验。In the related technology, taking the parking navigation in the park as an example, when the user needs to navigate to enter the indoor parking lot of the park to park, he can only navigate to the building where the indoor parking lot is located, but cannot show the user the specific location of the indoor parking lot in the indoor building. This requires the user to open the indoor positioning software or find the location of the parking lot indoors by himself, which reduces the user experience.

有鉴于此,本公开提供了一种导航方法及系统,通过在接收到目标区域的导航请求时,根据当前位置信息的类型,获取对应的地图数据,并渲染出第一导航页面进行导航,而在位置信息的类型发生变化时,根据变化后的位置信息的类型获取对应的地图数据,进而渲染出第二导航页面,使得用户在从室内区域进入室外区域,或从室外区域进入室内区域时,能够直接由第一导航页面切换为第二导航页面,来实现不同场景下的导航的无缝切换,提高用户体验。In view of this, the present disclosure provides a navigation method and system, which, when receiving a navigation request for a target area, obtains corresponding map data according to the type of current location information, and renders a first navigation page for navigation. When the type of location information changes, the corresponding map data is obtained according to the type of the changed location information, and then a second navigation page is rendered, so that when a user enters an outdoor area from an indoor area, or enters an indoor area from an outdoor area, the first navigation page can be directly switched to the second navigation page, thereby achieving seamless switching of navigation in different scenarios and improving user experience.

参照图1,图1示出了本公开实施例提供的导航方法的步骤流程图,如图1所示,该导航方法可以应用于终端,具体可以是智能移动终端,如手机、平板等,该导航方法具体可以包括:Referring to FIG. 1 , FIG. 1 shows a flowchart of steps of a navigation method provided by an embodiment of the present disclosure. As shown in FIG. 1 , the navigation method can be applied to a terminal, specifically a smart mobile terminal, such as a mobile phone, a tablet, etc. The navigation method can specifically include:

S101,响应于目标区域的导航请求,基于实时获取的位置信息和位置信息对应的类型,获取地图数据,并基于地图数据和位置信息渲染出第一导航页面。S101, in response to a navigation request of a target area, obtaining map data based on real-time acquired location information and a type corresponding to the location information, and rendering a first navigation page based on the map data and the location information.

本实施例中,目标区域为既存在室外场景,又存在室内场景内的区域,如园区、景区、购物广场等,则在对目标区域进行导航时,获取的地图数据可以包括描述目标区域全局的全局地图数据,和目标区域的局部区域的局部地图数据。其中,全局地图数据可以是在室外俯瞰目标区域的地图数据,即包括目标区域的道路信息、楼栋信息等,局部地图数据可以是目标区域中室内场景的楼层地图。其中,地图数据可以在进入目标区域时预先获取,则在接收到导航请求时,可以直接根据位置信息类型确定所需加载地图数据;也可以是在接收到导航请求时获取,进而再根据位置信息去确定所需加载的地图数据。In this embodiment, the target area is an area where both outdoor scenes and indoor scenes exist, such as a park, a scenic spot, a shopping mall, etc., then when navigating the target area, the map data obtained may include global map data describing the global target area, and local map data of the local area of the target area. Among them, the global map data may be map data overlooking the target area outdoors, that is, including road information, building information, etc. of the target area, and the local map data may be a floor map of the indoor scene in the target area. Among them, the map data can be acquired in advance when entering the target area, then when receiving a navigation request, the map data to be loaded can be directly determined according to the type of location information; or it can be acquired when receiving a navigation request, and then the map data to be loaded can be determined according to the location information.

其中,位置信息的类型可以包括经纬度类型和无线电波信号类型。可以理解的是,在室外场景下,终端能够接收到GPS信号,则可以直接获取GPS坐标来进行定位,此时,终端接收到的位置信息为经纬度类型的位置信息;而在室内场景下,终端难以获取GPS信号,则可以采用无线电波来进行室内定位,此时终端接收到的位置信息为无线电波信号类型。在导航过程中,终端可以获取到的位置信息是经纬度信息还是基于无线电波信号的位置信息,来确定用户当前是处于室外场景,还是室内场景,则可以在用户处于室外场景的情况下,加载目标区域的全局地图数据;在用户处于室内场景的情况下,加载目标区域的局部地图数据。Among them, the type of location information may include longitude and latitude type and radio wave signal type. It is understandable that in outdoor scenarios, if the terminal can receive GPS signals, it can directly obtain GPS coordinates for positioning. At this time, the location information received by the terminal is longitude and latitude type location information; in indoor scenarios, if it is difficult for the terminal to obtain GPS signals, radio waves can be used for indoor positioning. At this time, the location information received by the terminal is of radio wave signal type. During the navigation process, the terminal can obtain longitude and latitude information or location information based on radio wave signals to determine whether the user is currently in an outdoor scene or an indoor scene. If the user is in an outdoor scene, the global map data of the target area can be loaded; if the user is in an indoor scene, the local map data of the target area can be loaded.

示例地,以用户位于园区为例,在获取到的位置信息为GPS发送的经纬度信息时,表征用户位于园区的室外区域,则加载园区的全局地图,来实现为用户进行导航,而若获取到的位置信息为无线电波信号类型的位置信息,则表征用户正处于园区的室内区域,则加载园区的室内局部地图,以为用户进行导航。For example, taking the case where the user is located in a park, when the location information obtained is the latitude and longitude information sent by the GPS, it indicates that the user is located in the outdoor area of the park, and the global map of the park is loaded to realize navigation for the user. If the location information obtained is the location information of the radio wave signal type, it indicates that the user is in the indoor area of the park, and the indoor local map of the park is loaded to navigate the user.

本实施例中,无线电波信号类型的位置信息可以由蓝牙信标发送,通过在室内设置多个蓝牙信标,终端与蓝牙信标通过蓝牙信号通信,则终端能够接收到无线电波信号类型的位置信息。示例地,可以在室内区域每间隔5米设置一个蓝牙信标,以使其能够覆盖所有室内区域。In this embodiment, the location information of the radio wave signal type can be sent by a Bluetooth beacon. By setting multiple Bluetooth beacons indoors, the terminal communicates with the Bluetooth beacons through Bluetooth signals, and the terminal can receive the location information of the radio wave signal type. For example, a Bluetooth beacon can be set every 5 meters in the indoor area so that it can cover all indoor areas.

可以理解的是,在园区、景区等区域中,可能包括一个或多个室内场景,如,同一建筑物的不同楼层,或是不同建筑物;则可以在包括多个室内场景的情况下,每个室内场景可以单独对应一个局部地图数据,则在获取到的位置信息为无线电波信号类型时,可以先根据位置信息,确定出用户当前所处的具体室内场景,进而获取对应的局部地图数据来进行导航。It is understandable that parks, scenic spots and other areas may include one or more indoor scenes, such as different floors of the same building, or different buildings; then when multiple indoor scenes are included, each indoor scene can correspond to a local map data separately. Then, when the acquired location information is of the radio wave signal type, the specific indoor scene where the user is currently located can be determined based on the location information, and then the corresponding local map data can be obtained for navigation.

本实施例中,第一导航页面可以是三维模式渲染的地图数据,也可以是二维模式渲染的地图数据,也可以在导航页面增加切换控件,由用户自主选择显示三维地图数据,或二维地图数据。In this embodiment, the first navigation page can be map data rendered in 3D mode or 2D mode. A switching control can also be added to the navigation page so that the user can choose to display 3D map data or 2D map data.

S102,在检测到位置信息的类型发生变化时,将第一导航页面切换为第二导航页面。S102: When it is detected that the type of the location information has changed, the first navigation page is switched to the second navigation page.

其中,第二导航页面由当前时刻获取的位置信息、以及与变化后的类型对应的地图数据渲染得到。The second navigation page is rendered by the location information obtained at the current moment and the map data corresponding to the changed type.

具体地,在接收的位置信息的类型发生变化时,表征用户进入了不同的场景,如在位置信息从经纬度类型变化为无线电波类型时,表征用户从室外场景进入到室内场景,而在位置信息从无线电波类型变化为经纬度类型时,则表征用户从室内场景进入到室外场景。而全局地图数据无法展示室内地图数据,局部地图数据无法展示室外的地图数据,则可以在用户从室内进入室外,或从室外进入室内时,对导航页面进行切换,以直接实现从室外到室内,或室内到室外的导航。Specifically, when the type of received location information changes, it indicates that the user has entered a different scene. For example, when the location information changes from the latitude and longitude type to the radio wave type, it indicates that the user has entered an indoor scene from an outdoor scene, and when the location information changes from the radio wave type to the latitude and longitude type, it indicates that the user has entered an outdoor scene from an indoor scene. Since the global map data cannot display indoor map data and the local map data cannot display outdoor map data, the navigation page can be switched when the user enters the outdoor from the indoor or the outdoor from the outdoor to the indoor, so as to directly realize navigation from the outdoor to the indoor or from the indoor to the outdoor.

在用户从室内场景进入到室外场景,或从室外场景进入到室内场景的情况下,当前的第一导航页面并不包括即将进入的场景的地图数据,则可以根据变化后的位置信息的类型,确定所需的地图数据,并根据该地图数据和位置信息渲染第二导航界面,进而将第一导航页面切换为第二导航页面,以在终端上显示即将进入的场景的地图数据,并为用户导航。When the user enters an outdoor scene from an indoor scene, or enters an indoor scene from an outdoor scene, and the current first navigation page does not include map data of the scene to be entered, the required map data can be determined according to the type of the changed location information, and the second navigation interface can be rendered according to the map data and location information, and then the first navigation page can be switched to the second navigation page to display the map data of the scene to be entered on the terminal and navigate for the user.

其中,参照图2,图2示出了本公开实施例中用户从一个场景运动到另一场景时导航页面的变化示意图,如图2所示,在用户位于某一场景时,其获取第一类型的位置信息,该第一类型的位置信息可以是经纬度类型的位置信息,也可以是无线电波信号类型的位置信息,此时,终端显示第一导航页面。之后,在用户从当前场景运动到另一场景时,获取的第一类型的位置信息改变为第二类型的位置信息,此时,终端在同一窗口显示第二导航页面,实现第一导航页面与第二导航页面的切换。Wherein, referring to FIG. 2, FIG. 2 shows a schematic diagram of the change of the navigation page when the user moves from one scene to another scene in the embodiment of the present disclosure. As shown in FIG. 2, when the user is in a certain scene, the user obtains the first type of location information, which can be the location information of the latitude and longitude type, or the location information of the radio wave signal type. At this time, the terminal displays the first navigation page. Afterwards, when the user moves from the current scene to another scene, the first type of location information obtained is changed to the second type of location information. At this time, the terminal displays the second navigation page in the same window to realize the switching between the first navigation page and the second navigation page.

示例地,在当前的第一导航页面显示的是局部地图和用户的当前位置的情况下,用户处于室内场景,在用户从室内场景进入室外场景时,终端接收到经纬度类型的位置信息,此时,可以根据接收到的经纬度类型的位置信息,以及全局地图数据,渲染得到第二导航页面,即显示全局地图的导航页面,进而将第一导航页面切换为第二导航页面;而在当前的第一导航页面显示的是全局地图和用户的当前位置的情况下,用户处于室外场景,在用户从室外场景进入室内场景时,终端接收到无线电波信号类型的位置信息,此时,可以根据接收到的无线电波信号类型的位置信息以及局部地图数据,渲染得到第二导航页面,即显示局部地图的导航页面,进而将第一导航页面切换为第二导航页面。For example, when the current first navigation page displays a local map and the user's current location, the user is in an indoor scene, and when the user enters an outdoor scene from the indoor scene, the terminal receives location information of the longitude and latitude type. At this time, the second navigation page can be rendered based on the received longitude and latitude type location information and the global map data, that is, a navigation page that displays the global map, and then the first navigation page is switched to the second navigation page; and when the current first navigation page displays the global map and the user's current location, the user is in an outdoor scene, and when the user enters the indoor scene from the outdoor scene, the terminal receives location information of the radio wave signal type. At this time, the second navigation page can be rendered based on the received location information of the radio wave signal type and the local map data, that is, a navigation page that displays the local map, and then the first navigation page is switched to the second navigation page.

本实施例中,第二导航页面可以是三维模式渲染的地图数据,也可以是二维模式渲染的地图数据,也可以在第二导航页面增加切换控件,进而根据用户选择显示三维地图数据,或二维地图数据。In this embodiment, the second navigation page can be map data rendered in 3D mode or 2D mode. A switching control can also be added to the second navigation page to display 3D map data or 2D map data according to user selection.

采用本公开实施例提供的导航方法,在对目标区域进行导航时,根据实时获取到的位置信息的类型,获取对应的地图数据来生成第一导航页面,为用户导航,并在获取到的位置信息的类型发生变化时,将第一导航页面切换为,当前位置信息的类型对应的地图数据,生成的第二导航页面,由此,在不同场景下,导航页面显示的地图不同,从而实现对用户所处的具体位置的场景的区分,并且,在用户所处的场景切换时,无需用户手动切换导航页面,即可实现不同场景下导航的无缝切换,提升用户体验。By adopting the navigation method provided in the embodiment of the present disclosure, when navigating to a target area, corresponding map data is obtained according to the type of location information obtained in real time to generate a first navigation page for navigation for the user, and when the type of location information obtained changes, the first navigation page is switched to a second navigation page generated by map data corresponding to the type of the current location information. Thus, in different scenarios, the maps displayed on the navigation page are different, thereby achieving distinction between the scenes of the specific location of the user, and when the scene where the user is located switches, there is no need for the user to manually switch the navigation page, and seamless switching of navigation in different scenarios can be achieved, thereby improving the user experience.

其中,第一导航页面可以采用二维模式渲染地图数据得到,也可以采用三维模式渲染地图数据得到;同样,第二导航页面可以采用二维模式渲染地图数据得到,也可以采用三维模式渲染地图数据得到。Among them, the first navigation page can be obtained by rendering map data in two-dimensional mode or three-dimensional mode; similarly, the second navigation page can be obtained by rendering map data in two-dimensional mode or three-dimensional mode.

在一实施例中,具体可以是在位置信息的类型由经纬度类型变化到无线电波信号类型的情况下,第一导航页面以三维模式渲染出全局地图数据,第二导航页面以二维模式渲染局部地图数据和当前时刻获取的位置信息;In one embodiment, specifically, when the type of the location information changes from the latitude and longitude type to the radio wave signal type, the first navigation page renders the global map data in a three-dimensional mode, and the second navigation page renders the local map data and the location information obtained at the current moment in a two-dimensional mode;

在位置信息的类型由无线电波信号类型变化到经纬度类型的情况下,第一导航页面以二维模式渲染出局部地图数据,第二导航页面以三维模式渲染全局地图数据和当前时刻获取的位置信息。When the type of location information changes from a radio wave signal type to a latitude and longitude type, the first navigation page renders local map data in a two-dimensional mode, and the second navigation page renders global map data and location information acquired at the current moment in a three-dimensional mode.

具体地,为区分第一导航页面和第二导航页面,可以是第一导航页面与第二导航页面的地图数据渲染模式不同,则得到的第一导航页面和第二导航页面的页面显示不同,这样,能够方便用户区分全局地图和局部地图。其中,考虑到全局地图数据不仅包括室外的地图数据,还包括室内的多个楼层的地图数据,则可以是全局地图数据采用三维模式渲染,而局部地图数据采用二维模式渲染,这样,能够在导航页面显示全局地图时,方便用户直观地查看多楼层建筑的空间布局,并方便在接收到无线电波信号类型的位置信息时,根据全局地图数据来确定出用户所处的位置对应的局部地图数据。Specifically, in order to distinguish the first navigation page from the second navigation page, the map data rendering modes of the first navigation page and the second navigation page may be different, so that the page displays of the first navigation page and the second navigation page are different, so that it is convenient for users to distinguish between the global map and the local map. Considering that the global map data includes not only outdoor map data but also map data of multiple floors indoors, the global map data may be rendered in a three-dimensional mode, while the local map data may be rendered in a two-dimensional mode. In this way, when the global map is displayed on the navigation page, it is convenient for users to intuitively view the spatial layout of a multi-story building, and it is convenient to determine the local map data corresponding to the user's location based on the global map data when receiving the location information of the radio wave signal type.

在一实施例中,由于对于不同类型的位置信息,获取的地图数据不同,则可以根据获取到的位置信息的类型,来确定所需要的地图数据,之后再获取对应的地图数据;具体地,可以是在类型为经纬度类型的情况下,获取全局地图数据,并在目标窗口中渲染全局地图数据和位置信息,得到第一导航页面;而在类型为无线电波信号类型的情况下,获取与位置信息对应的局部地图数据,并在目标窗口中渲染局部地图数据和位置信息,得到第一导航页面。In one embodiment, since different types of location information obtain different map data, the required map data can be determined based on the type of location information obtained, and then the corresponding map data can be obtained; specifically, when the type is a longitude and latitude type, global map data is obtained, and the global map data and location information are rendered in the target window to obtain the first navigation page; and when the type is a radio wave signal type, local map data corresponding to the location information is obtained, and the local map data and location information are rendered in the target window to obtain the first navigation page.

具体地,在同一目标窗口渲染全局地图数据以及局部地图数据,能够实现在同一窗口显示第一导航页面,或显示第二导航页面,这样,在用户从室内区域运动到室外区域,或从室外区域运动到室内区域时,可以通过同一个窗口查看导航,避免在不同区域进行导航,需要切换到不同的窗口进行显示,降低用户体验。Specifically, by rendering global map data and local map data in the same target window, it is possible to display the first navigation page or the second navigation page in the same window. In this way, when the user moves from an indoor area to an outdoor area, or from an outdoor area to an indoor area, the navigation can be viewed through the same window, avoiding the need to switch to different windows for display when navigating in different areas, which reduces the user experience.

本实施例中,目标窗口可以是应用窗口,也可以是网页窗口,则可以是在应用界面显示第一导航页面,也可以是在网页显示第一导航页面。其中,导航页面的渲染可以通过webview技术实现,通过将地图url(Uniform Resource Locator,统一资源定位器)地址作为webview组件的source(src)属性值,来实现在应用中显示地图页面并进行导航,其中,当前时刻获取的位置信息可以hash,在位置信息改变时,webview监听hashchange事件来将导航信息同步至webview中,实现实时导航。In this embodiment, the target window can be an application window or a web page window, and the first navigation page can be displayed on the application interface or on the web page. The rendering of the navigation page can be realized by the webview technology, and the map url (Uniform Resource Locator) address is used as the source (src) attribute value of the webview component to realize the display of the map page in the application and navigation. The location information obtained at the current moment can be hashed. When the location information changes, the webview listens to the hashchange event to synchronize the navigation information to the webview, so as to realize real-time navigation.

需要说明的是,目标区域可能包括多个不同的室内区域,而每个室内区域均独立,则在用户进入室内区域时,可以先确定出室内区域的标识,再根据室内区域的标识获取对应的地图数据。具体地,可以是地图数据携带有多个预设标识以及每个预设标识对应的位置,不同的预设标识标识不同的无线电设备;在此情况下,获取局部地图数据的过程具体可以是:It should be noted that the target area may include multiple different indoor areas, and each indoor area is independent. When the user enters the indoor area, the identification of the indoor area can be determined first, and then the corresponding map data can be obtained according to the identification of the indoor area. Specifically, the map data may carry multiple preset identifications and the location corresponding to each preset identification, and different preset identifications identify different radio devices; in this case, the process of obtaining local map data may specifically be:

首先,从位置信息中解析出无线电波信号的强度值和目标标识;其中,强度值表征终端与目标区域中设置的无线电设备之间的距离大小;接着,从多个预设标识中,确定与目标标识对应的目标预设标识,以及目标预设标识对应的目标位置;之后,获取目标位置所在的局部地图数据。First, the strength value and target identifier of the radio wave signal are parsed from the location information; wherein the strength value represents the distance between the terminal and the radio equipment set in the target area; then, the target preset identifier corresponding to the target identifier and the target position corresponding to the target preset identifier are determined from multiple preset identifiers; then, the local map data where the target position is located is obtained.

本实施例中,在目标区域为室内区域的情况下,可以从接收到的位置信息,确定多个无线电设备的无线电波信号强度,以及每个无线电设备携带的目标标识,该目标标识可以携带有无线电设备的位置信息,如无线电设备位于室内的位置坐标、楼层等,进而可以根据多个无线电设备的无线电波信号的强度值、每个无线电设备的位置坐标和楼层,来确定用户当前所处的位置,实现室内区域的准确定位。In this embodiment, when the target area is an indoor area, the radio wave signal strength of multiple radio devices and the target identifier carried by each radio device can be determined from the received location information. The target identifier can carry the location information of the radio device, such as the indoor location coordinates and floor of the radio device. Then, the user's current location can be determined based on the strength values of the radio wave signals of multiple radio devices, the location coordinates and floor of each radio device, thereby achieving accurate positioning of the indoor area.

其中,目标标识可以是目标区域中多个子区域的区域标识,每个子区域表征一个建筑物,则可以根据目标标识确定出用户所处的建筑物,实现局部地图数据的加载。可以理解的是,每个建筑物可能包括多个楼层,则目标标识还可以包括楼层信息,以实现加载用户所处楼层的局部地图数据。The target identifier may be an area identifier of multiple sub-areas in the target area, each sub-area representing a building, and the building where the user is located can be determined according to the target identifier to achieve loading of local map data. It is understandable that each building may include multiple floors, and the target identifier may also include floor information to achieve loading of local map data of the floor where the user is located.

示例地,可以是确定位置信息对应的目标标识时,将目标标识与全局地图上的多个预设标识相匹配,以确定出与目标标识对应的目标预设标识,进而能够确定出目标预设标识在全局地图上所处的目标位置,由此,获取到目标位置对应的局部地图数据。For example, when determining the target identifier corresponding to the location information, the target identifier is matched with multiple preset identifiers on the global map to determine the target preset identifier corresponding to the target identifier, and then the target position of the target preset identifier on the global map can be determined, thereby obtaining the local map data corresponding to the target position.

如,在通过蓝牙信标进行室内导航的过程中,可以预先在室内配置多个蓝牙信标,并将每个蓝牙信标的位置在全局地图中标识出来,则在终端接收到的位置信息为无线电波类型时,其实际可以包括多个蓝牙信标发送的蓝牙信号,进而可以根据蓝牙信标所携带的标识,确定其在全局地图中的具体楼栋和具体楼层,则可以获取对应的楼层的地图数据。For example, in the process of indoor navigation through Bluetooth beacons, multiple Bluetooth beacons can be pre-configured indoors, and the location of each Bluetooth beacon can be marked in the global map. Then, when the location information received by the terminal is of the radio wave type, it can actually include Bluetooth signals sent by multiple Bluetooth beacons. Then, based on the identification carried by the Bluetooth beacon, its specific building and specific floor in the global map can be determined, and the map data of the corresponding floor can be obtained.

示例地,若在地下1层某个位置部署了一个蓝牙信标,则可以同步在全局地图上的同样位置安排一个蓝牙信标,其中,蓝牙信标会有uuid(唯一id),在地图部署的时候也是用这个id串联,由此,接收到周围蓝牙信标的蓝牙信号时,可以根据蓝牙信号的位置信息获取到周围蓝牙信标的id和每个蓝牙信标的信号强度,进而可以基于uuid和蓝牙信标信号强度,确定蓝牙信标在地图的位置,进而也就能返回用户当前的位置。其中,蓝牙信标部署后的位置信息可以存储在远端服务器。For example, if a Bluetooth beacon is deployed at a certain location on the underground 1st floor, a Bluetooth beacon can be synchronously arranged at the same location on the global map. The Bluetooth beacon will have a uuid (unique id), which is also used in series when the map is deployed. Therefore, when receiving the Bluetooth signal of the surrounding Bluetooth beacons, the id of the surrounding Bluetooth beacons and the signal strength of each Bluetooth beacon can be obtained according to the location information of the Bluetooth signal. Then, based on the uuid and the Bluetooth beacon signal strength, the location of the Bluetooth beacon on the map can be determined, and the user's current location can be returned. The location information of the Bluetooth beacon after deployment can be stored on a remote server.

其中,以终端接收到地下2层的蓝牙信标返回的位置信息为例,在接收到蓝牙信标的信号时,可以根据接收到的位置信息对应的目标标识,确定与该目标标识匹配的全局地图中的目标预设标识,则可以根据该目标预设标识确定用户位于地下2层。Among them, taking the location information returned by the Bluetooth beacon on the second underground floor received by the terminal as an example, when the Bluetooth beacon signal is received, the target preset identifier in the global map that matches the target identifier can be determined based on the target identifier corresponding to the received location information, and the user can be determined to be located on the second underground floor based on the target preset identifier.

在一实施例中,为方便导航页面切换过程中,能够直接根据局部地图和位置信息渲染出第二导航页面,可以在接收到目标区域的导航请求时,预先下载目标区域中的所有局部地图数据,该过程具体可以是:In one embodiment, in order to facilitate the switching of navigation pages, the second navigation page can be directly rendered according to the local map and location information. When a navigation request of the target area is received, all local map data in the target area can be pre-downloaded. The process can be specifically:

首先,在导航请求被触发的时刻,下载并缓存目标区域中每个楼栋中每个楼层的局部地图数据;接着,在位置信息的类型为经纬度类型的情况下,从缓存中获取每个楼栋所包括的每个楼层的局部地图数据层;之后,将多个局部地图数据按照所属楼层堆叠,得到三维地图页面;最后,在三维地图页面中标记位置信息,得到三维模式的第一导航页面。First, when the navigation request is triggered, the local map data of each floor in each building in the target area is downloaded and cached; then, when the type of location information is latitude and longitude type, the local map data layer of each floor included in each building is obtained from the cache; thereafter, multiple local map data are stacked according to the floors they belong to, so as to obtain a three-dimensional map page; finally, the location information is marked in the three-dimensional map page, so as to obtain the first navigation page in the three-dimensional mode.

本实施例中,可以是接收到导航请求时,根据导航的起点位置和终点位置确定是否下载目标区域中的局部地图数据,如导航的起点位置和终点位置,一者位于室外,另一者位于室内,则说明导航过程中需要局部地图数据,则此时,可以下载并缓存目标区域中每个楼栋中每个楼层的局部地图数据;而若导航起点位置和终点位置均位于室内,或均位于室外,则获取对应的全局地图数据,或对应楼栋中对应楼层的局部地图数据即可;还可以是只要接收到导航请求,就下载并缓存目标区域中每个楼栋中每个楼层的局部地图数据,之后,再根据实时位置信息确定所需的局部地图数据。In this embodiment, when a navigation request is received, it is determined whether to download local map data in the target area based on the starting point and end point of the navigation. For example, if one of the starting point and end point of the navigation is located outdoors and the other is located indoors, it means that local map data is needed during the navigation process. At this time, the local map data of each floor in each building in the target area can be downloaded and cached; if the starting point and end point of the navigation are both located indoors, or both are located outdoors, the corresponding global map data or the local map data of the corresponding floor in the corresponding building can be obtained; it is also possible that as long as a navigation request is received, the local map data of each floor in each building in the target area is downloaded and cached, and then the required local map data is determined based on the real-time location information.

采用此实施例的技术方案,在将地图数据缓存到本地的情况下,其可以实现离线导航,即根据接收到的GPS位置信息和无线电波类型的位置信息,可以利用存储到终端的地图数据,渲染出导航页面,进而实现终端的离线导航。By adopting the technical solution of this embodiment, when the map data is cached locally, it can realize offline navigation, that is, according to the received GPS location information and radio wave type location information, the map data stored in the terminal can be used to render a navigation page, thereby realizing offline navigation of the terminal.

其中,获取到目标区域中每个楼栋每个楼层的局部地图数据,可以确定出每个楼栋所包括的多个楼层对应的局部地图数据,进而按照楼层顺序对多个局部地图数据进行堆叠,得到能够直观显示出建筑物中多楼层的空间布局的三维地图,以方便在三维地图中标记出每个无线电设备的位置,这样,可以在接收到无线电设备的无线电波信号类型的位置信息时,根据位置信息,确定出用户当前所处的楼栋以及楼层,进而实现的根据无线电波信号类型的位置信息,来获取对应的局部地图数据。Among them, by obtaining local map data of each floor of each building in the target area, the local map data corresponding to the multiple floors included in each building can be determined, and then the multiple local map data can be stacked in order of floors to obtain a three-dimensional map that can intuitively display the spatial layout of multiple floors in the building, so as to facilitate marking the location of each radio device in the three-dimensional map. In this way, when the location information of the radio wave signal type of the radio device is received, the building and floor where the user is currently located can be determined according to the location information, and then the corresponding local map data can be obtained according to the location information of the radio wave signal type.

对以上任一实施例,经纬度类型位置信息的获取方法具体可以是:调用终端配置的定位器,通过定位器向第三方服务器获取经纬度类型的第一位置信息;无线电波信号类型的位置信息的获取方法具体可以是:调用终端配置的无线通信模块,通过无线通信模块对目标区域中的无线电设备进行扫描,得到无线电波信号类型的第二位置信息。For any of the above embodiments, the method for obtaining longitude and latitude type location information may specifically be: calling the locator configured by the terminal, and obtaining the first longitude and latitude type location information from a third-party server through the locator; the method for obtaining radio wave signal type location information may specifically be: calling the wireless communication module configured by the terminal, and scanning the radio equipment in the target area through the wireless communication module to obtain the second location information of the radio wave signal type.

本实施例中,可以是终端自身配置有定位器,终端中的应用可以调用定位器来获取位置信息,则可以是将导航页面嵌入到应用中,通过应用的第三方服务器来获取经纬度类型的位置信息;同时,终端配置有无线通信模块,该无线通信模块能够与无线电设备通信,则可以在终端的无线通信模块接收到无线电设备发送的无线电波信号类型的第二位置信息。In this embodiment, the terminal itself may be configured with a locator, and the application in the terminal may call the locator to obtain location information, or the navigation page may be embedded in the application, and the longitude and latitude type location information may be obtained through the third-party server of the application; at the same time, the terminal is configured with a wireless communication module, which can communicate with a radio device, and the second location information of the radio wave signal type sent by the radio device may be received in the wireless communication module of the terminal.

示例地,可以将目标区域的导航应用作为小程序嵌入另一应用中,通过导航应用自身实现获取无线电波信号类型的第二位置信息,通过另一应用实现获取经纬度类型的第一位置信息,进而使得导航应用能够接收到不同类型的位置信息。For example, the navigation application of the target area can be embedded in another application as a small program, and the second location information of the radio wave signal type can be obtained through the navigation application itself, and the first location information of the longitude and latitude type can be obtained through another application, thereby enabling the navigation application to receive different types of location information.

其中,考虑到无线电波信号的传播范围有限,只能在室内区域接收到,而GPS信号难以准确确定用户位于室内区域还是室外区域,则可以是根据是否接收到无线电波信号来确定用户是位于室内区域还是位于室外区域。Among them, considering that the propagation range of radio wave signals is limited and can only be received in indoor areas, and GPS signals are difficult to accurately determine whether the user is located in indoor areas or outdoor areas, it is possible to determine whether the user is located in indoor areas or outdoor areas based on whether radio wave signals are received.

具体地,若接收到目标区域的导航请求,则可以通过调用定位器来获取第一位置信息,以及检测无线通信模块来获取第二位置信息,若检测到第二位置信息,则说明用户处于室内,而若未检测到第二位置信息,则说明用户处于室外,进而根据用户处于室内或是室外区域来获取对应的地图数据,该过程具体可以是:Specifically, if a navigation request for a target area is received, the first location information can be obtained by calling the locator, and the second location information can be obtained by detecting the wireless communication module. If the second location information is detected, it means that the user is indoors, and if the second location information is not detected, it means that the user is outdoors, and then the corresponding map data is obtained according to whether the user is in an indoor or outdoor area. The process can be specifically as follows:

首先,在导航请求被触发的时刻,同时调用定位器,以及激活无线通信模块;接着,检测无线通信模块是否获取到第二位置信息;若获取到第二位置信息,则获取与第二位置信息对应的局部地图数据;若未获取到第二位置信息,则获取全局地图数据。First, when the navigation request is triggered, the locator is called and the wireless communication module is activated at the same time; then, it is detected whether the wireless communication module obtains the second position information; if the second position information is obtained, the local map data corresponding to the second position information is obtained; if the second position information is not obtained, the global map data is obtained.

本实施例中,考虑到在室外难以接收到无线电设备的无线电波信号,可以直接检测无线通信模块是否获取到第二位置信息,直接判断出用户所处的位置,进而确定出所需要获取的地图数据。In this embodiment, considering that it is difficult to receive radio wave signals of radio equipment outdoors, it is possible to directly detect whether the wireless communication module has acquired the second location information, directly determine the user's location, and then determine the map data that needs to be acquired.

采用本公开实施例提供的导航方法,通过在接收到导航请求时,调用终端的定位器,并激活终端的无线通信模块;检测无线通信模块是否获取到第二位置信息,来确定所需要获取的对应的地图数据,并根据获取的地图数据和位置信息,生成第一导航页面来为用户导航;而后,在实时获取的位置信息的类型发生变化时,获取与当前位置信息的类型对应的地图数据,并根据地图数据和当前位置信息来获取第二导航页面,以采用第二导航页面为用户继续导航,使得在导航场景切换时,无需用户手动切换导航软件来实现不同场景下的导航,提升导航服务的便利性和连贯性。The navigation method provided in the embodiment of the present disclosure is adopted. When a navigation request is received, the locator of the terminal is called and the wireless communication module of the terminal is activated; whether the wireless communication module obtains the second location information is detected to determine the corresponding map data that needs to be obtained, and a first navigation page is generated according to the obtained map data and location information to navigate for the user; then, when the type of location information obtained in real time changes, map data corresponding to the type of current location information is obtained, and a second navigation page is obtained according to the map data and the current location information, so as to continue navigation for the user using the second navigation page, so that when the navigation scene is switched, the user does not need to manually switch the navigation software to achieve navigation in different scenes, thereby improving the convenience and consistency of the navigation service.

下面,结合具体示例对本公开实施例提供的导航方法进行阐述:The following is an explanation of the navigation method provided by the embodiment of the present disclosure with reference to specific examples:

示例一:用户由园区的室内区域导航至室外区域。参照图3,图3示出了采用本公开实施例提供的导航方法由室内区域导航至室外区域的流程示意图,如图3所示,首先,在接收到目标区域的导航请求时,调用定位器,并激活无线通信模块,以获取位置信息。接着,检测无线通信模块是否接收到无线电波信号类型的位置信息。Example 1: A user navigates from an indoor area of a park to an outdoor area. Referring to FIG. 3 , FIG. 3 shows a schematic flow chart of navigating from an indoor area to an outdoor area using the navigation method provided by an embodiment of the present disclosure. As shown in FIG. 3 , first, upon receiving a navigation request for a target area, the locator is called and the wireless communication module is activated to obtain location information. Next, it is detected whether the wireless communication module receives location information of the radio wave signal type.

无线通信模块接收到无线电波信号类型的位置信息,则说明用户位于室内,此时,可以根据位置信息中多个无线电波信号的强度值,以及每个无线电设备的位置,确定出用户在室内的位置。同时,通过将位置信息携带的目标标识与地图数据中的预设标识匹配,确定出匹配上的目标预设标识,进而确定出目标预设标识对应的位置,由此,得到用户所处位置的局部地图数据。If the wireless communication module receives the location information of the radio wave signal type, it means that the user is indoors. At this time, the user's indoor location can be determined based on the strength values of multiple radio wave signals in the location information and the location of each radio device. At the same time, by matching the target identifier carried in the location information with the preset identifier in the map data, the matching target preset identifier is determined, and then the location corresponding to the target preset identifier is determined, thereby obtaining the local map data of the user's location.

之后,根据获取到的位置信息和局部地图数据,渲染出第一导航页面,以在室内区域为用户提供导航。Afterwards, a first navigation page is rendered based on the acquired location information and local map data to provide navigation for the user in the indoor area.

在用户从室内区域进入到室外区域时,接收到的位置信息从无线电波信号的位置信息变化为经纬度类型的位置信息,则根据经纬度类型的位置信息,获取园区的全局地图数据,并根据当前接收到的位置信息和全局地图数据,渲染出第二导航页面,进而终端显示页面由第一导航页面切换为第二导航页面,由此,通过第二导航页面在室外区域为用户提供到导航。When the user enters the outdoor area from the indoor area, the received location information changes from the location information of the radio wave signal to the location information of the longitude and latitude type. Then, the global map data of the park is obtained based on the longitude and latitude type location information, and the second navigation page is rendered based on the currently received location information and the global map data. Then, the terminal display page switches from the first navigation page to the second navigation page, thereby providing navigation for the user in the outdoor area through the second navigation page.

示例二:用户由园区的室外区域导航至室内区域。继续参照图3,首先,在接收到目标区域的导航请求时,调用定位器,并激活无线通信模块,以获取位置信息。接着,检测无线通信模块是否接收到无线电波信号类型的位置信息。Example 2: A user navigates from an outdoor area of a park to an indoor area. Continuing with FIG3 , first, upon receiving a navigation request to a target area, the locator is called and the wireless communication module is activated to obtain location information. Next, it is detected whether the wireless communication module receives location information of the radio wave signal type.

无线通信模块未接收到无线电波信号类型的位置信息,则说明用户位于室外区域,此时,获取园区的全局地图数据,并根据该全局地图数据和接收到的经纬度类型的位置信息,渲染得到第一导航页面,以通过第一导航页面在室外区域为用户提供的导航服务。If the wireless communication module does not receive location information of the radio wave signal type, it means that the user is located in an outdoor area. At this time, the global map data of the park is obtained, and the first navigation page is rendered based on the global map data and the received longitude and latitude type location information to provide navigation services to users in the outdoor area through the first navigation page.

在用户从室外区域进入到室内区域时,接收到的位置信息从经纬度类型的位置变化为无线电波信号类型的位置信息,则可以该位置信息中的强度值,确定出用户在室内区域的具体位置;以及,根据位置信息携带的目标标识,确定出用户所处位置对应的局部地图数据。When a user enters an indoor area from an outdoor area, the received location information changes from a longitude and latitude type location to a radio wave signal type location information. The intensity value in the location information can be used to determine the user's specific location in the indoor area; and, based on the target identifier carried in the location information, the local map data corresponding to the user's location can be determined.

之后,根据当前获取的位置信息和局部地图数据,渲染得到第二导航页面,并将第一导航页面切换为第二导航页面,以在室内区域继续为用户提供导航服务。Afterwards, a second navigation page is rendered based on the currently acquired location information and local map data, and the first navigation page is switched to the second navigation page to continue providing navigation services to the user in the indoor area.

基于同一发明构思,本公开实施例还提供一种导航系统,参照图4,图4示出了本公开实施例提供的导航系统的结构示意图,如图4所示,该导航系统应用于终端,具体可以包括:Based on the same inventive concept, an embodiment of the present disclosure further provides a navigation system. Referring to FIG. 4 , FIG. 4 shows a schematic diagram of the structure of the navigation system provided by an embodiment of the present disclosure. As shown in FIG. 4 , the navigation system is applied to a terminal and may specifically include:

第一应用以及嵌设在第一应用中的web渲染器;A first application and a web renderer embedded in the first application;

第一应用,用于响应于目标区域的导航请求,调用终端的定位器和无线通信模块,实时获取位置信息,并基于实时获取的位置信息和位置信息对应的类型,获取地图数据,并将地图数据和位置信息发送给web渲染器;The first application is used to respond to a navigation request of a target area, call a locator and a wireless communication module of the terminal, obtain location information in real time, obtain map data based on the location information obtained in real time and a type corresponding to the location information, and send the map data and the location information to a web renderer;

web渲染器,用于将地图数据和位置信息渲染成第一导航页面;A web renderer, for rendering the map data and the location information into a first navigation page;

第一应用,还用于在检测到位置信息的类型发生变化时,向web渲染器发送与变化后的类型和当前时刻获取的位置信息对应的新的地图数据;The first application is further configured to send new map data corresponding to the changed type and the location information obtained at the current moment to the web renderer when a change in the type of the location information is detected;

web渲染器,还用于将第一导航页面,切换为新的地图数据渲染出的第二导航页面;The web renderer is further used to switch the first navigation page to a second navigation page rendered by new map data;

其中,类型包括经纬度类型和无线电波信号类型,不同的类型对应目标区域的不同地图数据,地图数据包括描述目标区域全局的全局地图数据、和目标区域的局部区域的局部地图数据。The types include latitude and longitude types and radio wave signal types, different types correspond to different map data of the target area, and the map data include global map data describing the global target area and local map data of a local area of the target area.

其中,web渲染器可以是webview组件,其通过将输入的scr属性作为web页面的url地址来实现在第一应用中加载并显示网页,则可以将webview组件嵌设在第一应用中,以在第一应用显示地图并实现目标区域的导航过程。之后,在位置信息的类型发生变化时,webview注册hashchange事件,来实现从第一导航页面切换至第二导航页面,来实现不同场景下的导航。The web renderer may be a webview component, which uses the input scr attribute as the URL address of the web page to load and display the web page in the first application. The webview component may be embedded in the first application to display the map in the first application and realize the navigation process of the target area. Afterwards, when the type of location information changes, the webview registers a hashchange event to switch from the first navigation page to the second navigation page, thereby realizing navigation in different scenarios.

参照图5,图5示出了本公开实施例的导航过程中的数据流向图,如图5所示,在导航过程中,第一应用接收到经纬度类型的位置信息,或无线电波信号类型的位置信息,此时,其将地图url与位置信息拼接,发送至web渲染器,之后,web渲染器从地址栏获取发送的信息,并注册hashchange事件,以更新导航页面。Referring to Figure 5, Figure 5 shows a data flow diagram during the navigation process of an embodiment of the present disclosure. As shown in Figure 5, during the navigation process, the first application receives location information of the latitude and longitude type, or location information of the radio wave signal type. At this time, it splices the map URL with the location information and sends it to the web renderer. After that, the web renderer obtains the sent information from the address bar and registers the hashchange event to update the navigation page.

在一可选的实施例中,该导航系统还包括第二应用,第一应用嵌设在第二应用中;In an optional embodiment, the navigation system further includes a second application, and the first application is embedded in the second application;

第二应用,用于在检测导航请求被触发的时刻,激活第一应用以使第一应用响应于导航请求。The second application is used to activate the first application when detecting that the navigation request is triggered so that the first application responds to the navigation request.

本实施例中,第二应用可以是能够获取终端的定位信息的应用,则通过将第一应用嵌入第二应用中,使得第一应用能够获取GPS定位的经纬度信息。其中,可以是第二应用包括激活第一应用的控件,则在用户触发控件时,第二应用激活第一应用进行导航;也可以是第二应用能够对相关图像进行解析,并根据图像解析结果来激活第一应用。In this embodiment, the second application may be an application that can obtain the location information of the terminal. By embedding the first application in the second application, the first application can obtain the latitude and longitude information of GPS positioning. The second application may include a control for activating the first application. When the user triggers the control, the second application activates the first application for navigation. Alternatively, the second application may be able to parse the relevant image and activate the first application according to the image parsing result.

在一可选的实施例中,第二应用,具体用于响应于接收到的扫描请求,调用终端的图像采集装置,并获取图像采集装置所采集的标识码图像;In an optional embodiment, the second application is specifically used to call the image acquisition device of the terminal in response to the received scanning request, and obtain the identification code image acquired by the image acquisition device;

以及,对标识码图像进行解析,在解析结果表征为对目标区域进行导航时,激活第一应用。And, the identification code image is parsed, and when the parsing result indicates navigation to the target area, the first application is activated.

其中,第二应用可以包括扫描功能,则其可以在接收到扫描请求时,调用终端的图像采集装置采集标识码图像,进而若该标识码图像表征对目标区域进行导航,则激活第一应用进行导航。The second application may include a scanning function, and upon receiving a scanning request, it may call the image acquisition device of the terminal to acquire an identification code image, and then if the identification code image represents navigation to the target area, the first application is activated for navigation.

下面结合具体场景和导航系统,对本公开提供的导航方法进行阐述:The navigation method provided by the present disclosure is described below in combination with specific scenarios and navigation systems:

以用户在园区内导航为例,第一应用以小程序的形式嵌设于第二应用,web渲染器即webview组件嵌设在小程序中。在用户存在导航需求时,可以采用第二应用的扫描功能扫描标识码图像,以激活第一应用。Taking the user's navigation in the park as an example, the first application is embedded in the second application in the form of a small program, and the web renderer, i.e., the webview component, is embedded in the small program. When the user has a navigation need, the scanning function of the second application can be used to scan the identification code image to activate the first application.

在激活第一应用后,根据用户的导航需求,加载园区的全局地图数据和每个局部区域的局部地图数据。After the first application is activated, the global map data of the park and the local map data of each local area are loaded according to the navigation needs of the user.

之后,第一应用调用终端的定位器,并激活无线电通信模块,此时,检测无线通信模块是否获取到无线电波类型的位置信息。Afterwards, the first application calls the locator of the terminal and activates the radio communication module. At this time, it is detected whether the wireless communication module obtains the location information of the radio wave type.

若获取到无线电波类型的位置信息,则说明用户在室内,此时,可以根据位置信息中携带的无线电波设备标识,确定用户所在的位置,进而获取用户所在的位置对应的局部地图数据。接着,可以采用局部地图数据和当前得到的位置信息渲染得到第一导航页面。If the radio wave type location information is obtained, it means that the user is indoors. At this time, the user's location can be determined according to the radio wave device identifier carried in the location information, and then the local map data corresponding to the user's location can be obtained. Then, the local map data and the currently obtained location information can be used to render the first navigation page.

之后,若是用户从室内区域进入到室外区域,则第一应用接收到的位置信息从无线电波类型变化为经纬度类型,则可以根据经纬度类型的位置信息,获取园区的全局地图数据,之后,可以采用全局地图数据和当前位置信息渲染出第二导航页面,进而将第一导航页面切换为第二导航页面,继续为用户导航。Afterwards, if the user enters the outdoor area from the indoor area, the location information received by the first application changes from the radio wave type to the longitude and latitude type, and the global map data of the park can be obtained based on the longitude and latitude type location information. Afterwards, the second navigation page can be rendered using the global map data and the current location information, and then the first navigation page can be switched to the second navigation page to continue navigating for the user.

若未获取到无线电波类型的位置信息,则说明用户在室外,此时,可以根据获取到的经纬度类型的位置信息,获取园区的全局地图数据,进而采用全局地图数据和当前获取到的位置信息渲染得到第一导航页面。If the radio wave type location information is not obtained, it means that the user is outdoors. At this time, the global map data of the park can be obtained based on the obtained longitude and latitude type location information, and then the global map data and the currently obtained location information are used to render the first navigation page.

之后,若是用户从室外区域进入到室内区域,则第一应用接收到的位置信息从经纬度类型变化为无线电波类型,则可以根据无线电波类型的位置信息,确定用户的所处的局部位置,进而获取对应的局部地图数据,之后,可以采用该局部地图数据和当前位置信息渲染出第二导航页面,进而将第一导航页面切换为第二导航页面,继续为用户导航。Afterwards, if the user enters the indoor area from the outdoor area, the location information received by the first application changes from the latitude and longitude type to the radio wave type. The user's local location can be determined based on the radio wave type location information, and then the corresponding local map data can be obtained. Afterwards, the local map data and the current location information can be used to render a second navigation page, and then the first navigation page can be switched to the second navigation page to continue navigating for the user.

其中,导航页面的渲染过程可以通过web渲染器实现,web渲染器可以包括webview组件,则可以将地图网页的url地址作配置为webview组件的src属性,实现在第一应用中显示地图网页。之后,当用户的位置信息改变时,可以通过url地址的hash,则可以实现在地图网页中实时显示用户的当前位置。The rendering process of the navigation page can be implemented by a web renderer, and the web renderer can include a webview component. Then, the URL address of the map webpage can be configured as the src attribute of the webview component to display the map webpage in the first application. Afterwards, when the user's location information changes, the hash of the URL address can be used to display the user's current location in real time on the map webpage.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

以上对本公开所提供的一种导航方法及系统进行了详细介绍,本文中应用了具体个例对本公开的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本公开的方法及其核心思想;同时,对于本领域的一般技术人员,依据本公开的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本公开的限制。The above is a detailed introduction to a navigation method and system provided by the present disclosure. Specific examples are used in this article to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method of the present disclosure and its core idea. At the same time, for those skilled in the art, according to the idea of the present disclosure, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present disclosure.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本公开的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。References herein to "one embodiment," "embodiment," or "one or more embodiments" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present disclosure. In addition, please note that examples of the term "in one embodiment" herein do not necessarily all refer to the same embodiment.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本公开的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present disclosure can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本公开可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。In the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present disclosure may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

最后应说明的是:以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims (10)

1.一种导航方法,其特征在于,应用于终端,所述方法包括:1. A navigation method, characterized in that it is applied to a terminal, and the method comprises: 响应于目标区域的导航请求,基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,并基于所述地图数据和所述位置信息渲染出第一导航页面;In response to a navigation request of a target area, map data is acquired based on the position information acquired in real time and the type corresponding to the position information, and a first navigation page is rendered based on the map data and the position information; 在检测到所述位置信息的类型发生变化时,将所述第一导航页面切换为第二导航页面;其中,所述第二导航页面由当前时刻获取的位置信息、以及与变化后的类型对应的地图数据渲染得到;When a change in the type of the location information is detected, the first navigation page is switched to a second navigation page; wherein the second navigation page is rendered by the location information acquired at the current moment and map data corresponding to the changed type; 其中,所述类型包括经纬度类型和无线电波信号类型,不同的类型对应所述目标区域的不同地图数据,所述地图数据包括描述所述目标区域全局的全局地图数据、和所述目标区域的局部区域的局部地图数据。Among them, the types include longitude and latitude types and radio wave signal types, different types correspond to different map data of the target area, and the map data include global map data describing the global target area, and local map data of the local area of the target area. 2.根据权利要求1所述的导航方法,其特征在于,在所述类型由所述经纬度类型变化到所述无线电波信号类型的情况下,所述第一导航页面以三维模式渲染出所述全局地图数据,所述第二导航页面以二维模式渲染所述局部地图数据和所述当前时刻获取的位置信息;2. The navigation method according to claim 1, characterized in that, when the type changes from the latitude and longitude type to the radio wave signal type, the first navigation page renders the global map data in a three-dimensional mode, and the second navigation page renders the local map data and the location information obtained at the current moment in a two-dimensional mode; 在所述类型由所述无线电波信号类型变化到所述经纬度类型的情况下,所述第一导航页面以二维模式渲染出所述局部地图数据,所述第二导航页面以三维模式渲染所述全局地图数据和所述当前时刻获取的位置信息。When the type changes from the radio wave signal type to the longitude and latitude type, the first navigation page renders the local map data in a two-dimensional mode, and the second navigation page renders the global map data and the location information acquired at the current moment in a three-dimensional mode. 3.根据权利要求1所述的导航方法,其特征在于,所述基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,并基于所述地图数据和所述位置信息渲染出第一导航页面,包括;3. The navigation method according to claim 1, characterized in that the acquiring of map data based on the real-time acquired location information and the type corresponding to the location information, and rendering of the first navigation page based on the map data and the location information, comprises: 在所述类型为所述经纬度类型的情况下,获取所述全局地图数据,并在目标窗口中渲染所述全局地图数据和所述位置信息,得到所述第一导航页面;In the case where the type is the longitude and latitude type, acquiring the global map data, and rendering the global map data and the location information in a target window to obtain the first navigation page; 在所述类型为所述无线电波信号类型的情况下,获取与所述位置信息对应的局部地图数据,并在所述目标窗口中渲染所述局部地图数据和所述位置信息,得到所述第一导航页面。In a case where the type is the radio wave signal type, local map data corresponding to the location information is acquired, and the local map data and the location information are rendered in the target window to obtain the first navigation page. 4.根据权利要求3所述的导航方法,其特征在于,所述地图数据携带有多个预设标识以及与每个所述预设标识对应的位置,不同的预设标识标识不同的无线电设备;所述在所述类型为所述无线电波信号类型的情况下,获取与所述位置信息对应的局部地图数据,包括:4. The navigation method according to claim 3, characterized in that the map data carries a plurality of preset identifiers and a position corresponding to each of the preset identifiers, and different preset identifiers identify different radio devices; and when the type is the radio wave signal type, obtaining the local map data corresponding to the position information comprises: 从所述位置信息中解析出无线电波信号的强度值和目标标识;其中,所述强度值表征所述终端与所述目标区域中设置的无线电设备之间的距离大小;Parsing the strength value of the radio wave signal and the target identifier from the location information; wherein the strength value represents the distance between the terminal and the radio equipment set in the target area; 从多个所述预设标识中,确定与所述目标标识对应的目标预设标识,以及所述目标预设标识对应的目标位置;Determine, from the plurality of preset identifiers, a target preset identifier corresponding to the target identifier, and a target position corresponding to the target preset identifier; 获取所述目标位置所在的局部地图数据。Obtain local map data where the target location is located. 5.根据权利要求1所述的导航方法,其特征在于,所述基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,并基于所述地图数据和所述位置信息渲染出第一导航页面之前,所述方法还包括:5. The navigation method according to claim 1, characterized in that before acquiring map data based on the real-time acquired location information and the type corresponding to the location information, and rendering the first navigation page based on the map data and the location information, the method further comprises: 在所述导航请求被触发的时刻,下载并缓存所述目标区域中每个楼栋中每个楼层的局部地图数据;When the navigation request is triggered, download and cache local map data of each floor in each building in the target area; 所述基于所述地图数据和所述位置信息渲染出第一导航页面,包括:The rendering of a first navigation page based on the map data and the location information includes: 在所述类型为所述经纬度类型的情况下,从所述缓存中获取每个楼栋所包括的每个楼层的局部地图数据;In the case where the type is the latitude and longitude type, obtaining local map data of each floor included in each building from the cache; 将多个所述局部地图数据按照所属楼层堆叠,得到三维地图页面;Stacking the plurality of local map data according to the floors to which they belong to obtain a three-dimensional map page; 在所述三维地图页面中标记所述位置信息,得到三维模式的所述第一导航页面。The location information is marked in the three-dimensional map page to obtain the first navigation page in a three-dimensional mode. 6.根据权利要求1所述的导航方法,其特征在于,所述经纬度类型的位置信息通过以下步骤获取:6. The navigation method according to claim 1, wherein the location information of the latitude and longitude type is obtained by the following steps: 调用所述终端配置的定位器,通过所述定位器向第三方服务器获取所述经纬度类型的第一位置信息;Calling a locator configured in the terminal, and obtaining the first location information of the latitude and longitude type from a third-party server through the locator; 所述无线电波信号类型的位置信息通过以下步骤获取:The location information of the radio wave signal type is obtained by the following steps: 调用所述终端配置的无线通信模块,通过所述无线通信模块对所述目标区域中的无线电设备进行扫描,得到所述无线电波信号类型的第二位置信息。The wireless communication module configured in the terminal is called, and the radio equipment in the target area is scanned by the wireless communication module to obtain the second location information of the radio wave signal type. 7.根据权利要求6所述的导航方法,其特征在于,所述方法还包括:7. The navigation method according to claim 6, characterized in that the method further comprises: 在所述导航请求被触发的时刻,同时调用所述定位器,以及激活所述无线通信模块;When the navigation request is triggered, calling the locator and activating the wireless communication module at the same time; 检测所述无线通信模块是否获取到所述第二位置信息;detecting whether the wireless communication module acquires the second location information; 基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,包括:Acquiring map data based on the real-time acquired location information and the type corresponding to the location information includes: 若获取到所述第二位置信息,则获取与所述第二位置信息对应的局部地图数据;If the second location information is obtained, obtaining local map data corresponding to the second location information; 若未获取到所述第二位置信息,则获取所述全局地图数据。If the second location information is not obtained, the global map data is obtained. 8.一种导航系统,其特征在于,所述系统应用于终端,所述系统包括:第一应用以及嵌设在所述第一应用中的web渲染器;8. A navigation system, characterized in that the system is applied to a terminal, and the system comprises: a first application and a web renderer embedded in the first application; 所述第一应用,用于响应于目标区域的导航请求,调用所述终端的定位器和无线通信模块,实时获取位置信息,并基于实时获取的位置信息和所述位置信息对应的类型,获取地图数据,并将所述地图数据和所述位置信息发送给所述web渲染器;The first application is used to call the locator and the wireless communication module of the terminal in response to the navigation request of the target area, obtain the location information in real time, obtain the map data based on the location information obtained in real time and the type corresponding to the location information, and send the map data and the location information to the web renderer; 所述web渲染器,用于将所述地图数据和所述位置信息渲染成第一导航页面;The web renderer is used to render the map data and the location information into a first navigation page; 所述第一应用,还用于在检测到所述位置信息的类型发生变化时,向所述web渲染器发送与变化后的类型和当前时刻获取的位置信息对应的新的地图数据;The first application is further configured to send new map data corresponding to the changed type and the location information obtained at the current moment to the web renderer when detecting that the type of the location information has changed; 所述web渲染器,还用于将所述第一导航页面,切换为由所述新的地图数据渲染出的第二导航页面;The web renderer is further used to switch the first navigation page to a second navigation page rendered by the new map data; 其中,所述类型包括经纬度类型和无线电波信号类型,不同的类型对应所述目标区域的不同地图数据,所述地图数据包括描述所述目标区域全局的全局地图数据、和所述目标区域的局部区域的局部地图数据。Among them, the types include longitude and latitude types and radio wave signal types, different types correspond to different map data of the target area, and the map data include global map data describing the global target area and local map data of the local area of the target area. 9.根据权利要求8所述的导航系统,其特征在于,所述系统还包括第二应用,所述第一应用嵌设在所述第二应用中;9. The navigation system according to claim 8, characterized in that the system further comprises a second application, and the first application is embedded in the second application; 所述第二应用,用于在检测所述导航请求被触发的时刻,激活所述第一应用,以使所述第一应用响应所述导航请求。The second application is used to activate the first application when detecting that the navigation request is triggered, so that the first application responds to the navigation request. 10.根据权利要求9所述的系统,其特征在于,所述第二应用,具体用于响应于接收到的扫描请求,调用所述终端的图像采集装置,并获取所述图像采集装置所采集的标识码图像;10. The system according to claim 9, characterized in that the second application is specifically used to call the image acquisition device of the terminal in response to the received scanning request, and obtain the identification code image acquired by the image acquisition device; 以及,对所述标识码图像进行解析,在解析结果表征为对所述目标区域进行导航时,激活所述第一应用。And, the identification code image is parsed, and when the parsing result indicates navigation to the target area, the first application is activated.
CN202410545280.8A 2024-04-30 2024-04-30 A navigation method and system Pending CN118347488A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410545280.8A CN118347488A (en) 2024-04-30 2024-04-30 A navigation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410545280.8A CN118347488A (en) 2024-04-30 2024-04-30 A navigation method and system

Publications (1)

Publication Number Publication Date
CN118347488A true CN118347488A (en) 2024-07-16

Family

ID=91813947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410545280.8A Pending CN118347488A (en) 2024-04-30 2024-04-30 A navigation method and system

Country Status (1)

Country Link
CN (1) CN118347488A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120316363A (en) * 2025-06-16 2025-07-15 中环洁集团股份有限公司 Real-time trajectory data aggregation processing method, device, electronic device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120316363A (en) * 2025-06-16 2025-07-15 中环洁集团股份有限公司 Real-time trajectory data aggregation processing method, device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US6807571B2 (en) Information retrieval system with a search assist server
JP3608740B2 (en) Information processing system, terminal device, information processing method, information processing program, and computer-readable recording medium recording the information processing program
US9699373B2 (en) Providing navigation information to a point of interest on real-time street views using a mobile device
US9013505B1 (en) Mobile system representing virtual objects on live camera image
US8494768B2 (en) Navigation system, method and database using mobile devices
JP5451304B2 (en) Electronic signboard display control device, electronic signboard display control method, and electronic signboard display control program
US20070213043A1 (en) Method of finding person using mobile messenger service and systems thereof
KR101232864B1 (en) Method and system for providing peripheral information to mobile device
US20080153487A1 (en) User Defined Location Based Zones
CN118347488A (en) A navigation method and system
AU2008201380A1 (en) Search system, management server, mobile communication device, search method, and program
CN113132903A (en) Positioning navigation method, device, terminal, server, system and storage medium
CN106028448A (en) Positioning method, terminal equipment, server and system
JP2002116033A (en) Device and method for landmark guidance, information storage medium, and device and method for landmark registration
CN102902698A (en) Content providing method for mobile arithmetic device
JP4505465B2 (en) Service information providing method
WO2023142923A1 (en) Electronic map switching method, electronic map processing method, terminal, server, and storage medium
KR100601863B1 (en) Pedestrian navigation system and method through mobile communication network
KR101688033B1 (en) System and method for providing augumented reality information using video transmission
KR100726075B1 (en) Method and system for providing content including location information
CA2615321C (en) User defined location based zones
JP2014089098A (en) Information processing system, information processing terminal, information processing method, and program
JP4152799B2 (en) Wireless base station, mobile device and information providing system
JP2002340607A (en) Location guidance information providing system
JP2002277277A (en) Method and device for providing map data

Legal Events

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