[go: up one dir, main page]

CN103476003B - Geographic information storage method for mobile equipment and mobile equipment - Google Patents

Geographic information storage method for mobile equipment and mobile equipment Download PDF

Info

Publication number
CN103476003B
CN103476003B CN201310439925.1A CN201310439925A CN103476003B CN 103476003 B CN103476003 B CN 103476003B CN 201310439925 A CN201310439925 A CN 201310439925A CN 103476003 B CN103476003 B CN 103476003B
Authority
CN
China
Prior art keywords
latitude
longitude
area
segment
city
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310439925.1A
Other languages
Chinese (zh)
Other versions
CN103476003A (en
Inventor
董福源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310439925.1A priority Critical patent/CN103476003B/en
Publication of CN103476003A publication Critical patent/CN103476003A/en
Application granted granted Critical
Publication of CN103476003B publication Critical patent/CN103476003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Navigation (AREA)

Abstract

本发明提供了一种针对移动设备的地理信息存储方法及移动设备,该方法包括:将地址位置划分为经度片段和纬度片段;确定与每个经度片段和每个纬度片段所对应的区域以生成包含每个经度片段所对应区域的区域经度表,以及生成包含每个纬度片段所对应区域的区域纬度表;根据每个区域的地理形状,为每个区域建立经纬度信息表;将区域经度表、区域纬度表以及每个区域的经纬度信息表存储在移动设备中。通过本发明,在对地理信息进行存储时,能够简化地理信息的信息结构,进而减小了地理信息所包含的数据量,从而使得地理信息能够存储于现有的移动设备中。

The present invention provides a geographic information storage method for mobile devices and the mobile device, the method comprising: dividing an address location into longitude segments and latitude segments; determining an area corresponding to each longitude segment and each latitude segment to generate Contain the regional longitude table of the region corresponding to each longitude segment, and generate the regional latitude table containing the region corresponding to each latitude segment; according to the geographical shape of each region, establish a latitude and longitude information table for each region; combine the regional longitude table, The area latitude table and the latitude and longitude information table of each area are stored in the mobile device. Through the present invention, when storing geographic information, the information structure of geographic information can be simplified, thereby reducing the amount of data contained in geographic information, so that geographic information can be stored in existing mobile devices.

Description

针对移动设备的地理信息存储方法及移动设备Geographical information storage method and mobile device for mobile device

技术领域technical field

本发明涉及互联网技术领域,特别是涉及一种针对移动设备的地理信息存储方法及移动设备。The invention relates to the technical field of the Internet, in particular to a geographic information storage method for mobile equipment and the mobile equipment.

背景技术Background technique

目前,越来越多的移动设备(如手机、手持电脑等)都支持地图定位功能,使得用户可以通过移动设备的定位功能来得知当前所在的地理区域(例如:所在城市),这给用户出行提供了便利。At present, more and more mobile devices (such as mobile phones, handheld computers, etc.) support the map positioning function, so that users can know the current geographical area (for example: the city where they are) through the positioning function of the mobile device. Convenience is provided.

现有的移动设备在为用户进行地理区域定位时,通常采用如下方式:Existing mobile devices usually use the following methods when positioning users in geographical areas:

首先,利用移动设备中的GPS(Global Positioning System,全球定位系统)模块,通过接收卫星信号来获取用户当前位置的经纬度,并将获取的经纬度上报给地图服务商(如:Google地图、百度地图等)的服务器。First, use the GPS (Global Positioning System) module in the mobile device to obtain the latitude and longitude of the user's current location by receiving satellite signals, and report the obtained latitude and longitude to the map service provider (such as: Google Maps, Baidu Maps, etc. ) server.

之后,由服务器根据接收到的经纬度进行查询,得到用户当前所在的地理区域(例如:北京市海淀区),并将查询结果返回给移动设备,其中,服务器处都会存放一个地图数据库,用于根据经纬度对用户当前位置进行区域定位。Afterwards, the server queries according to the received latitude and longitude to obtain the current geographical area of the user (for example: Haidian District, Beijing), and returns the query result to the mobile device. The latitude and longitude are used for regional positioning of the user's current location.

但是,发明人发现,地图数据库是存放在服务器中的,故定位操作只能服务器来实现。然而,若想不依赖于网络而实现通过移动设备进行定位,就需要将服务器中的地图数据库移至到移动设备中,但是现有的移动设备的存储能力有限,难以存放数据量庞大的地图数据库。However, the inventor found that the map database is stored in the server, so the positioning operation can only be realized by the server. However, if you want to achieve positioning through mobile devices without relying on the network, you need to move the map database in the server to the mobile device. However, the storage capacity of existing mobile devices is limited, and it is difficult to store map databases with huge amounts of data. .

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的适于针对移动设备的地理信息存储方法及相应的移动设备。In view of the above problems, the present invention is proposed to provide a geographical information storage method suitable for mobile devices and corresponding mobile devices that overcome the above problems or at least partially solve the above problems.

依据本发明的一个方面,提供了一种针对移动设备的地理信息存储方法,其包括:According to one aspect of the present invention, a geographic information storage method for mobile devices is provided, which includes:

将地址位置划分为经度片段和纬度片段;Divide address locations into longitude segments and latitude segments;

确定与每个经度片段和每个纬度片段所对应的区域以生成包含每个经度片段所对应区域的区域经度表,以及生成包含每个纬度片段所对应区域的区域纬度表;determining the area corresponding to each longitude segment and each latitude segment to generate an area longitude table including the area corresponding to each longitude segment, and generating an area latitude table including the area corresponding to each latitude segment;

根据每个区域的地理形状,为每个区域建立经纬度信息表;According to the geographical shape of each area, establish a latitude and longitude information table for each area;

将区域经度表、区域纬度表以及每个区域的经纬度信息表存储在移动设备中。The area longitude table, the area latitude table and the longitude and latitude information table of each area are stored in the mobile device.

可选地,将地址位置划分为经度片段和纬度片段,包括:Optionally, divide the address location into longitude and latitude segments, including:

按照特定粒度将经度进行均等划分,得到每个经度片段,及按照特定粒度将纬度进行均等划分,得到每个纬度片段。The longitude is equally divided according to a specific granularity to obtain each longitude segment, and the latitude is equally divided according to a specific granularity to obtain each latitude segment.

可选地,特定粒度的范围设定为一度。Optionally, the range for a particular particle size is set to one degree.

可选地,该还包括:Optionally, this also includes:

给各个区域分配唯一区域编码,将生成的区域经度表、区域纬度表及每个经纬度信息表中的区域以预先分配的唯一区域编码来标识。Assign a unique area code to each area, and identify the area in the generated area longitude table, area latitude table and each longitude and latitude information table with a pre-assigned unique area code.

可选地,根据每个区域的地理形状,为每个区域建立经纬度信息表,包括:Optionally, according to the geographic shape of each region, a latitude and longitude information table is established for each region, including:

对于每个区域的地理形状而言,将其划分为若干个任意大小的连续图形板块,其中,若干个连续图形板块构成了该区域的地理形状;For the geographical shape of each region, it is divided into several continuous graphic blocks of any size, among which, several continuous graphic blocks constitute the geographical shape of the region;

在每个图形板块内获取两点,分别记录该两点的经纬度,作为该图形板块的经纬度信息;Obtain two points in each graphic block, respectively record the latitude and longitude of the two points as the latitude and longitude information of the graphic block;

将该区域中所有图形板块的经纬度信息进行组合,得到该区域的经纬度信息表。Combining the latitude and longitude information of all the graphics plates in the area to obtain the latitude and longitude information table of the area.

可选地,图形板块为形状是矩形的矩形板块。Optionally, the graphic block is a rectangular block in shape.

可选地,在每个图形板块内获取两点,包括:Optionally, get two points within each graph tile, including:

在每个矩形板块中选取左上顶点和右下顶点。Select the upper left and lower right vertices in each rectangular plate.

依据本发明的一个方面,还提供一种移动设备,其包括:According to an aspect of the present invention, a mobile device is also provided, which includes:

片段划分器,配置为将地址位置划分为经度片段和纬度片段;a segment divider configured to divide an address location into longitude segments and latitude segments;

经度表生成器,配置为确定与每个经度片段所对应的区域,生成包含每个经度片段所对应区域的区域经度表;a longitude table generator configured to determine the area corresponding to each longitude segment, and generate an area longitude table including the area corresponding to each longitude segment;

纬度表生成器,配置为确定与每个纬度片段所对应的区域,生成包含每个纬度片段所对应区域的区域纬度表;a latitude table generator configured to determine the area corresponding to each latitude segment, and generate an area latitude table including the area corresponding to each latitude segment;

经纬度信息表生成器,配置为根据每个区域的地理形状,为每个区域建立经纬度信息表;A latitude and longitude information table generator configured to create a latitude and longitude information table for each region according to the geographic shape of each region;

数据库,配置为将区域经度表、区域纬度表以及每个区域的经纬度信息表进行存储。The database is configured to store the regional longitude table, the regional latitude table and the latitude and longitude information table of each region.

可选地,片段划分器还配置为:Optionally, the fragment divider is also configured to:

按照特定粒度将经度进行均等划分,得到每个经度片段,及按照特定粒度将纬度进行均等划分,得到每个纬度片段。The longitude is equally divided according to a specific granularity to obtain each longitude segment, and the latitude is equally divided according to a specific granularity to obtain each latitude segment.

可选地,特定粒度的范围设定为一度。Optionally, the range for a particular particle size is set to one degree.

可选地,该设备还包括:Optionally, the device also includes:

编码分配器,配置为给各个区域分配唯一区域编码,将生成的区域经度表、区域纬度表及每个经纬度信息表中的区域以预先分配的唯一区域编码来标识。The code allocator is configured to assign a unique area code to each area, and identifies the generated area longitude table, area latitude table and each area in the longitude and latitude information table with a pre-assigned unique area code.

可选地,经纬度信息表生成器,包括:Optionally, the latitude and longitude information table generator includes:

板块划分单元,配置为对于每个区域的地理形状而言,将其划分为若干个任意大小的连续图形板块,其中,若干个连续图形板块构成了该区域的地理形状;The plate division unit is configured to divide the geographical shape of each region into several continuous graphic plates of any size, wherein the plurality of continuous graphic plates constitute the geographical shape of the area;

经纬度记录单元,配置为在每个图形板块内获取两点,分别记录该两点的经纬度,作为该图形板块的经纬度信息;The latitude and longitude recording unit is configured to obtain two points in each graphic block, and record the latitude and longitude of the two points respectively as the latitude and longitude information of the graphic block;

组合单元,配置为将该区域中所有图形板块的经纬度信息进行组合,得到该区域的经纬度信息表。The combination unit is configured to combine the latitude and longitude information of all the graphics plates in the area to obtain the latitude and longitude information table of the area.

可选地,板块划分单元所划分的图形板块为形状是矩形的矩形板块。Optionally, the graphic blocks divided by the block dividing unit are rectangular blocks in shape.

可选地,经纬度记录单元还配置为在每个矩形板块中选取左上顶点和右下顶点。Optionally, the longitude-latitude recording unit is further configured to select the upper left vertex and the lower right vertex in each rectangular block.

本发明提供了一种针对移动设备的地理信息存储方法及移动设备,通过本发明,在对地理信息进行存储时,能够简化地理信息的信息结构,进而减小了地理信息所包含的数据量,从而使得地理信息能够存储于现有的移动设备中。以便于当用户通过移动设备来触发定位操作时,移动设备能够根据所存储的地理信息定位到目标点(用户想要定位的地理位置)所属的区域。The present invention provides a geographic information storage method for mobile devices and the mobile device. Through the present invention, when storing geographic information, the information structure of geographic information can be simplified, thereby reducing the amount of data contained in geographic information. This enables geographic information to be stored in existing mobile devices. So that when the user triggers the positioning operation through the mobile device, the mobile device can locate the area to which the target point (the geographic location that the user wants to locate) belongs to according to the stored geographical information.

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

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:

图1是根据本发明一个实施例的一种针对移动设备的地理信息存储方法流程图;Fig. 1 is a flow chart of a geographical information storage method for mobile devices according to an embodiment of the present invention;

图2是根据本发明一个实施例的一种针对移动设备的地理信息存储具体方法流程图;Fig. 2 is a flow chart of a specific method for storing geographic information for mobile devices according to an embodiment of the present invention;

图3是根据本发明一个实施例的城市地理形状示意图;Fig. 3 is a schematic diagram of urban geographic shapes according to an embodiment of the present invention;

图4是根据本发明一个实施例的以若干个图形板块表示的城市地理形状示意图;Fig. 4 is a schematic diagram of urban geographic shapes represented by several graphic plates according to an embodiment of the present invention;

图5是根据本发明一个实施例的城市定位的方法流程图;Fig. 5 is a flow chart of a method for city positioning according to an embodiment of the present invention;

图6是根据本发明一个实施例的用于存储地理信息的移动设备结构图。Fig. 6 is a structural diagram of a mobile device for storing geographic information according to an embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应该被这里阐述的实施例所限制。相反,提供这些实施例是为了能够透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure can be thoroughly understood, and will fully convey the scope of this disclosure to those skilled in the art.

实施例一Embodiment one

本发明实施例提供了一种针对移动设备的地理信息存储方法。该方法对用于存储地理信息的移动设备进行了改进。例如,本实施例中的设备可以为PC(Personal Computer,个人计算机)、手机、手持电脑等移动设备。An embodiment of the present invention provides a geographic information storage method for mobile devices. The method improves on mobile devices for storing geographic information. For example, the device in this embodiment may be a mobile device such as a PC (Personal Computer, personal computer), a mobile phone, or a handheld computer.

图1是根据本发明一个实施例的一种针对移动设备的地理信息存储方法流程图。该方法具体包括步骤S102至S108。Fig. 1 is a flowchart of a geographic information storage method for mobile devices according to an embodiment of the present invention. The method specifically includes steps S102 to S108.

S102,将地址位置划分为经度片段和纬度片段。S102. Divide the address location into longitude segments and latitude segments.

S104,确定与每个经度片段和每个纬度片段所对应的区域以生成包含每个经度片段所对应区域的区域经度表,以及生成包含每个纬度片段所对应区域的区域纬度表。S104. Determine the area corresponding to each longitude segment and each latitude segment to generate an area longitude table including the area corresponding to each longitude segment, and generate an area latitude table including the area corresponding to each latitude segment.

S106,根据每个区域的地理形状,为每个区域建立经纬度信息表。S106. Establish a latitude and longitude information table for each area according to the geographic shape of each area.

S108,将区域经度表、区域纬度表以及每个区域的经纬度信息表存储在移动设备中。S108. Store the area longitude table, the area latitude table, and the latitude and longitude information table of each area in the mobile device.

由上述可知,上面实施例所提供的技术方案在对地理信息进行存储时,简化了地理信息的信息结构,进而减小了地理信息所包含的数据量,从而使得地理信息能够存储于现有的移动设备中。以便于当用户通过移动设备来触发定位操作时,移动设备能够根据所存储的地理信息定位到目标点(用户想要定位的地理位置)所属的区域。It can be seen from the above that the technical solution provided by the above embodiment simplifies the information structure of geographic information when storing geographic information, thereby reducing the amount of data contained in geographic information, so that geographic information can be stored in existing in the mobile device. So that when the user triggers the positioning operation through the mobile device, the mobile device can locate the area to which the target point (the geographic location that the user wants to locate) belongs to according to the stored geographic information.

实施例二Embodiment two

本实施例为本发明的一个具体应用场景,通过本实施例,能够更加清楚、具体地阐述本发明所提供的方法。This embodiment is a specific application scenario of the present invention. Through this embodiment, the method provided by the present invention can be described more clearly and specifically.

在本实施例中,所提及的区域可以为城市(如:河北省唐山市、北京市),或者为地区(如:北京市海淀区)等,具体可以根据用户需求来设定。区域所代表的地理级别越小,说明所存储的地理信息越详细,以便于移动设备在后续的定位过程中得到的定位结果越精确。为了详细介绍本发明构思,下面,以区域为城市为例对本发明实施例提供的方法进行具体介绍。In this embodiment, the mentioned area may be a city (eg, Tangshan City, Hebei Province, Beijing), or a region (eg: Haidian District, Beijing), etc., which may be specifically set according to user needs. The smaller the geographic level represented by the area, the more detailed the stored geographic information, so that the mobile device can obtain more accurate positioning results in the subsequent positioning process. In order to introduce the concept of the present invention in detail, below, the method provided by the embodiment of the present invention will be specifically introduced by taking the region as an example of a city.

图2示出了根据本发明一个实施例的一种针对移动设备的地理信息存储具体方法流程图。该方法包括步骤S202至步骤S212,下面对本该方法进行具体介绍。Fig. 2 shows a flow chart of a specific method for storing geographical information on a mobile device according to an embodiment of the present invention. The method includes step S202 to step S212, and the method will be described in detail below.

一般情况下,在实现地理信息存储时,移动设备会对各城市的名称进行至少一次地存储,这将会占用移动设备较多的存储空间。为了减少在存储城市名称时对移动设备存储空间的占用,首先执行步骤S202。在步骤S202中,为每个城市分配一个唯一城市编码,并存储每个城市与唯一城市编码的对应关系,得到城市编码表。本实施例中所建立的城市编码表具体可以参见如下表一所示。Generally, when implementing geographic information storage, the mobile device will store the names of each city at least once, which will take up a lot of storage space on the mobile device. In order to reduce the occupation of the storage space of the mobile device when storing the city name, step S202 is first performed. In step S202, a unique city code is assigned to each city, and the corresponding relationship between each city and the unique city code is stored to obtain a city code table. The city code table established in this embodiment can be specifically referred to in Table 1 below.

表一Table I

城市名称city name 城市编码city code 11 北京Beijing 1000000110000001 22 上海Shanghai 1000000210000002 33 深圳Shenzhen 1000000310000003

在建立城市编码表之后,移动设备在对城市名称进行存储时,只存储该城市的唯一编码即可,大大节约了移动设备的存储空间。需要说明的是,如果移动设备的存储空间及处理能力能够满足一定要求,则可以不通过步骤S202来生成城市编码表,而直接将城市的名称进行存储即可。After the city code list is established, when the mobile device stores the city name, it only needs to store the unique code of the city, which greatly saves the storage space of the mobile device. It should be noted that if the storage space and processing capability of the mobile device can meet certain requirements, the city code table may not be generated through step S202, but the name of the city may be stored directly.

在通过步骤S202建立了城市编码表之后,接着执行步骤S204,即按照特定粒度将经度进行均等划分,得到每个经度片段,及按照特定粒度将纬度进行均等划分,得到每个纬度片段。在步骤S204中,为了方便进行统计,可以将每一度作为特定粒度对经、纬度进行片段划分,最终得到的经度片段为360份,得到的纬度片段也为360份,当然还可以根据具体场景来选择不同的特定粒度来对经纬度进行片段划分。需要说明的是,在对经度和纬度进行片段划分时,并未存在先后顺序关系。其中,步骤S204所得到的经度片段用于步骤S206中生成城市经度表,而步骤S208所得到的纬度片段用于步骤S208中生成城市纬度表。下面分别对步骤S206和步骤S208进行具体描述。After the city code table is established in step S202, then step S204 is executed, that is, the longitude is equally divided according to a specific granularity to obtain each longitude segment, and the latitude is equally divided according to a specific granularity to obtain each latitude segment. In step S204, for the convenience of statistics, each degree can be used as a specific granularity to divide the longitude and latitude into segments, and finally the obtained longitude segment is 360 parts, and the obtained latitude segment is also 360 parts. Of course, it can also be determined according to the specific scene. Choose a different specific granularity to segment the latitude and longitude. It should be noted that, when segmenting the longitude and latitude, there is no sequence relationship. Wherein, the longitude segment obtained in step S204 is used to generate the city longitude table in step S206, and the latitude segment obtained in step S208 is used to generate the city latitude table in step S208. Step S206 and step S208 will be specifically described below.

在步骤S206中,生成城市经度表。可选地,在生成城市经度表时,首先要确定与每个经度片段所对应的城市(该城市地理位置的任意部分在该经度片段范围内),生成包含每个经度片段所对应城市的城市经度表。In step S206, a city longitude table is generated. Optionally, when generating the city longitude table, first determine the city corresponding to each longitude segment (any part of the city's geographic location is within the range of the longitude segment), and generate a city containing the city corresponding to each longitude segment longitude table.

为了更直观地体现城市经度表的内容,在本发明的一个实例中,例如,城市“北京”的地理位置所占的经度范围为东经115°25’至117°30’,则根据上述的分析可知,城市“北京”占有115°、116°、117°三个经度片段。此时,生成的经度表的一部分内容可如表二所示。In order to reflect the content of the city longitude table more intuitively, in an example of the present invention, for example, the longitude range occupied by the geographical location of the city "Beijing" is 115°25' to 117°30' east longitude, then according to the above analysis It can be seen that the city "Beijing" occupies three longitude segments of 115°, 116°, and 117°. At this time, part of the generated longitude table can be shown in Table 2.

表二Table II

经度片段longitude fragment 城市集合city collection 东经115°115°E 北京、德州、济宁…Beijing, Dezhou, Jining… 东经116°116°E 北京、济南、徐州…Beijing, Jinan, Xuzhou… 东经117°117°E 北京、济南、天津…Beijing, Jinan, Tianjin…

在步骤S208中,生成城市纬度表。可选地,在生成城市纬度表时,首先要确定与每个纬度片段所对应的城市(该城市地理位置的任意部分在该纬度片段范围内),生成包含每个纬度片段所对应城市的城市纬度表。In step S208, a city latitude table is generated. Optionally, when generating the city latitude table, first determine the city corresponding to each latitude segment (any part of the city's geographic location is within the range of the latitude segment), and generate a city containing the city corresponding to each latitude segment latitude table.

为了更直观地体现城市纬度表的内容,在本发明的一个实例中,例如,城市“北京”的地理位置所占的纬度范围为北纬39°26’至41°03’,则根据上述的分析可知,城市“北京”占有39°、40°、41°三个纬度片段。此时,生成的纬度表的一部分内容可如表三所示。In order to reflect the content of the city latitude table more intuitively, in an example of the present invention, for example, the latitude range occupied by the geographic location of the city "Beijing" is 39 ° 26' to 41 ° 03' north latitude, then according to the above analysis It can be seen that the city "Beijing" occupies three latitude segments of 39°, 40°, and 41°. At this point, part of the generated latitude table can be shown in Table 3.

表三Table three

纬度片段latitude fragment 城市集合city collection 北纬39°39° north latitude 北京、天津、唐山…Beijing, Tianjin, Tangshan… 北纬40°40° north latitude 北京、大同、唐山…Beijing, Datong, Tangshan... 北纬41°41° north latitude 北京、张家口、承德…Beijing, Zhangjiakou, Chengde...

上述介绍了生成城市经度表和城市纬度表的过程,值得说明的是,本实施例中,城市经度表和城市纬度表的建立顺序只是一种优选的方式,城市纬度表也可以在城市经度表之前建立,也可以同城市经度表一同建立。The above has introduced the process of generating the city longitude table and the city latitude table. It is worth noting that, in this embodiment, the establishment order of the city longitude table and the city latitude table is only a preferred mode, and the city latitude table can also be included in the city longitude table. It was created before, and it can also be created together with the city longitude table.

在生成城市经度表和城市纬度表之后,继续执行步骤S210。在步骤S210中,根据每个区域的地理形状,为每个城市建立经纬度信息表。本实施例中,步骤S210在为每个城市建立经纬度信息表时所采取的方式均相同。现以城市“北京”为对象,介绍建立城市经纬度信息表的过程。其具体可以通过如下两个阶段进行:After the city longitude table and the city latitude table are generated, step S210 is continued. In step S210, according to the geographic shape of each region, a latitude and longitude information table is established for each city. In this embodiment, the method adopted in step S210 when establishing the latitude and longitude information table for each city is the same. Taking the city "Beijing" as an object, the process of establishing the city longitude and latitude information table is introduced. Specifically, it can be carried out through the following two stages:

1)将北京的地理形状划分为若干个任意大小的连续图形板块,这些图形板块可以为任意形状。本实施例中,将城市地理形状划分成的图形板块越多,所生成的地理信息越详细,在后续进行定位时,获取的定位结果就越准确。为了更直观地表示划分成图形板块后的城市地理形状,本实施例提供了图3和图4。图3是根据本发明一个实施例的城市地理形状示意图。图4是根据本发明一个实施例的以若干个图形板块表示的城市地理形状示意图。本发明实施例为了方便记录图形板块的经纬度信息,可选地,如图4所示,步骤S210可以采用矩形板块的形式对城市“北京”的地理形状进行划分,其中,可以将城市中心处较为规则的部分划分为较大的矩形板块,而将城市边缘处较为不规则的部分划分为较小的矩形板块,这样使得划分后的矩形板块能够较全面地包含该城市地理形状,避免对边缘处进行划分时的遗漏。1) Divide the geographic shape of Beijing into a number of continuous graphic blocks of arbitrary size, and these graphic blocks can be of any shape. In this embodiment, the more graphic blocks the geographical shape of the city is divided into, the more detailed the generated geographical information will be, and the more accurate the obtained positioning result will be when performing subsequent positioning. In order to more intuitively represent the geographical shape of the city divided into graphic blocks, this embodiment provides Figure 3 and Figure 4 . Fig. 3 is a schematic diagram of the geographic shape of a city according to an embodiment of the present invention. Fig. 4 is a schematic diagram of urban geographic shapes represented by several graphic blocks according to an embodiment of the present invention. In order to facilitate the recording of latitude and longitude information of graphic blocks in this embodiment of the present invention, optionally, as shown in FIG. The regular part is divided into larger rectangular plates, and the more irregular part at the edge of the city is divided into smaller rectangular plates, so that the divided rectangular plates can comprehensively contain the geographical shape of the city, avoiding the Omissions when doing divisions.

2)在划分后的每个图形板块中分别获取两点,并记录该两点的经纬度作为该图形板块的经纬度信息。本实施例还以图4为例对图形板块的经纬度信息的获取进行举例说明。如图4所示,步骤S210采用矩形板块对城市地理形状进行划分,所以,在图形板块中获取的两点可以为左上顶点和右下顶点。之后,再将每个图形板块的经纬度信息进行组合,即得到该城市的经纬度信息表。本实施例中,假设,图4中的两个矩形板块的经纬度信息为:[115.35(左上角经度),41.05(左上角纬度),117.02(右下角经度),40.58(右下角纬度)]和[116.78(左上角经度),117.56(左上角纬度),40.58(右下角经度),40.12(右下角纬度)],此时,城市经纬度信息表可如表四所示。2) Obtain two points in each divided graphic block, and record the latitude and longitude of the two points as the latitude and longitude information of the graphic block. This embodiment also uses FIG. 4 as an example to illustrate the acquisition of the latitude and longitude information of the graphic block. As shown in FIG. 4 , step S210 divides the geographic shape of the city using a rectangular plate, so the two points obtained in the graphic plate can be the upper left vertex and the lower right vertex. Afterwards, the latitude and longitude information of each graphic block is combined to obtain the latitude and longitude information table of the city. In the present embodiment, it is assumed that the latitude and longitude information of the two rectangular plates in Fig. 4 is: [115.35 (longitude of the upper left corner), 41.05 (latitude of the upper left corner), 117.02 (longitude of the lower right corner), 40.58 (latitude of the lower right corner)] and [116.78 (the longitude of the upper left corner), 117.56 (the latitude of the upper left corner), 40.58 (the longitude of the lower right corner), 40.12 (the latitude of the lower right corner)], at this moment, the city longitude and latitude information table can be as shown in table four.

表四Table four

城市city 经纬度信息latitude and longitude information 北京Beijing [115.35,41.05,117.02,40.58],[116.78,117.56,40.58,40.12]…[115.35,41.05,117.02,40.58],[116.78,117.56,40.58,40.12]…

在建立了上述城市经度表、城市纬度表和每个城市的经纬度信息表之后,继续执行步骤S212。在步骤S212中,将上述生成的城市经度表、城市纬度表以及每个城市的经纬度信息表作为地理信息存储在移动设备中。可选地,城市经度表、城市纬度表以及每个城市的经纬度信息表可以以一个数据库的形式进行存储。After the above-mentioned city longitude table, city latitude table and each city's longitude and latitude information table are established, step S212 is continued. In step S212, the above generated city longitude table, city latitude table, and each city's longitude and latitude information table are stored in the mobile device as geographical information. Optionally, the city longitude table, the city latitude table and the longitude and latitude information table of each city may be stored in the form of a database.

结合上述步骤S202至步骤S212,本实施例详细介绍了针对移动设备的地理信息存储方法。本实施例仅以城市为例进行了说明,当然,本实施例还可以通过上述方法来实现对任何地理级别的区域进行地理信息的存储。Combining with the above step S202 to step S212, this embodiment introduces in detail the geographic information storage method for the mobile device. This embodiment only uses a city as an example for illustration. Of course, this embodiment can also implement the storage of geographic information for regions of any geographic level through the above method.

根据本实施例所提供的方法,在对地理信息进行存储时,能够简化地理信息的信息结构,进而减小了地理信息所包含的数据量,从而使得地理信息能够存储于现有的移动设备中。以便于当用户通过移动设备来触发定位操作时,移动设备能够根据所存储的地理信息定位到目标点(用户想要定位的地理位置)所属的区域。According to the method provided in this embodiment, when storing geographic information, the information structure of geographic information can be simplified, thereby reducing the amount of data contained in geographic information, so that geographic information can be stored in existing mobile devices . So that when the user triggers the positioning operation through the mobile device, the mobile device can locate the area to which the target point (the geographic location that the user wants to locate) belongs to according to the stored geographical information.

下面具体介绍移动设备根据所存储的地理信息定位目标点所属区域的方法。本实施例中,仍以区域为城市为例对本发明实施例提供的方法进行具体介绍。在对目标点进行定位操作时,采取的发明构思为:确定目标点的经纬度,并在地理信息中查找与目标点的经纬度对应的至少一个城市,生成由查找到的至少一个区域组成的城市集合,再根据城市集合来定位目标点所属的城市。为了介绍本发明构思,本实施例结合图5来进行详细描述。The following specifically introduces a method for the mobile device to locate the area to which the target point belongs according to the stored geographic information. In this embodiment, the method provided by the embodiment of the present invention is still introduced in detail by taking the region as a city as an example. When locating the target point, the inventive concept adopted is: determine the latitude and longitude of the target point, and search for at least one city corresponding to the longitude and latitude of the target point in the geographic information, and generate a city set composed of at least one region found , and then locate the city to which the target point belongs according to the city set. In order to introduce the concept of the present invention, this embodiment is described in detail in conjunction with FIG. 5 .

图5示出了根据本发明一个实施例的城市定位的方法流程图。参见图5,该方法包括步骤S502至S516。在用户通过移动设备触发了对目标点的定位请求之后,进入步骤S502。在步骤S502中,确定目标点的经纬度。可选地,步骤S502可以通过移动设备中的GPS模块或者内置一个GPS模块的器件来实现确定目标点的经纬度。Fig. 5 shows a flowchart of a method for city positioning according to an embodiment of the present invention. Referring to Fig. 5, the method includes steps S502 to S516. After the user triggers a positioning request for the target point through the mobile device, go to step S502. In step S502, determine the latitude and longitude of the target point. Optionally, step S502 may be implemented by using a GPS module in the mobile device or a device with a built-in GPS module to determine the latitude and longitude of the target point.

接着进入步骤S504。在步骤S504中,根据特定粒度确定目标点的经度值所属的经度片段,以及目标点的纬度值所属的纬度片段。在本发明的一个实施例中,如果步骤S502中获取的目标点经纬度为(116.78,40.35),则步骤S504确定目标点的经度值116.78在116经度片段上,且确定目标点的纬度40.35在40纬度片段上。Then enter step S504. In step S504, the longitude segment to which the longitude value of the target point belongs and the latitude segment to which the latitude value of the target point belongs are determined according to a specific granularity. In one embodiment of the present invention, if the latitude and longitude of the target point obtained in step S502 is (116.78, 40.35), then step S504 determines that the longitude value 116.78 of the target point is on the 116 longitude segment, and determines that the latitude 40.35 of the target point is at 40 on the latitude fragment.

在确定了目标点经纬度所属的经纬度片段之后,由步骤S506来在地理信息存储的城市经度表中查找与该经度片段对应的所有城市,将其作为第一城市小组,并在地理信息存储的城市纬度表中查找与该纬度片段对应的所有城市,将其作为第二城市小组。之后,触发步骤S508执行将步骤S506中查找得到的第一城市小组和第二城市小组中的交集城市提取出来,作为城市集合的操作。可选地,在本发明的一个实施例中,以确定目标点的经度值在116经度片段上,确定目标点的纬度在40纬度片段上为例,假设,116经度片段所对应的第一城市小组包括“北京、济南、徐州、唐山等”,40纬度片段所对应的第二城市小组包括“北京、大同、唐山等”。此时,步骤S508所获取的交集城市中至少包括了“北京”和“唐山”。After determining the latitude and longitude segment to which the target point's latitude and longitude belongs, step S506 searches for all cities corresponding to the longitude segment in the city longitude table stored in the geographic information, and uses it as the first city group, and in the city stored in the geographic information Find all the cities corresponding to the latitude segment in the latitude table, and use it as the second city group. Afterwards, step S508 is triggered to extract the intersection cities of the first city group and the second city group found in step S506 as a city set. Optionally, in one embodiment of the present invention, taking the longitude value of the target point on the 116 longitude segment and the latitude of the target point on the 40 latitude segment as an example, it is assumed that the first city corresponding to the 116 longitude segment The group includes "Beijing, Jinan, Xuzhou, Tangshan, etc.", and the second city group corresponding to the 40-latitude segment includes "Beijing, Datong, Tangshan, etc.". At this time, the intersection cities obtained in step S508 include at least "Beijing" and "Tangshan".

在获取了城市集合之后,继续执行步骤S510。在步骤S510中,统计城市集合中包括的城市个数。当步骤S510统计得到城市集合为空集时,触发步骤S512执行确定目标点所属城市的操作,此时,步骤S512确认目标点无所属城市,这时,该目标点可能处于海洋、沙漠、山峰等无所属城市的地理位置。After the city set is acquired, continue to execute step S510. In step S510, count the number of cities included in the city set. When the statistics of step S510 show that the city set is empty, trigger step S512 to execute the operation of determining the city to which the target point belongs. At this time, step S512 confirms that the target point has no city to which it belongs. At this time, the target point may be located in oceans, deserts, mountains, etc. The geographical location of the city without ownership.

当步骤S510统计得到城市集合中仅包含一个城市时,触发步骤S514执行确定目标点所属城市的操作,此时,步骤S514将城市集合中包含的该城市确定为目标点所属的城市。When step S510 shows that only one city is included in the city set, step S514 is triggered to execute the operation of determining the city to which the target point belongs. At this time, step S514 determines the city included in the city set as the city to which the target point belongs.

当步骤S510统计得到城市集合中包含至少两个城市时,触发步骤S516执行确定目标点所属城市的操作,此时,步骤S516将至少两个城市中的一个城市定位为目标点所属的城市。When step S510 shows that the city set contains at least two cities, step S516 is triggered to determine the city to which the target point belongs. At this time, step S516 locates one of the at least two cities as the city to which the target point belongs.

可选地,步骤S516在执行时,可以在地理信息中获取城市集合中每个城市的经纬度信息表,根据获取的经纬度信息表定位一个城市作为目标点所属的城市。其定位原理就是通过城市经纬度信息表,在城市集合中确定目标点在哪个城市的地理区域范围内,就将该城市定位为目标点所属的城市。本实施例中,假设,城市集合中只包括了“北京”和“唐山”两个城市。在具体实现时,步骤S516首先会在城市集合中任意选取一个城市,例如,选取了“北京”,接着在地理信息中“北京”的经纬度信息表中取出每个图形板块的经纬度信息。之后,步骤S516判断目标点是否存在于“北京”的任意一个图形板块内。若存在,则说明目标点处于“北京”的地理区域范围内,此时,“北京”为目标点的所属城市,若不存在,则说明“北京”不是目标点的所属城市。这时,继续在城市集合中取出另一个城市“唐山”,重复根据上述方式来判断目标点是否存在于“唐山”的任意一个图形板块内的操作。若存在,则说明目标点处于“唐山”的地理区域范围内,此时,“唐山”为目标点的所属城市,若不存在,则说明“唐山”也不是目标点的所属城市。本实施例中,当“北京”和“唐山”两个城市均不是目标点所属的城市时,则需要经过进一步运算来在城市集合中定位目标点所属的城市,其在后续的实施例中进行介绍。Optionally, when step S516 is executed, the longitude and latitude information table of each city in the city set may be obtained from the geographical information, and a city is located as the city to which the target point belongs according to the obtained longitude and latitude information table. The positioning principle is to determine which city the target point is within the geographical area of the city set in the city set through the city longitude and latitude information table, and then locate the city as the city to which the target point belongs. In this embodiment, it is assumed that only two cities "Beijing" and "Tangshan" are included in the city set. In actual implementation, step S516 will first randomly select a city in the city set, for example, select "Beijing", and then retrieve the latitude and longitude information of each graphic block from the latitude and longitude information table of "Beijing" in the geographical information. Afterwards, step S516 judges whether the target point exists in any graphic block of "Beijing". If it exists, it means that the target point is within the geographical area of "Beijing". At this time, "Beijing" is the city to which the target point belongs. If it does not exist, it means that "Beijing" is not the city to which the target point belongs. At this time, continue to extract another city "Tangshan" from the city set, and repeat the operation of judging whether the target point exists in any graphic block of "Tangshan" according to the above method. If it exists, it means that the target point is within the geographical area of "Tangshan". At this time, "Tangshan" is the city to which the target point belongs. If it does not exist, it means that "Tangshan" is not the city to which the target point belongs. In this embodiment, when the two cities "Beijing" and "Tangshan" are not the cities to which the target point belongs, further calculations are required to locate the city to which the target point belongs in the city set, which will be carried out in subsequent embodiments. introduce.

在本实施例中,以图形板块为矩形板块为例,若要判断目标点存在于图形板块内,则应满足的条件包括:目标点的经度值位于该矩形板块左上顶点经度值与右下顶点经度值之间,且目标点的纬度值位于该矩形板块左上顶点纬度值与右下顶点纬度值之间。In this embodiment, taking the graphic board as a rectangular board as an example, if it is necessary to determine that the target point exists in the graphic board, the conditions that should be met include: the longitude value of the target point is located between the longitude value of the upper left apex and the lower right apex of the rectangular board. between the longitude values, and the latitude value of the target point is between the latitude value of the upper left apex and the lower right apex of the rectangular plate.

需要说明的是,若确定目标点不存在于城市集合中任意一个城市的图形板块内,则步骤S516还继续通过如下操作来定位目标点所属的城市,即获取与目标点距离最小的城市作为目标点所属的城市,定位结束。可选地,目标点与城市间的距离的计算方式包括:计算目标点与该城市中每个图形板块中心点的距离,将其中的最小距离作为目标点与该城市的距离。It should be noted that, if it is determined that the target point does not exist in the graphic block of any city in the city set, step S516 will continue to locate the city to which the target point belongs through the following operations, that is, obtain the city with the smallest distance from the target point as the target The city to which the point belongs, and the positioning ends. Optionally, the calculation method of the distance between the target point and the city includes: calculating the distance between the target point and the center point of each graphic plate in the city, and using the minimum distance as the distance between the target point and the city.

需要说明的是,步骤S516在获取目标点与各个城市之间的距离时,可以在判断目标点不存在于一个城市的任意一个图形板块内之后,就获取该城市与目标点的距离。该种计算方式,能够均衡移动设备的处理压力。也可以在判断目标点不存在于城市集合中任意一个城市的图形板块内之后,再统一计算目标点与各个城市之间的距离。该种计算方式,能够在需要的时候才对目标点与各个城市之间的距离进行计算,避免了多余的计算量,从而减少了对移动设备的资源浪费。It should be noted that, when obtaining the distance between the target point and each city in step S516, the distance between the city and the target point may be obtained after judging that the target point does not exist in any graphic tile of a city. This calculation method can balance the processing pressure of the mobile device. It is also possible to uniformly calculate the distance between the target point and each city after it is judged that the target point does not exist in the graphic block of any city in the city set. This calculation method can only calculate the distance between the target point and each city when needed, avoiding redundant calculations, thereby reducing the waste of resources on mobile devices.

上述内容具体介绍了针对上述移动设备在实现城市定位时的具体方法。通过该方法,能够在移动设备上仅通过存储的地理信息即可完成定位功能,而无需通过服务器来完成,因此,确保了在未连网的状态下也能实现定位功能。另外,地理信息中所存储的数据结构较为简单且数据量较小,因此在进行查询时,也无需使用复杂的查询方式,节约了移动设备的存储空间,同时也提高了移动设备的查询效率。The above content specifically introduces a specific method for implementing city positioning for the above mobile device. Through this method, the positioning function can be completed on the mobile device only through the stored geographical information, without the need of a server, thus ensuring that the positioning function can also be realized in the state of not being connected to the network. In addition, the data structure stored in geographic information is relatively simple and the amount of data is small, so there is no need to use complex query methods when performing queries, which saves the storage space of mobile devices and improves the query efficiency of mobile devices.

本实施例中描述的城市定位的方法只是本发明一个优选的实施方式,还可以通过上述方法来实现对目标点进行任何地理级别的区域定位,在本实施例中,不再进行具体描述。The city positioning method described in this embodiment is only a preferred embodiment of the present invention, and any geographical level area positioning of target points can also be realized through the above method, which will not be described in detail in this embodiment.

实施例三Embodiment Three

图6是根据本发明一个实施例的一种用于存储地理信息的移动设备结构图,该移动设备600包括:Fig. 6 is a structural diagram of a mobile device for storing geographical information according to an embodiment of the present invention, the mobile device 600 includes:

片段划分器610,配置为将地址位置划分为经度片段和纬度片段;a segment divider 610 configured to divide the address location into longitude segments and latitude segments;

经度表生成器620,与上述片段划分器610相耦合,配置为确定与每个经度片段所对应的区域,生成包含每个经度片段所对应区域的区域经度表;The longitude table generator 620, coupled with the above-mentioned segment divider 610, is configured to determine the area corresponding to each longitude segment, and generate an area longitude table including the area corresponding to each longitude segment;

纬度表生成器630,与上述片段划分器610相耦合,配置为确定与每个纬度片段所对应的区域,生成包含每个纬度片段所对应区域的区域纬度表;The latitude table generator 630, coupled with the segment divider 610, is configured to determine the area corresponding to each latitude segment, and generate an area latitude table including the area corresponding to each latitude segment;

经纬度信息表生成器640,与上述片段划分器610相耦合,配置为根据每个区域的地理形状,为每个区域建立经纬度信息表;The latitude and longitude information table generator 640, coupled with the segment divider 610, is configured to establish a latitude and longitude information table for each area according to the geographical shape of each area;

数据库650,与上述经度表生成器620、纬度表生成器630和经纬度信息表生成器640相耦合,配置为将区域经度表、区域纬度表以及每个区域的经纬度信息表进行存储。The database 650, coupled with the above-mentioned longitude table generator 620, latitude table generator 630 and longitude-latitude information table generator 640, is configured to store the regional longitude table, regional latitude table and the longitude-latitude information table of each region.

可选地,片段划分器610还配置为:Optionally, segment divider 610 is also configured to:

按照特定粒度将经度进行均等划分,得到每个经度片段,及按照特定粒度将纬度进行均等划分,得到每个纬度片段。The longitude is equally divided according to a specific granularity to obtain each longitude segment, and the latitude is equally divided according to a specific granularity to obtain each latitude segment.

可选地,特定粒度的范围设定为一度。Optionally, the range for a particular particle size is set to one degree.

可选地,该移动设备600还包括:Optionally, the mobile device 600 also includes:

编码分配器660,配置为给各个区域分配唯一区域编码,将生成的区域经度表、区域纬度表及每个经纬度信息表中的区域以预先分配的唯一区域编码来标识。The code allocator 660 is configured to assign a unique area code to each area, and identify the generated area longitude table, area latitude table and each area in the longitude and latitude information table with a pre-assigned unique area code.

可选地,经纬度信息表生成器640,包括:Optionally, the longitude-latitude information table generator 640 includes:

板块划分单元641,配置为对于每个区域的地理形状而言,将其划分为若干个任意大小的连续图形板块,其中,若干个连续图形板块构成了该区域的地理形状;The plate dividing unit 641 is configured to divide the geographical shape of each region into several continuous graphic plates of any size, wherein the plurality of continuous graphic plates constitute the geographical shape of the area;

经纬度记录单元642,配置为在每个图形板块内获取两点,分别记录该两点的经纬度,作为该图形板块的经纬度信息;The latitude and longitude recording unit 642 is configured to obtain two points in each graphic block, and record the latitude and longitude of the two points respectively as the latitude and longitude information of the graphic block;

组合单元643,配置为将该区域中所有图形板块的经纬度信息进行组合,得到该区域的经纬度信息表。The combination unit 643 is configured to combine the latitude and longitude information of all graphic blocks in the area to obtain the latitude and longitude information table of the area.

可选地,板块划分单元641所划分的图形板块为形状是矩形的矩形板块。Optionally, the graphic blocks divided by the block dividing unit 641 are rectangular blocks in shape.

可选地,经纬度记录单元642还配置为在每个矩形板块中选取左上顶点和右下顶点。Optionally, the longitude-latitude recording unit 642 is further configured to select the upper left vertex and the lower right vertex in each rectangular block.

本发明提供了一种用于存储地理信息的移动设备,通过该移动设备,在对地理信息进行存储时,能够简化地理信息的信息结构,进而减小了地理信息所包含的数据量,从而使得地理信息能够存储于现有的移动设备中。以便于当用户通过移动设备来触发定位操作时,移动设备能够根据所存储的地理信息定位到目标点(用户想要定位的地理位置)所属的区域。The present invention provides a mobile device for storing geographic information. When storing geographic information, the mobile device can simplify the information structure of geographic information, thereby reducing the amount of data contained in geographic information, so that Geographical information can be stored in existing mobile devices. So that when the user triggers the positioning operation through the mobile device, the mobile device can locate the area to which the target point (the geographic location that the user wants to locate) belongs to according to the stored geographical information.

其中,所述设备还包括:Wherein, the device also includes:

编码分配器,配置为给各个区域分配唯一区域编码,将生成的所述区域经度表、区域纬度表及每个经纬度信息表中的区域以预先分配的唯一区域编码来标识。The code allocator is configured to assign a unique area code to each area, and identify the areas in the generated regional longitude table, regional latitude table, and each longitude-latitude information table with a pre-assigned unique area code.

其中,所述经纬度信息表生成器,包括:Wherein, the latitude and longitude information table generator includes:

板块划分单元,配置为对于每个区域的地理形状而言,将其划分为若干个任意大小的连续图形板块,其中,所述若干个连续图形板块构成了该区域的地理形状;The plate division unit is configured to divide the geographical shape of each region into several continuous graphic plates of any size, wherein the plurality of continuous graphic plates constitute the geographical shape of the area;

经纬度记录单元,配置为在每个图形板块内获取两点,分别记录该两点的经纬度,作为该图形板块的经纬度信息;The latitude and longitude recording unit is configured to obtain two points in each graphic block, and record the latitude and longitude of the two points respectively as the latitude and longitude information of the graphic block;

组合单元,配置为将该区域中所有图形板块的经纬度信息进行组合,得到该区域的经纬度信息表。The combination unit is configured to combine the latitude and longitude information of all the graphics plates in the area to obtain the latitude and longitude information table of the area.

其中,所述板块划分单元所划分的图形板块为形状是矩形的矩形板块。Wherein, the graphic blocks divided by the block dividing unit are rectangular blocks in shape.

其中,所述经纬度记录单元还配置为在每个矩形板块中选取左上顶点和右下顶点。Wherein, the longitude-latitude recording unit is further configured to select the upper left vertex and the lower right vertex in each rectangular block.

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

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的移动设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the mobile device according to the embodiments of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

至此,本领域技术人员应认识到,虽然本文已详尽示出和描述了本发明的多个示例性实施例,但是,在不脱离本发明精神和范围的情况下,仍可根据本发明公开的内容直接确定或推导出符合本发明原理的许多其他变型或修改。因此,本发明的范围应被理解和认定为覆盖了所有这些其他变型或修改。So far, those skilled in the art should appreciate that, although a number of exemplary embodiments of the present invention have been shown and described in detail herein, without departing from the spirit and scope of the present invention, the disclosed embodiments of the present invention can still be used. Many other variations or modifications consistent with the principles of the invention are directly identified or derived from the content. Accordingly, the scope of the present invention should be understood and deemed to cover all such other variations or modifications.

Claims (12)

1.一种针对移动设备的地理信息存储方法,其包括:1. A geographical information storage method for mobile devices, comprising: 将地址位置划分为经度片段和纬度片段;Divide address locations into longitude segments and latitude segments; 确定与每个经度片段和每个纬度片段所对应的区域以生成包含所述每个经度片段所对应区域的区域经度表,以及生成包含所述每个纬度片段所对应区域的区域纬度表;determining the area corresponding to each longitude segment and each latitude segment to generate an area longitude table including the area corresponding to each longitude segment, and generating an area latitude table including the area corresponding to each latitude segment; 根据每个区域的地理形状,为所述每个区域建立经纬度信息表;According to the geographical shape of each area, establish a latitude and longitude information table for each area; 将所述区域经度表、区域纬度表以及每个区域的经纬度信息表存储在移动设备中;storing the area longitude table, the area latitude table and the latitude and longitude information table of each area in the mobile device; 其中,所述根据每个区域的地理形状,为所述每个区域建立经纬度信息表的步骤包括:Wherein, according to the geographical shape of each area, the step of establishing a latitude and longitude information table for each area includes: 对于每个区域的地理形状而言,将其划分为若干个任意大小的连续图形板块,其中,所述若干个连续图形板块构成了该区域的地理形状,并且,在每个区域中,地理形状越规则的部分对应的图形板块越大;For the geographical shape of each region, it is divided into several continuous graphic blocks of any size, wherein the several continuous graphic blocks constitute the geographical shape of the region, and in each region, the geographical shape The more regular part corresponds to the larger the graphic plate; 在每个图形板块内获取两点,分别记录该两点的经纬度,作为该图形板块的经纬度信息;Obtain two points in each graphic block, respectively record the latitude and longitude of the two points as the latitude and longitude information of the graphic block; 将该区域中所有图形板块的经纬度信息进行组合,得到该区域的经纬度信息表。Combining the latitude and longitude information of all the graphics plates in the area to obtain the latitude and longitude information table of the area. 2.根据权利要求1所述的方法,其中,所述将地址位置划分为经度片段和纬度片段,包括:2. The method of claim 1, wherein said dividing an address location into longitude segments and latitude segments comprises: 按照特定粒度将经度进行均等划分,得到每个经度片段,及按照所述特定粒度将纬度进行均等划分,得到每个纬度片段。The longitude is equally divided according to a specific granularity to obtain each longitude segment, and the latitude is equally divided according to the specific granularity to obtain each latitude segment. 3.根据权利要求2所述的方法,其中,所述特定粒度的范围设定为一度。3. The method according to claim 2, wherein the range of the specific grain size is set to one degree. 4.根据权利要求1至3任一项所述的方法,其中,还包括:4. The method according to any one of claims 1 to 3, further comprising: 给各个区域分配唯一区域编码,将生成的所述区域经度表、区域纬度表及每个经纬度信息表中的区域以预先分配的唯一区域编码来标识。A unique area code is assigned to each area, and the generated area longitude table, area latitude table, and each area in the longitude and latitude information table are identified by a pre-assigned unique area code. 5.根据权利要求1所述的方法,其中,所述图形板块为形状是矩形的矩形板块。5. The method according to claim 1, wherein the graphic block is a rectangular block having a rectangular shape. 6.根据权利要求5所述的方法,其中,所述在每个图形板块内获取两点,包括:6. The method according to claim 5, wherein said obtaining two points in each graphic block comprises: 在每个矩形板块中选取左上顶点和右下顶点。Select the upper left and lower right vertices in each rectangular plate. 7.一种移动设备,其包括:7. A mobile device comprising: 片段划分器,配置为将地址位置划分为经度片段和纬度片段;a segment divider configured to divide an address location into longitude segments and latitude segments; 经度表生成器,配置为确定与每个经度片段所对应的区域,生成包含所述每个经度片段所对应区域的区域经度表;a longitude table generator configured to determine the area corresponding to each longitude segment, and generate an area longitude table including the area corresponding to each longitude segment; 纬度表生成器,配置为确定与每个纬度片段所对应的区域,生成包含所述每个纬度片段所对应区域的区域纬度表;A latitude table generator configured to determine the area corresponding to each latitude segment, and generate an area latitude table including the area corresponding to each latitude segment; 经纬度信息表生成器,配置为根据每个区域的地理形状,为所述每个区域建立经纬度信息表;A latitude and longitude information table generator configured to establish a latitude and longitude information table for each region according to the geographic shape of each region; 数据库,配置为将所述区域经度表、区域纬度表以及每个区域的经纬度信息表进行存储;A database configured to store the regional longitude table, the regional latitude table, and the latitude and longitude information table of each region; 其中,所述经纬度信息表生成器包括:Wherein, the latitude and longitude information table generator includes: 板块划分单元,配置为对于每个区域的地理形状而言,将其划分为若干个任意大小的连续图形板块,其中,若干个连续图形板块构成了该区域的地理形状;The plate division unit is configured to divide the geographical shape of each region into several continuous graphic plates of any size, wherein the plurality of continuous graphic plates constitute the geographical shape of the area; 经纬度记录单元,配置为在每个图形板块内获取两点,分别记录该两点的经纬度,作为该图形板块的经纬度信息;The latitude and longitude recording unit is configured to obtain two points in each graphic block, and record the latitude and longitude of the two points respectively as the latitude and longitude information of the graphic block; 组合单元,配置为将该区域中所有图形板块的经纬度信息进行组合,得到该区域的经纬度信息表。The combination unit is configured to combine the latitude and longitude information of all the graphics plates in the area to obtain the latitude and longitude information table of the area. 8.根据权利要求7所述的设备,其中,所述片段划分器还配置为:8. The device according to claim 7, wherein the segment divider is further configured to: 按照特定粒度将经度进行均等划分,得到每个经度片段,及按照所述特定粒度将纬度进行均等划分,得到每个纬度片段。The longitude is equally divided according to a specific granularity to obtain each longitude segment, and the latitude is equally divided according to the specific granularity to obtain each latitude segment. 9.根据权利要求8所述的设备,其中,所述特定粒度的范围设定为一度。9. The apparatus according to claim 8, wherein the range of the specific granularity is set to one degree. 10.根据权利要求7-9任一项所述的设备,其中,所述设备还包括:10. The device according to any one of claims 7-9, wherein the device further comprises: 编码分配器,配置为给各个区域分配唯一区域编码,将生成的区域经度表、区域纬度表及每个经纬度信息表中的区域以预先分配的唯一区域编码来标识。The code allocator is configured to assign a unique area code to each area, and identifies the generated area longitude table, area latitude table and each area in the longitude and latitude information table with a pre-assigned unique area code. 11.根据权利要求7所述的设备,其中,所述板块划分单元所划分的图形板块为形状是矩形的矩形板块。11. The device according to claim 7, wherein the graphic blocks divided by the block dividing unit are rectangular blocks in shape. 12.根据权利要求11所述的设备,其中,所述经纬度记录单元还配置为在每个矩形板块中选取左上顶点和右下顶点。12. The device according to claim 11, wherein the longitude-latitude recording unit is further configured to select an upper left vertex and a lower right vertex in each rectangular block.
CN201310439925.1A 2013-09-24 2013-09-24 Geographic information storage method for mobile equipment and mobile equipment Active CN103476003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310439925.1A CN103476003B (en) 2013-09-24 2013-09-24 Geographic information storage method for mobile equipment and mobile equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310439925.1A CN103476003B (en) 2013-09-24 2013-09-24 Geographic information storage method for mobile equipment and mobile equipment

Publications (2)

Publication Number Publication Date
CN103476003A CN103476003A (en) 2013-12-25
CN103476003B true CN103476003B (en) 2017-04-12

Family

ID=49800672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310439925.1A Active CN103476003B (en) 2013-09-24 2013-09-24 Geographic information storage method for mobile equipment and mobile equipment

Country Status (1)

Country Link
CN (1) CN103476003B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104316041A (en) * 2014-10-09 2015-01-28 南京满厚网络科技有限公司 Positioning system and method based on real geographic location of mobile terminal
CN105989507A (en) * 2015-01-30 2016-10-05 北京陌陌信息技术有限公司 Method and device for generating information object based on area positioning
CN105989024A (en) * 2015-01-30 2016-10-05 北京陌陌信息技术有限公司 Method and device for determining location area of user
JP6546440B2 (en) * 2015-04-28 2019-07-17 株式会社日立製作所 Data processing support method, data processing server and program
CN107480180A (en) * 2017-07-05 2017-12-15 北京辰安信息科技有限公司 The processing method of road data, road positioning method, apparatus and system
CN112699560B (en) * 2020-12-31 2023-03-31 青岛海尔科技有限公司 Position recognition method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1967537A (en) * 2005-11-14 2007-05-23 富士胶片株式会社 Landmark search system for digital camera, map data, and method of sorting image data
CN101477748A (en) * 2009-01-19 2009-07-08 深圳市同洲电子股份有限公司 Traffic condition management method and system
CN102506887A (en) * 2011-11-10 2012-06-20 厦门雅迅网络股份有限公司 Geographic navigation method
CN103065472A (en) * 2012-12-24 2013-04-24 中国科学院深圳先进技术研究院 Real-time traffic status analysis method and real-time traffic status analysis system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8577328B2 (en) * 2006-08-21 2013-11-05 Telecommunication Systems, Inc. Associating metro street address guide (MSAG) validated addresses with geographic map data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1967537A (en) * 2005-11-14 2007-05-23 富士胶片株式会社 Landmark search system for digital camera, map data, and method of sorting image data
CN101477748A (en) * 2009-01-19 2009-07-08 深圳市同洲电子股份有限公司 Traffic condition management method and system
CN102506887A (en) * 2011-11-10 2012-06-20 厦门雅迅网络股份有限公司 Geographic navigation method
CN103065472A (en) * 2012-12-24 2013-04-24 中国科学院深圳先进技术研究院 Real-time traffic status analysis method and real-time traffic status analysis system

Also Published As

Publication number Publication date
CN103476003A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
CN103476003B (en) Geographic information storage method for mobile equipment and mobile equipment
US8352480B2 (en) Methods, apparatuses and computer program products for converting a geographical database into a map tile database
TWI564738B (en) Method and apparatus for recommending candidate words based on geographic location
CN103268730B (en) Electronic map interface shows the method and apparatus of association mark point
JP6219390B2 (en) Adaptive access point database management
CN103631888B (en) Multi-data source data searching method and device based on positions
US8996551B2 (en) Managing geographic region information
CN107092623B (en) Method and device for querying a point of interest
TW201543859A (en) Method, apparatus, and system for determining a location of a terminal
CN103530323B (en) Area positioning method and mobile terminal for mobile terminal
CN104539750A (en) IP locating method and device
CN106210163B (en) IP address-based localization method and device
CN108009205B (en) Search result caching method based on position, search method, client and system
US10838988B2 (en) System and method for efficient geospatial indexing
CN111611992A (en) Method and device for determining interest plane and computer equipment
TW201931172A (en) Poi retrieving method and device based on geographic locations
CN107291713A (en) Reminding method, terminal and the server of point of interest search keyword
CN107395680A (en) Shop group's information push and output intent and device, equipment
JP5849155B2 (en) User content acquisition method and acquisition system
Rahman et al. Hdbscan: Density based clustering over location based services
CN113569564B (en) Address information processing and displaying method and device
JP2013130909A (en) Information processor and information processing method
US9449110B2 (en) Geotiles for finding relevant results from a geographically distributed set
CN105354326A (en) Spatial position indexing method and system
CN104156475B (en) Geography information read method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220715

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.