CN104320383B - Domain name generation method based on geographical position coding - Google Patents
Domain name generation method based on geographical position coding Download PDFInfo
- Publication number
- CN104320383B CN104320383B CN201410528621.7A CN201410528621A CN104320383B CN 104320383 B CN104320383 B CN 104320383B CN 201410528621 A CN201410528621 A CN 201410528621A CN 104320383 B CN104320383 B CN 104320383B
- Authority
- CN
- China
- Prior art keywords
- bit
- longitude
- latitude
- domain name
- location
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种基于地理位置编码的域名生成方法,包括以下步骤:获取地理位置信息;根据经度信息和纬度信息分别生成对应的位置编码;根据对应的位置编码和预先设置的位置掩码生成对应的域名。本发明实施例的方法通过根据对应的位置编码和掩码生成对应的域名,将地理位置编码为可以聚类的位置编码,实现使得位置编码不仅可以定位某个位置,还可以覆盖一个区域,并且根据位置编码生成特定的域名,基于域名进行信息发布和接收,能够让在同一个位置或者指定位置区域的上网设备互相知晓,并且通过特定的域名得到与这些位置相关的信息,使得指定位置的信息发布和通信变得更为容易。
The invention discloses a method for generating a domain name based on geographic location codes, which includes the following steps: acquiring geographic location information; generating corresponding location codes according to longitude information and latitude information; generating according to corresponding location codes and a preset location mask corresponding domain name. In the method of the embodiment of the present invention, the corresponding domain name is generated according to the corresponding location code and mask, and the geographic location is coded into a location code that can be clustered, so that the location code can not only locate a certain location, but also cover an area, and Generate a specific domain name according to the location code, and publish and receive information based on the domain name, so that Internet devices in the same location or a specified location area can know each other, and obtain information related to these locations through a specific domain name, so that the information of the specified location Publishing and communication just got easier.
Description
技术领域technical field
本发明涉及计算机网络技术领域,特别涉及一种基于地理位置编码的域名生成方法。The invention relates to the technical field of computer networks, in particular to a method for generating a domain name based on geographic location coding.
背景技术Background technique
目前,地理位置通常以经度、纬度的方式呈现,由于有二元甚至更多元数据如高度的存在,导致数据通常不便于存储、呈现,尤其是在互联网使用时,由于数据结构较为复杂,导致数据不便于使用。相关技术中,通常是通过HTTP(HTTP-Hypertext transferprotocol,超文本传输协议)之上用复杂的数据结构来进行包装呈现,例如,Google或者百度所使用的API(Application Programming Interface,应用程序编程接口)都是采用了较为复杂的数据包装形式。然而,各个应用系统分别使用自己定义的API,地理位置信息割裂在各个应用之中,导致难以建立一个互联网上统一的位置服务借口。另外,地理位置表述的另一个问题在于,描述地理位置范围是一个较为复杂的问题,采用经纬度的表达方式,很难在位置间产生聚类关系,这也使得范围的查找难于设计实现。At present, geographical location is usually presented in the form of longitude and latitude. Due to the existence of binary or even more metadata such as height, the data is usually not easy to store and present. Especially when using the Internet, due to the complex data structure, resulting in Data is not readily available. In related technologies, it is usually packaged and presented with complex data structures on top of HTTP (HTTP-Hypertext transfer protocol), for example, the API (Application Programming Interface, application programming interface) used by Google or Baidu They all use more complex data packaging forms. However, each application system uses its own defined API, and the geographical location information is separated in each application, making it difficult to establish a unified location service interface on the Internet. In addition, another problem with the expression of geographical location is that describing the scope of geographical location is a relatively complicated problem. Using the expression of latitude and longitude, it is difficult to generate a clustering relationship between locations, which also makes it difficult to design and implement the range search.
发明内容Contents of the invention
本发明旨在至少在一定程度上解决上述相关技术中的技术问题之一。The present invention aims at solving one of the technical problems in the related art mentioned above at least to a certain extent.
为此,本发明的目的在于提出一种方便指定位置的信息发布和通讯的基于地理位置编码的域名生成方法。For this reason, the object of the present invention is to propose a method for generating a domain name based on geographic location codes that facilitates information release and communication at a specified location.
为达到上述目的,本发明实施例提出了一种基于地理位置编码的域名生成方法,包括以下步骤:获取地理位置信息,其中,所述地理位置信息包括经度信息和纬度信息;根据所述经度信息和纬度信息生成对应的位置编码;以及根据所述对应的位置编码和预先设置的位置掩码生成对应的域名。In order to achieve the above purpose, the embodiment of the present invention proposes a method for generating a domain name based on geographic location coding, including the following steps: acquiring geographic location information, wherein the geographic location information includes longitude information and latitude information; according to the longitude information generating a location code corresponding to the latitude information; and generating a corresponding domain name according to the corresponding location code and a preset location mask.
根据本发明实施例提出的基于地理位置编码的域名生成方法,通过根据经度信息和纬度信息生成对应的位置编码,从而根据对应的位置编码和预先设置的掩码生成对应的域名,将地理位置编码为可以聚类的位置编码,实现使得位置编码不仅可以定位某个位置,还可以覆盖一个区域,并且根据位置编码生成特定的DNS(Domain Name System,即DomainName,域名),基于域名进行信息发布,能够让在同一个位置或者指定位置区域的上网设备互相知晓,并且上网设备可以通过特定的DNS域名得到与这些位置相关的信息,使得指定位置的信息发布和通信变得更为容易。According to the domain name generation method based on geographic location coding proposed in the embodiment of the present invention, by generating the corresponding location code according to the longitude information and latitude information, the corresponding domain name is generated according to the corresponding location code and the preset mask, and the geographic location code is generated. For location codes that can be clustered, the location code can not only locate a certain location, but also cover an area, and generate a specific DNS (Domain Name System, DomainName, domain name) based on the location code, and publish information based on the domain name. It can make Internet devices in the same location or a designated location area know each other, and Internet devices can obtain information related to these locations through a specific DNS domain name, making it easier to publish and communicate information at designated locations.
另外,根据本发明上述实施例的基于地理位置编码的域名生成方法还可以具有如下附加的技术特征:In addition, the method for generating a domain name based on geographic location coding according to the above-mentioned embodiments of the present invention may also have the following additional technical features:
在本发明的一个实施例中,在所述获取地理位置信息之后,还包括:将所述经度编码为n比特的二进制,其中,所述n比特的二进制包括符号段和数据段,所述数据段包括第一数据段和第二数据段,将所述经度的符号编码至所述符号段内,将所述经度绝对值编码至所述数据段内,其中,所述第一数据段表示所述经度绝对值的整数部分,所述第二数据段表示所述经度绝对值的小数部分,n为大于9的正整数;将所述纬度编码为所述n比特的二进制,将所述纬度的符号编码至所述符号段内,将所述纬度绝对值编码至所述数据段内。In one embodiment of the present invention, after the acquiring the geographic location information, it further includes: encoding the longitude into n-bit binary, wherein the n-bit binary includes a symbol segment and a data segment, and the data The segment includes a first data segment and a second data segment, the symbol of the longitude is encoded into the symbol segment, and the absolute value of the longitude is encoded into the data segment, wherein the first data segment represents the The integer part of the absolute value of the longitude, the second data segment represents the fractional part of the absolute value of the longitude, n is a positive integer greater than 9; the latitude is encoded as the n-bit binary, and the latitude of A symbol is encoded into the symbol segment, and the absolute value of the latitude is encoded into the data segment.
进一步地,在本发明的一个实施例中,所述根据所述经度信息和纬度信息生成对应的位置编码,具体包括:将所述经度编码的n比特的二进制和所述纬度编码的n比特的二进制进行交叉合并,以获取所述位置编码;通过所述位置编码和预先设置的k所表示的位置掩码描述地理位置范围,其中,所述位置掩码为k表示所有编码的前2k比特与所述位置编码的前2k比特相同的所有位置组成的区域,其中,k为大于2小于等于n的正整数。Further, in an embodiment of the present invention, said generating corresponding position codes according to said longitude information and latitude information specifically includes: binary encoding of n bits of said longitude encoding and n bits of said latitude encoding Binary cross-merging is performed to obtain the position code; the geographic location range is described by the position code and the preset position mask represented by k, wherein the position mask is k indicating that the first 2k bits of all codes and An area composed of all positions with the same first 2k bits of the position code, where k is a positive integer greater than 2 and less than or equal to n.
进一步地,在本发明的一个实施例中,所述根据所述对应的位置编码和位置掩码生成对应的域名,具体包括:根据所述对应的位置编码和位置掩码从最左侧开始,每隔2m比特转换为一个域,以获取转换后的域的列表,其中,m是正整数;将所述域的列表进行逆序处理,并连接上预设后缀域名以生成所述对应的域名。Further, in an embodiment of the present invention, the generating the corresponding domain name according to the corresponding position code and position mask specifically includes: starting from the leftmost according to the corresponding position code and position mask, Every 2m bits are converted into a domain to obtain a list of converted domains, wherein m is a positive integer; the list of domains is reversed and connected to a preset suffix domain name to generate the corresponding domain name.
优选地,在本发明的一个实施例中,m=2。Preferably, in one embodiment of the present invention, m=2.
进一步地,在本发明的一个实施例中,每2m比特所转换成的域只有一个字符,以通过长度超过一个字符的域名来表示所述位置编码和位置掩码所限制范围内的实体域名。Further, in an embodiment of the present invention, every 2m bits is converted into a domain with only one character, so that the domain name of the entity whose length exceeds one character is used to represent the domain name of the entity within the range limited by the location code and the location mask.
进一步地,在本发明的一个实施例中,所述将所述经度编码为n比特的二进制与所述将所述纬度编码为n比特的二进制,具体包括:通过将1个比特表示符号和8个比特表示小数点左侧的数据,并且将余下的n-9比特表示小数点右侧的数据,以将所述经度编码为n比特的二进制;通过将1个比特表示符号和7个比特表示小数点左侧的数据,并且将余下的n-8比特表示小数点右侧的数据,以将所述纬度编码为n比特的二进制。Further, in an embodiment of the present invention, the encoding the longitude into n-bit binary and the encoding the latitude into n-bit binary specifically include: by using 1 bit to represent a sign and 8 bits to represent data to the left of the decimal point, and the remaining n-9 bits to represent data to the right of the decimal point to encode the longitude as n-bit binary; side data, and the remaining n-8 bits represent the data on the right side of the decimal point to encode the latitude into n-bit binary.
进一步地,在本发明的一个实施例中,所述将所述经度编码的n比特的二进制和所述纬度编码的n比特的二进制进行交叉合并,以获取所述位置编码,具体包括:将等长的所述经度编码的n比特的二进制和所述纬度编码的n比特的二进制进行交叉合并,奇数位放所述经度编码的n比特的二进制,偶数位放所述纬度编码的n比特的二进制,或者,奇数位放所述纬度编码的n比特的二进制,偶数位放所述经度编码的n比特的二进制,以获取所述位置编码。Further, in an embodiment of the present invention, the cross-merging of the n-bit binary of the longitude code and the n-bit binary of the latitude code to obtain the position code specifically includes: The longitude-coded n-bit binary and the latitude-coded n-bit binary are cross-merged, the odd bits are placed in the longitude-coded n-bit binary, and the even-numbered bits are placed in the latitude-coded n-bit binary , or, put the n-bit binary of the latitude code in odd bits, and put the n-bit binary of the longitude code in even bits, so as to obtain the position code.
进一步地,在本发明的一个实施例中,上述方法还包括:访问所述域名以获取对应的指定位置范围的信息Further, in an embodiment of the present invention, the above method further includes: accessing the domain name to obtain the information corresponding to the specified location range
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and comprehensible from the description of the embodiments in conjunction with the following drawings, wherein:
图1为根据本发明一个实施例的基于地理位置编码的域名生成方法的流程图;Fig. 1 is the flow chart of the domain name generation method based on geographic location code according to one embodiment of the present invention;
图2为根据本发明一个实施例的十进制实数的小数点右侧部分转换为二进制编码方法的流程图;Fig. 2 is the flow chart of converting the part on the right side of the decimal point of a decimal real number into a binary encoding method according to an embodiment of the present invention;
图3为根据本发明一个实施例的位置编码的生成方法的流程图;FIG. 3 is a flow chart of a method for generating a position code according to an embodiment of the present invention;
图4为根据本发明一个实施例的位置掩码的使用方法的流程图;FIG. 4 is a flowchart of a method for using a location mask according to an embodiment of the present invention;
图5为根据本发明一个实施例的不同长度位置编码所对应的地理范围经度示意图;Fig. 5 is a schematic diagram of geographic range longitudes corresponding to location codes of different lengths according to an embodiment of the present invention;
图6为根据本发明一个实施例的通过一个经度、纬度范围得到一系列位置编码和位置掩码方法的流程图;Fig. 6 is a flowchart of a method for obtaining a series of location codes and location masks through a range of longitude and latitude according to an embodiment of the present invention;
图7为根据本发明一个实施例的DNS的结构示意图;FIG. 7 is a schematic structural diagram of DNS according to an embodiment of the present invention;
图8为根据本发明一个实施例的DNS的解析过程示意图;FIG. 8 is a schematic diagram of a DNS resolution process according to an embodiment of the present invention;
图9为根据本发明一个具体实施例的基于地理位置编码的域名生成方法的流程图;以及FIG. 9 is a flowchart of a method for generating a domain name based on geographic location coding according to a specific embodiment of the present invention; and
图10为根据本发明一个实施例的位置编码和位置掩码编码成DNS域名的转换表示意图。Fig. 10 is a schematic diagram of a conversion table of encoding a location code and a location mask into a DNS domain name according to an embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.
在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly specified and limited, terms such as "installation", "connection", "connection" and "fixation" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrally connected; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
在本发明中,除非另有明确的规定和限定,第一特征在第二特征之“上”或之“下”可以包括第一和第二特征直接接触,也可以包括第一和第二特征不是直接接触而是通过它们之间的另外的特征接触。而且,第一特征在第二特征“之上”、“上方”和“上面”包括第一特征在第二特征正上方和斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”包括第一特征在第二特征正上方和斜上方,或仅仅表示第一特征水平高度小于第二特征。In the present invention, unless otherwise clearly specified and limited, a first feature being "on" or "under" a second feature may include direct contact between the first and second features, and may also include the first and second features Not in direct contact but through another characteristic contact between them. Moreover, "above", "above" and "above" the first feature on the second feature include that the first feature is directly above and obliquely above the second feature, or simply means that the first feature is horizontally higher than the second feature. "Below", "below" and "under" the first feature to the second feature include that the first feature is directly above and obliquely above the second feature, or simply means that the first feature is less horizontal than the second feature.
下面参照附图描述根据本发明实施例提出的基于地理位置编码的域名生成方法。参照图1所示,该方法包括以下步骤:The method for generating a domain name based on geographic location coding according to an embodiment of the present invention will be described below with reference to the accompanying drawings. Shown in Fig. 1 with reference to, this method comprises the following steps:
S101,获取地理位置信息,其中,地理位置信息包括经度信息和纬度信息。S101. Acquire geographic location information, where the geographic location information includes longitude information and latitude information.
地理位置通常用经度和纬度进行描述。经度是地球上一个地点离一根被称为本初子午线的南北方向走线以东或以西的度数。其中,本初子午线的经度是0°,地球上其它地点的经度是向东到180°或向西到180°,不像纬度有赤道作为自然的起点,经度没有自然的起点,英国的制图学家使用经过伦敦格林尼治天文台的子午线作为起点,过去其它国家或人也使用过其它的子午线做起点,比如罗马、哥本哈根、耶路撒冷、圣彼德堡、比萨、巴黎和费城等。在1884年的国际本初子午线大会上格林尼治的子午线被正式定为经度的起点。东经180°即西经180°,约等同于国际换日线,国际换日线的两边,日期相差一日。具体地,经度是指通过某地的经线面与本初子午面所成的二面角。在本初子午线以东的经度叫东经,在本初子午线以西的叫西经。东经用“E”表示,西经用“W”表示。经度的每一度被分为60角分,每一分被分为60秒。一个经度因此一般看上去是这样的:东经23°27′30"或西经23°27′30"。更精确的经度位置中秒被表示为分的小数,比如:东经23°27.500′。Geographic locations are usually described in terms of longitude and latitude. Longitude is the number of degrees east or west of a point on Earth from a north-south line called the prime meridian. Among them, the longitude of the prime meridian is 0°, and the longitude of other places on the earth is 180° to the east or 180° to the west. Unlike latitude, which has the equator as a natural starting point, longitude has no natural starting point. British cartography People use the meridian passing through the Greenwich Observatory in London as the starting point, and other countries or people have used other meridians as the starting point in the past, such as Rome, Copenhagen, Jerusalem, St. Petersburg, Pisa, Paris, and Philadelphia. The Greenwich meridian was officially established as the origin of longitude at the International Prime Meridian Congress in 1884. 180° east longitude is 180° west longitude, which is approximately equivalent to the international date line, and the dates on both sides of the international date line differ by one day. Specifically, longitude refers to the dihedral angle formed by the meridian plane passing through a certain place and the prime meridian plane. Longitudes east of the prime meridian are called east longitudes, and those west of the prime meridian are called west longitudes. East longitude is represented by "E" and west longitude is represented by "W". Each degree of longitude is divided into 60 arc minutes, and each minute is divided into 60 seconds. A longitude thus generally looks like this: 23°27'30"E or 23°27'30"W. Seconds are expressed as fractional minutes in more precise longitude positions, eg: 23°27.500'E.
一个经度和一个纬度一起确定地球上一个地点的精确位置。纬度是指某点与地球球心的连线和地球赤道面所成的线面角,其数值在0至90度之间。位于赤道以北的点的纬度叫北纬,记为N;位于赤道以南的点的纬度称南纬,记为S,纬度的每个度大约相当于111km。Together, a longitude and a latitude determine the precise location of a place on Earth. Latitude refers to the line-plane angle formed by a line connecting a point with the center of the earth and the equatorial plane of the earth, and its value is between 0 and 90 degrees. The latitude of the point north of the equator is called north latitude, denoted as N; the latitude of the point south of the equator is called south latitude, denoted as S, and each degree of latitude is equivalent to about 111km.
经纬度有多种表示方法,如ddd.ddddd度是经度或纬度的十进制实数表示,例如:31.12035°;而ddd.mm.mmm则是度.分,其中分为十进制实数如31°10.335′;或者ddd.mm.ss,度.分.秒,例如31°12′42"。There are many ways to express latitude and longitude, such as ddd.ddddd degree is the decimal real number representation of longitude or latitude, for example: 31.12035°; and ddd.mm.mmm is degree.minute, which is divided into decimal real numbers such as 31°10.335′; or ddd.mm.ss, degrees. minutes. seconds, such as 31°12′42".
在本发明的一个实施例中,本发明实施例所使用的是经度或纬度的实数表示方式,把经纬度转换成十进制实数的方法很简单,按照如下公式即可Decimal Degrees=Degrees+minutes/60+seconds/3600,如:57°55′56.6"=57+55/60+56.6/3600=57.9323888888888。经度在-180°到180°之间,东经正数,西经为负数,而纬度则在-90°到90°之间,北纬为正数,南纬为负数。In one embodiment of the present invention, what the embodiment of the present invention uses is the real number expression mode of longitude or latitude, and the method for converting latitude and longitude into decimal real numbers is very simple, according to the following formula Decimal Degrees=Degrees+minutes/60+ seconds/3600, such as: 57°55′56.6"=57+55/60+56.6/3600=57.9323888888888. The longitude is between -180° and 180°, the east longitude is positive, the west longitude is negative, and the latitude is - Between 90° and 90°, the north latitude is a positive number and the south latitude is a negative number.
其中,在本发明的一个实施例中,在获取地理位置信息之后,还包括:将经度编码为n比特的二进制,其中,n比特的二进制包括符号段和数据段,数据段包括第一数据段和第二数据段,将经度的符号编码至符号段内,将经度绝对值编码至数据段内,其中,第一数据段表示经度绝对值的整数部分,第二数据段表示经度绝对值的小数部分,n为大于9的正整数;将纬度编码为n比特的二进制,将纬度的符号编码至符号段内,将纬度绝对值编码至数据段内。Wherein, in one embodiment of the present invention, after obtaining the geographic location information, it also includes: encoding the longitude into n-bit binary, wherein the n-bit binary includes a symbol segment and a data segment, and the data segment includes the first data segment and the second data segment, the symbol of longitude is encoded into the symbol segment, and the absolute value of longitude is encoded into the data segment, wherein the first data segment represents the integer part of the absolute value of longitude, and the second data segment represents the decimal of the absolute value of longitude part, n is a positive integer greater than 9; encode the latitude into n-bit binary, encode the sign of the latitude into the symbol segment, and encode the absolute value of the latitude into the data segment.
在本发明的一个实施例中,本发明实施例将经度或纬度编码成二进制表示。对于十进制转为二进制的实数,IEEE 754标准中的方案提出数字系统中的浮点数是对数学中的实数(小数)的近似,同时该标准规定表达浮点数的0、1序列被分为三部分(三个域):以32位单精度浮点数为例,其具体的转换规则是:首先把二进制小数用二进制科学计数法表示,符号位sign表示数的正负(0为正,1为负),故此处填0。本发明实施例并没有采用这一标准,主要原因在于,经度和纬度都具有固定范围,不必要留出额外的指数位。In one embodiment of the present invention, the embodiment of the present invention encodes the longitude or latitude into a binary representation. For real numbers converted from decimal to binary, the scheme in the IEEE 754 standard proposes that floating-point numbers in the digital system are approximations to real numbers (decimals) in mathematics, and the standard stipulates that the sequence of 0 and 1 expressing floating-point numbers is divided into three parts (Three domains): Taking 32-bit single-precision floating-point numbers as an example, the specific conversion rules are: firstly, binary decimals are expressed in binary scientific notation, and the sign bit sign indicates the positive or negative of the number (0 is positive, 1 is negative ), so fill in 0 here. The embodiment of the present invention does not adopt this standard, the main reason is that both longitude and latitude have fixed ranges, and it is unnecessary to reserve additional exponent bits.
在本发明的一个实施例中,将经度编码为n比特的二进制与将纬度编码为n比特的二进制,具体包括:通过将1个比特表示符号和8个比特表示小数点左侧的数据,并且将余下的n-9比特表示小数点右侧的数据,以将经度编码为n比特的二进制;通过将1个比特表示符号和7个比特表示小数点左侧的数据,并且将余下的n-8比特表示小数点右侧的数据,以将纬度编码为n比特的二进制。In one embodiment of the present invention, encoding the longitude into n-bit binary and encoding the latitude into n-bit binary specifically includes: by using 1 bit to represent the sign and 8 bits to represent the data on the left side of the decimal point, and The remaining n-9 bits represent the data to the right of the decimal point to encode the longitude into n-bit binary; by assigning 1 bit to represent the sign and 7 bits to represent the data to the left of the decimal point, and the remaining n-8 bits to represent Data to the right of the decimal point to encode the latitude as n-bit binary.
具体地,对于经度而言,小数点左侧的部分用9比特来表示,其中,第一比特即符号段为符号位;对于纬度而言,小数点左侧的部分用8比特来表示,其中第一比特即符号段为符号位。符号位可以用任何一种约定来表示正负,例如,第一比特为1表示为负。对于不足1度的部分,转换成二进制小数采用乘2取整,顺序排列法。参照图2所示,具体做法是:用2乘十进制小数,可以得到积,将积的整数部分取出,再用2乘余下的小数部分,又得到一个积,再将积的整数部分取出,如此进行,直到积中的小数部分为零或者达到所要求的精度为止,然后把取出的整数部分按顺序排列起来,先取的整数作为二进制小数的高位有效位,后取的整数作为低位有效位。Specifically, for longitude, the part to the left of the decimal point is represented by 9 bits, wherein the first bit, the sign segment, is a sign bit; for latitude, the part to the left of the decimal point is represented by 8 bits, wherein the first The bit or sign segment is the sign bit. The sign bit can use any convention to indicate positive or negative, for example, the first bit is 1 to indicate negative. For the part less than 1 degree, convert to binary decimals by multiplying by 2 and rounding up, and ordering. Referring to Figure 2, the specific method is: use 2 to multiply the decimal number to get the product, take out the integer part of the product, then multiply the remaining decimal part by 2 to get another product, and then take out the integer part of the product, like this Carry out until the fractional part in the product is zero or reaches the required precision, and then arrange the extracted integer parts in order, the integer taken first is used as the high-order significant bit of the binary decimal, and the integer taken later is used as the low-order significant bit.
S102,根据经度信息和纬度信息生成对应的位置编码。S102. Generate a corresponding location code according to the longitude information and the latitude information.
进一步地,在本发明的一个实施例中,根据经度信息和纬度信息生成对应的位置编码,具体包括:将经度编码的n比特的二进制和纬度编码的n比特的二进制进行交叉合并,以获取位置编码;通过位置编码和预先设置的k所表示的位置掩码描述地理位置范围,其中,位置掩码为k表示所有编码的前2k比特与位置编码的前2k比特相同的所有位置组成的区域,其中,k为大于2小于等于n的正整数。Further, in one embodiment of the present invention, generating corresponding position codes according to longitude information and latitude information specifically includes: cross-merging the n-bit binary coded by longitude and the n-bit binary coded by latitude to obtain the position Coding; describe the geographical location range through the position code and the preset position mask represented by k, where the position mask is k, which means that the first 2k bits of all codes are the same as the first 2k bits of the position code. Wherein, k is a positive integer greater than 2 and less than or equal to n.
进一步地,在本发明的一个实施例中,将经度编码的n比特的二进制和纬度编码的n比特的二进制进行交叉合并,以获取位置编码,具体包括:将等长的经度编码的n比特的二进制和纬度编码的n比特的二进制进行交叉合并,奇数位放经度编码的n比特的二进制,偶数位放纬度编码的n比特的二进制,或者,奇数位放纬度编码的n比特的二进制,偶数位放经度编码的n比特的二进制,以获取位置编码。Further, in one embodiment of the present invention, the n-bit binary of the longitude code and the n-bit binary of the latitude code are cross-merged to obtain the position code, which specifically includes: Binary and latitude-coded n-bit binary are cross-merged, odd bits are longitude-coded n-bit binary, even-numbered latitude-coded n-bit binary, or odd bits are latitude-coded n-bit binary, even bits Put the longitude-encoded n-bit binary to get the location code.
本发明实施例的地理位置编码方式,通过将经度和纬度交叉编码成一个位置编码,既使得所生成的位置编码以类似互联网地址分层的形式展现出来,同时也方便了位置数据的分析、存储和映射。另外,通过引入位置掩码,可以容易的指定不同地理区域的大小,具有更短位置掩码的地理区域可以包含多个具有相同前缀的但掩码更长的位置编码所描述的区域。这使得这种编码与互联网IP地址具有类似的特性,从而便于与互联网进行结合。The geographical location coding method of the embodiment of the present invention cross-codes the longitude and latitude into a location code, so that the generated location code is displayed in a form similar to the Internet address hierarchy, and at the same time it is convenient for the analysis and storage of location data and mapping. In addition, by introducing location masks, the size of different geographic regions can be easily specified. A geographic region with a shorter location mask can contain multiple regions described by location codes with the same prefix but longer masks. This makes this encoding have similar characteristics to Internet IP addresses, making it easy to integrate with the Internet.
进一步地,本发明实施例设定的编码长度为2n,也就是说经度和纬度所使用的比特数均为n,n>9。将按照以上方法转换来的经纬度按照这一比特数截断,注意为了保持精度的统一,纬度小数后部分比经度多1比特。为了让所转成的位置标识便于聚类,本发明实施例使用了经纬度的交叉表示,参照图3所示,例如将二进制编码为a1a2…an-1 an的经度和二进制编码为b1b2…bn-1bn的纬度交织编码成a1b1a2b2…an-1bn-1anbn,其中,数据段的第一数据段即图中标示小数点前部分,数据段的第二数据段即图中标示小数点后部分。在实际使用中,既可以采用奇数为经度,偶数为纬度的表示方式,也可以采用偶数为经度,奇数位纬度的表示方式。Further, the encoding length set in the embodiment of the present invention is 2n, that is to say, the number of bits used for both the longitude and the latitude is n, and n>9. The latitude and longitude converted by the above method is truncated according to this number of bits. Note that in order to maintain the unity of accuracy, the decimal part of latitude is 1 bit more than the longitude. In order to facilitate the clustering of the converted location identifiers, the embodiment of the present invention uses the cross representation of latitude and longitude, as shown in Figure 3, for example, the binary code is the longitude and binary code of a 1 a 2 ... a n-1 a n The latitude interleaved encoding of b 1 b 2 ...b n-1 b n is a 1 b 1 a 2 b 2 ...a n-1 b n-1 a n b n , wherein the first data segment of the data segment is The part before the decimal point is marked in , and the second data segment of the data segment is the part after the decimal point marked in the figure. In actual use, either an odd-numbered longitude and an even-numbered latitude can be used, or an even-numbered longitude and an odd-numbered latitude can be used.
具体而言,经度转换为n比特二进制的方法为,使用1个比特来表示符号,使用8个比特表示小数点左侧的数据,余下的n-9比特用于表示小数点右侧的数据;对于纬度的转换方法为,使用1个比特来表示符号,使用7个比特表示小数点左侧的数据,余下的n-8比特用于表示小数点右侧的数据。等长的经纬度的二进制表示进行交叉合并,形成最后的位置编码。Specifically, the method of converting longitude to n-bit binary is to use 1 bit to represent the symbol, use 8 bits to represent the data on the left side of the decimal point, and the remaining n-9 bits are used to represent the data on the right side of the decimal point; for latitude The conversion method is to use 1 bit to represent the symbol, use 7 bits to represent the data on the left side of the decimal point, and use the remaining n-8 bits to represent the data on the right side of the decimal point. The binary representations of longitude and latitude of equal length are cross-merged to form the final position code.
在本发明的一个具体实施例中,对于经度而言,第一比特为符号位,小数点左侧直接转为8比特二进制编码,小数点右侧则根据以下步骤生成:用2乘十进制小数,可以得到积,将积的整数部分取出,再用2乘余下的小数部分,又得到一个积,再将积的整数部分取出,如此进行,直到达到n-9比特为止。然后把取出的整数部分按顺序排列起来,先取的整数作为二进制小数的高位有效位,后取的整数作为低位有效位。符号位、整数位的二进制表示和小数位的二进制表示相连就形成了经度的编码。对于纬度而言,第一比特为符号位,小数点左侧直接转为7比特二进制编码,小数点右侧则根据以下步骤生成:用2乘十进制小数,可以得到积,将积的整数部分取出,再用2乘余下的小数部分,又得到一个积,再将积的整数部分取出,如此进行,直到达到n-8比特为止。然后把取出的整数部分按顺序排列起来,先取的整数作为二进制小数的高位有效位,后取的整数作为低位有效位。符号位、整数位的二进制表示和小数位的二进制表示相连就形成了纬度的编码,等长的经纬度的二进制表示进行交叉合并,奇数位放经度的编码,偶数位放纬度的编码,或者偶数位放经度的编码,奇数位放纬度的编码均可,形成最后的2n比特位置编码。In a specific embodiment of the present invention, for longitude, the first bit is a sign bit, and the left side of the decimal point is directly converted into an 8-bit binary code, and the right side of the decimal point is generated according to the following steps: multiply the decimal number by 2 to obtain Product, the integer part of the product is taken out, and then the remaining fractional part is multiplied by 2 to obtain another product, and then the integer part of the product is taken out, and so on until n-9 bits are reached. Then arrange the integer parts taken out in order, the integer taken first is used as the high-order significant bit of the binary fraction, and the integer taken later is used as the low-order significant bit. The sign bit, the binary representation of the integer bit and the binary representation of the decimal bit are connected to form the longitude code. For latitude, the first bit is the sign bit, and the left side of the decimal point is directly converted into a 7-bit binary code, and the right side of the decimal point is generated according to the following steps: multiply the decimal number by 2 to get the product, take out the integer part of the product, and then Multiply the remaining fractional part by 2 to get another product, and then take out the integer part of the product, and proceed in this way until n-8 bits are reached. Then arrange the integer parts taken out in order, the integer taken first is used as the high-order significant bit of the binary fraction, and the integer taken later is used as the low-order significant bit. The binary representation of the sign bit, the integer bit and the binary representation of the decimal place are connected to form a latitude code, and the binary representation of the longitude and latitude of the same length is cross-merged, the odd-numbered bit is used for the longitude code, and the even-numbered bit is used for the latitude code, or the even-numbered bit The encoding of the longitude and the encoding of the odd-numbered latitude can form the last 2n bit position encoding.
进一步地,在本发明的实施例中,本发明实施例使用位置掩码k来标识这个位置的范围,其中2<k<=n。具体地,如上所述的2n比特的位置编码L可以和一个小于n整数k所表示的位置掩码共同使用,来描述一个位置范围。地址掩码为k表示所有编码的前2k比特与L的前2k比特相同的所有位置组成的区域。由于在进行指定地理位置的信息发布或者通信时,一个上网设备例如移动终端如手机等不仅对一个小区域的信息感兴趣,也同时对更大范围内的指定信息感兴趣,本发明实施例使得生成地理位置编码以类似互联网地址分级的形式展现出来,从而便于进行多尺度的地理位置信息发布。Further, in the embodiment of the present invention, the embodiment of the present invention uses the location mask k to identify the range of the location, where 2<k<=n. Specifically, the above-mentioned 2n-bit location code L can be used together with a location mask represented by an integer k smaller than n to describe a location range. An address mask of k represents the region consisting of all locations where the first 2k bits of all codes are the same as the first 2k bits of L. Since an Internet-connected device such as a mobile terminal such as a mobile phone is not only interested in information in a small area but also in a larger range of specified information when performing information release or communication in a designated geographic location, the embodiment of the present invention makes The generated geolocation code is displayed in a form similar to Internet address classification, so as to facilitate the release of multi-scale geographic location information.
具体地,在进行位置编码之后,本发明实施例使用位置掩码k来标识这个位置的范围,其中2<k<=n,如上所述的2n比特的位置编码L可以和一个小于等于n的整数k所表示的位置掩码共同使用,来描述一个位置范围。地址掩码为k表示所有编码后前2k比特与位置编码L的前2k比特相同的所有位置组成的区域,参照图4所示,图4给出了判断一个位置编码是否在该范围的方法流程图。位置掩码与网络中网络掩码的概念相类似,可以用来表示一个范围。举例而言,设n=24,也就是说,位置编码的长度为48比特,则经纬度为(116.3156326940,39.9953253066)位置的转化为24比特后为(001110100010100001100110,001001111111111011001101),用16进制描述则为(3a2866,27fecd),相对应的位置编码则是000011101001110101011101110101000111100001111001(用16进制表示则为0e9d5dd47879)。如果位置掩码为22,则说明这个区域涵盖了所有位置编码的前44比特为00001110100111010101110111010100011110000111(用16进制表示为0e9d5dd4787)的位置,具体而言,这个区域覆盖了经度从116.315551758到116.315673828,纬度从39.995300293到39.9953613281的所有位置。Specifically, after the position coding is performed, the embodiment of the present invention uses the position mask k to identify the range of this position, where 2<k<=n, the above-mentioned 2n-bit position coding L can be combined with a The location mask represented by the integer k is used together to describe a location range. The address mask is k, which means that the first 2k bits after encoding are the same as the first 2k bits of the position code L, and all positions are the same, as shown in Figure 4. Figure 4 shows the method flow for judging whether a position code is within this range picture. The location mask is similar to the concept of the network mask in the network, and can be used to represent a range. For example, set n=24, that is to say, the length of the position code is 48 bits, then the longitude and latitude are (116.3156326940, 39.9953253066) and the conversion of the position into 24 bits is (001110100010100001100110, 001001111111111011001101), and the hexadecimal description is then (3a2866, 27fecd), the corresponding position code is 000011101001110101011101110101000111100001111001 (0e9d5dd47879 in hexadecimal notation). If the location mask is 22, it means that this area covers all locations where the first 44 bits of the location code are 00001110100111010101110111010100011110000111 (0e9d5dd4787 in hexadecimal notation). All positions from 39.995300293 to 39.9953613281.
本发明实施例的编码方法将经度和纬度交叉编码成一个位置编码,既使得所生成的位置编码以类似互联网地址分层的形式展现出来,同时也方便了位置数据的分析、存储和映射。此外,通过引入位置掩码,可以容易的指定不同地理区域的大小,具有更短位置掩码的地理区域可以包含多个具有相同前缀的但掩码更长的位置编码所描述的区域,实现编码与互联网IP地址具有类似的特性,从而便于与互联网进行结合。The coding method of the embodiment of the present invention cross-codes longitude and latitude into a location code, which not only enables the generated location code to be displayed in a form similar to Internet address hierarchy, but also facilitates the analysis, storage and mapping of location data. In addition, by introducing location masks, the size of different geographic regions can be easily specified. A geographic region with a shorter location mask can contain multiple regions described by location codes with the same prefix but longer masks, enabling encoding It has similar characteristics to Internet IP addresses, making it easy to integrate with the Internet.
进一步地,在本发明的另一个实施例中,位置编码转变为经度、纬度的步骤为:将编码的奇数比特作为经度的转换值,将编码的偶数比特作为纬度的转换值,对于经度而言,第一比特为符号位,第2到9比特的8个比特为经度绝对值的整数部分,之后为经度绝对值的小数部分;对于纬度而言,第一比特为符号位,第2到8比特为纬度的整数部分,之后为纬度的小数部分。编码长度与所覆盖的位置精度的近似关系参照图5所示,由于经度每一度的长度随着纬度的不同而不同,因此,所列出的范围是最大可能范围。对于位置掩码而言,不同的位置掩码长度所覆盖的位置范围和位置精度相同。Further, in another embodiment of the present invention, the step of transforming the position code into longitude and latitude is as follows: use the encoded odd bits as the conversion value of longitude, and use the encoded even bits as the conversion value of latitude. For longitude , the first bit is the sign bit, the 8 bits of the 2nd to 9th bits are the integer part of the absolute value of longitude, and then the fractional part of the absolute value of longitude; for latitude, the first bit is the sign bit, the 2nd to 8th The bits are the integer part of the latitude, followed by the fractional part of the latitude. The approximate relationship between the code length and the covered location accuracy is shown in Figure 5. Since the length of each degree of longitude varies with latitude, the listed range is the maximum possible range. For the location mask, the location range and location accuracy covered by different location mask lengths are the same.
其中,编码也可以不必涵盖所有的经纬度,也就是说,在大多数情况下,其他信息(如域名后缀等)可能已经提供了部分地理位置相关的信息,因此表示范围可以进一步缩小,这样的话经度和纬度小数点左侧部分可以使用更少的比特编码,从而在同样的精度下减少总的编码长度。例如对于一个仅限于北京地区的位置发布,由于北京市的纬度从北纬39°26′至41°03′,东经115°25′至117°30′,因此对于纬度而言小数点左侧部分可以只使用1比特即可(因为纬度跨度不超过2),经度而言则只使用2比特即可(因为经度跨度小于4),这样对于经度和纬度均可以减少7比特,总的编码长度可以减少14比特。Among them, the code does not need to cover all the latitude and longitude, that is to say, in most cases, other information (such as domain name suffix, etc.) may have provided some geographical location-related information, so the range of representation can be further narrowed, so that the longitude and the part to the left of the decimal point of latitude can be coded with fewer bits, thus reducing the total code length with the same precision. For example, for a location release limited to the Beijing area, since the latitude of Beijing is from 39°26′ to 41°03′ north latitude and 115°25′ to 117°30′ east longitude, the part to the left of the decimal point can only be Just use 1 bit (because the latitude span does not exceed 2), and only use 2 bits for longitude (because the longitude span is less than 4), so that 7 bits can be reduced for both longitude and latitude, and the total code length can be reduced by 14 bit.
进一步地,面向指定位置信息发布者,可以根据所要发布的位置,以及所需要覆盖的范围来确定所覆盖的位置编码。根据经纬度范围的块来计算所需要发布的组播地址范围可以有多种策略可以选择,既可以选择能够覆盖这一范围的单一范围,也可以采用多个范围叠加而进行。Further, for the designated location information issuer, the covered location code can be determined according to the location to be released and the required coverage range. There are multiple strategies for calculating the range of multicast addresses to be advertised based on the blocks in the latitude and longitude range. A single range that can cover this range can be selected, or multiple ranges can be superimposed.
由上所得,在本发明的另一个实施例中,本发明实施例可以根据地理位置范围得到覆盖这一地理位置范围的位置编码和位置掩码,即言本发明实施例能够使得在给出一个经度范围和纬度范围后,能够得到覆盖这一地块的位置编码、掩码所构成的系列。参照图6所示,根据给定经度范围为和纬度范围获取所形成的一个块状范围,其步骤为:From the above, in another embodiment of the present invention, the embodiment of the present invention can obtain the location code and location mask covering the geographic location range according to the geographic location range, that is to say, the embodiment of the present invention can enable a given After the longitude range and latitude range, a series of location codes and masks covering this plot can be obtained. Referring to Figure 6, according to the given longitude range and latitude range to obtain a block range formed, the steps are:
1)计算较小的经度和较小的纬度所生成的编码a和较大经度和较大纬度生成的编码b;1) Calculate the code a generated by the smaller longitude and the smaller latitude and the code b generated by the larger longitude and the larger latitude;
2)设置x=a,k=1;2) Set x=a, k=1;
3)让x和4k-1求按位比特与,所得结果是否为0,如果为0则进入步骤4,否则进入步骤5;3) Let x and 4k -1 find the bitwise AND, whether the obtained result is 0, if it is 0, go to step 4, otherwise go to step 5;
4)判断x+4k是否大于b,如果大于则步骤5,否则让k=k+1后重复步骤3,否则步骤5;4) judge whether x+4 k is greater than b, if greater then step 5, otherwise let k=k+1 and then repeat step 3, otherwise step 5;
5)输出x,k-1;5) output x, k-1;
6)设置x=x+4k-1,判断x是否大于b,如果大于b,则退出,否则设置k=1重复步骤3。6) Set x=x+4 k-1 , judge whether x is greater than b, if it is greater than b, exit, otherwise set k=1 and repeat step 3.
S103,根据对应的位置编码和位置掩码生成对应的域名。S103. Generate a corresponding domain name according to the corresponding location code and location mask.
进一步地,在本发明的一个实施例中,根据对应的位置编码和位置掩码生成对应的域名,具体包括:根据对应的位置编码和位置掩码从最左侧开始,每隔2m比特转换为一个域,以获取转换后的域的列表,其中,m是正整数;将域的列表进行逆序处理,并连接上预设后缀域名以生成对应的域名。Further, in an embodiment of the present invention, generating the corresponding domain name according to the corresponding position code and position mask specifically includes: starting from the leftmost according to the corresponding position code and position mask, converting every 2m bits into A domain, to obtain a list of converted domains, where m is a positive integer; process the list of domains in reverse order, and connect the preset suffix domain name to generate a corresponding domain name.
优选地,在本发明的一个实施例中,m=2。Preferably, in one embodiment of the present invention, m=2.
进一步地,在本发明的一个实施例中,每2m比特所转换成的域只有一个字符,以通过长度超过一个字符的域表示位置编码和位置掩码所限制范围内的实体域名。Further, in an embodiment of the present invention, every 2m bits is converted into a field with only one character, so that a field longer than one character is used to represent an entity domain name limited by the location code and the location mask.
本发明实施例将位置编码映射成相应的DNS域名。其中,域名系统是互联网的一项核心服务,它作为可以将域名和IP地址相互映射的一个分布式数据库,能够使人更方便的访问互联网,而不用去记住能够被机器直接读取的IP数串。DNS通过允许一个名称服务器把他的一部分名称服务(众所周知的zone)“委托”给子服务器而实现了一种层次结构的名称空间。所谓层次型命名机制,就是在名字中加入结构,而这种结构是层次型的。名字空间不再采用集中式管理,而是被划分成若干部分,每一部分授权给某个机构管理,授权管理机构可以将其所管辖的名字空间进一步划分,进一步授权给若干子机构管理。如此下去,名字空间管理组织形成一种层次型树形结构,其中每一节点(包括各层管理机构和最后的主机节点)都有一个相应的标识符,主机的名字就是从树叶到树根路径上各节点标识符的有序序列。显然,只要同一子树下每层节点的标识符不冲突,主机名绝对不会冲。参照图7所示,图7为DNS的这一层次结构示意图,其中的每个组成部分就是一个域,从直观上来看,DNS域名就是由“.”连接起来的一连串的字符。例如:www.tsinghua.edu.cn,其中顶级域为cn域,第二级域为中国教育和科研计算机网络的域“edu.cn”,第三级域为清华大学的域“tsinghua.edu.cn”。The embodiment of the present invention maps location codes to corresponding DNS domain names. Among them, the domain name system is a core service of the Internet. As a distributed database that can map domain names and IP addresses to each other, it can make it easier for people to access the Internet without having to remember IPs that can be directly read by machines. number string. DNS implements a hierarchical namespace by allowing a name server to "delegate" a portion of its name service (known as a zone) to subservers. The so-called hierarchical naming mechanism is to add structure to the name, and this structure is hierarchical. The namespace is no longer managed in a centralized manner, but is divided into several parts, and each part is authorized to be managed by a certain organization. The authorized management organization can further divide the namespace under its jurisdiction and further authorize several sub-organizations for management. In this way, the name space management organization forms a hierarchical tree structure, in which each node (including each level of management organization and the final host node) has a corresponding identifier, and the name of the host is the path from the leaf to the root of the tree. An ordered sequence of node identifiers on . Obviously, as long as the identifiers of each layer of nodes under the same subtree do not conflict, the host names will never conflict. Referring to Figure 7, Figure 7 is a schematic diagram of the hierarchical structure of DNS, in which each component is a domain, and from an intuitive point of view, a DNS domain name is a series of characters connected by ".". For example: www.tsinghua.edu.cn, where the top-level domain is the cn domain, the second-level domain is the domain "edu.cn" of China Education and Research Computer Network, and the third-level domain is the domain "tsinghua.edu. cn".
TCP/IP名字-地址映射由分布在各个层次的域名服务器完成,这些域名服务器是域名解析系统的核心。域名服务器实际上是一个服务器软件,运行在指定的机器上,完成名字-地址(即域名-IP地址)映射。通常我们把运行域名服务软件的机器叫做域名服务器。一次域名解析可以利用一个或多个域名服务器进行名字映射。对应于域名结构,互联网域名服务器也构成一定的层次结构。与域名的层次结构是基本一致的。TCP/IP name-address mapping is completed by domain name servers distributed at various levels, and these domain name servers are the core of the domain name resolution system. A domain name server is actually a server software that runs on a designated machine to complete name-address (namely domain name-IP address) mapping. Usually we call the machine running domain name service software a domain name server. A domain name resolution can use one or more domain name servers for name mapping. Corresponding to the domain name structure, the Internet domain name server also forms a certain hierarchical structure. It is basically consistent with the hierarchical structure of the domain name.
互联网中域名服务器组成的服务器树,是域名解析的算法赖以实现的基础。总的来说,域名解析采用自顶向下的算法,从根服务器开始直到叶服务器,在其间的某个节点上一定能找到所需的名字-地址映射。当然,由于父子节点的上下管辖关系,域名解析的过程只是一条从树中某节点(不一定是根节点)开始到另一节点(某叶节点)的一条自顶向下的单向路径,不需要遍历整个服务器树。The server tree composed of domain name servers in the Internet is the basis for the realization of domain name resolution algorithms. In general, domain name resolution adopts a top-down algorithm, starting from the root server to the leaf server, and the required name-address mapping must be found on a node in between. Of course, due to the upper and lower jurisdictional relationship between parent and child nodes, the process of domain name resolution is just a top-down one-way path from a certain node (not necessarily the root node) to another node (a certain leaf node) in the tree. The entire server tree needs to be traversed.
参照图8所示,域名解析的方式有两种。其中,第一种叫递归解析,要求域名服务器系统完成全部名字-地址变换;第二种叫迭代解析,每次请求一个服务器,如果没有完成解析,在解析的回应报文中应当告知下一可用服务器的地址,然后解析者再请求下一个服务器。二者的区别在于前者将复杂性和负担交给服务器软件,后者将复杂性和负担交给解析器软件,因此,一般说来,对于负载比较重,负责的域较多的域名服务器,会配置为只进行迭代查询,如根域名服务器;而负责的域较少,负载较轻的则可以进行递归解析,二者的区别可以参考图8所示。无论是哪一种解析方式,域名解析过程都要求,解析者都必须知道一个初始服务器的地址,每一服务器都至少知道根服务器地址。Referring to FIG. 8 , there are two domain name resolution methods. Among them, the first is called recursive resolution, which requires the domain name server system to complete all name-address transformations; the second is called iterative resolution, which requests a server each time. The address of the server, and then the resolver requests the next server. The difference between the two is that the former puts the complexity and burden on the server software, while the latter puts the complexity and burden on the resolver software. Therefore, generally speaking, for a domain name server with a heavy load and many domains in charge, it will It is configured to only perform iterative queries, such as the root domain name server; while it is responsible for fewer domains and lighter loads, it can perform recursive resolution. The difference between the two can be shown in Figure 8. Regardless of the resolution method, the domain name resolution process requires that the resolver must know the address of an initial server, and each server must at least know the address of the root server.
具体地,在本发明的一个实施例中,本发明实施例的位置编码以及位置掩码可以转换成DNS域名的形式,以便于实现特定位置的信息发布。参照图9所示,假设2n比特的位置编码,位置掩码为k(最左侧的2k比特所表述的区域范围),可以从最左侧开始,每隔2m比特转换为一个DNS域,不足长度则补零,将转换来的域的列表进行逆序,连接上预先设置的后缀域名,这样就得到了这一位置范围所映射的域名。这样做的优点在于,所转换得到的域名具有包含关系,也就是说,某个子域下面更长的域名所代表的位置,一定在该子域所代表的位置范围中。举例而言,假定后缀域名为lbs.com,如果采用4比特(即m=2)的转换方案,也就是说,每4个比特转换一次,参照图10所示的转换码表将被转换为域名,则经纬度为(116.3156326940,39.9953253066),n=24,掩码为22的区域用DNS域名来表示是7.8.7.4.d.d.5.d.9.e.0.lbs.com,而经纬度为(116.3156326940,39.9953253066)这一位置所对应的域名则为9.7.8.7.4.d.d.5.d.9.e.0.lbs.com。其中,实际使用时也可能采用其他的转码表,也有可能通过更复杂的编码方案如格雷码等进行编码。Specifically, in an embodiment of the present invention, the location code and the location mask of the embodiment of the present invention can be converted into a form of a DNS domain name, so as to facilitate the release of information at a specific location. Referring to Figure 9, assuming a 2n-bit position code, the position mask is k (the area represented by the leftmost 2k bits), which can be converted into a DNS domain every 2m bits starting from the leftmost. The length is filled with zeros, the list of converted domains is reversed, and the preset suffix domain name is connected, so that the domain name mapped to this location range is obtained. The advantage of this is that the converted domain name has a containment relationship, that is, the location represented by a longer domain name under a certain subdomain must be within the range of the location represented by the subdomain. For example, assuming that the suffix domain name is lbs.com, if a conversion scheme of 4 bits (i.e. m=2) is adopted, that is to say, every 4 bits are converted once, with reference to the conversion code table shown in Figure 10, it will be converted to domain name, then the longitude and latitude are (116.3156326940, 39.9953253066), n=24, and the area with mask as 22 is represented by the DNS domain name as 7.8.7.4.d.d.5.d.9.e.0.lbs.com, and the longitude and latitude are ( 116.3156326940, 39.9953253066) corresponds to the domain name 9.7.8.7.4.d.d.5.d.9.e.0.lbs.com. Among them, other transcoding tables may be used in actual use, and encoding may also be performed through more complex encoding schemes such as Gray codes.
在本发明的实施例中,本发明实施例可以获得相应的DNS域名的方法。本发明将根据映射表,将每4个比特的值(0-15)映射为一个固定的DNS所允许的字母,每个字母构成了一级域名,按照越大范围的编码在域名中越后的规则排列,通过这样的映射,使得位置信息便于进行DNS信息查询。In the embodiment of the present invention, the embodiment of the present invention may obtain a corresponding DNS domain name method. According to the mapping table, the present invention maps every 4-bit value (0-15) to a letter allowed by a fixed DNS, and each letter constitutes a first-level domain name, according to a larger range of coding, the later in the domain name Arranged regularly, through such a mapping, the location information is convenient for DNS information query.
进一步地,在本发明的一个实施例中,本发明实施例可以将位置编码/掩码所得到的域中的一部分另外建立名字,表述的是与这一地理位置相关的信息如这一地理位置上的机构等。这些名字要求长度大于1,以便与地理位置生成的域名相区别。例如,经纬度为(116.3156326940,39.9953253066),n=24,掩码为22的区域用DNS域名来表示是7.8.7.4.d.d.5.d.9.e.0.lbs.com,清华大学某实验室就在这一位置,因此可以建立一个完整域名为thu-a-lab.7.8.7.4.d.d.5.d.9.e.0.lbs.com的域名,由于这一名字thu-a-lab的长度超过了1,因此终端可以识别出这是一个最终的名字而非域。Furthermore, in an embodiment of the present invention, the embodiment of the present invention may additionally create a name for a part of the domain obtained by location encoding/masking, expressing information related to this geographic location, such as this geographic location institutions etc. These names require a length greater than 1 to distinguish them from domain names generated by geographic locations. For example, the longitude and latitude are (116.3156326940, 39.9953253066), n=24, and the area with mask 22 is represented by DNS domain name as 7.8.7.4.d.d.5.d.9.e.0.lbs.com, a laboratory of Tsinghua University In this position, it is possible to create a domain name with the full domain name thu-a-lab.7.8.7.4.d.d.5.d.9.e.0.lbs.com, because the name thu-a-lab The length exceeds 1, so the terminal can recognize that this is a final name and not a domain.
由于编码也可以不必涵盖所有的经纬度,因此域名长度也可以相应减少。也就是说,如果其他信息(如域名后缀等)可能已经提供了部分地理位置相关的信息。例如对于一个仅限于北京地区的位置发布,由于北京市的纬度从北纬39°26′至41°03′,东经115°25′至117°30′,因此对于纬度而言小数点左侧部分可以只使用1比特即可(因为纬度跨度不超过2),经度而言则只使用2比特即可(因为经度跨度小于4),这样对于经度和纬度均可以减少7比特,总的编码长度可以减少14比特。假设经度减去39之后使用2比特来表示,纬度减去115之后使用3比特表示,则经纬度为(116.3156326940,39.9953253066),n=18,则编码后的二进制经纬度为(001010100001100110,001111111011001101),用16进制描述则为(0a866,0fecd),相对应的位置编码则是000011011101110101000111100001111001(用16进制表示则为0ddd47879)。掩码为16的区域用DNS域名来表示是7.8.7.4.d.d.d.0.bj.lbs.com,清华大学某实验室的完整域名为thu-a-lab.7.8.7.4.d.d.d.0.bj.lbs.com的域名,以使域名层次结构更短而且更容易记忆。Since the code does not need to cover all latitude and longitude, the length of the domain name can also be reduced accordingly. That is to say, if other information (such as domain name suffix, etc.) may have provided part of the geographic location-related information. For example, for a location release limited to the Beijing area, since the latitude of Beijing is from 39°26′ to 41°03′ north latitude and 115°25′ to 117°30′ east longitude, the part to the left of the decimal point can only be Just use 1 bit (because the latitude span does not exceed 2), and only use 2 bits for longitude (because the longitude span is less than 4), so that 7 bits can be reduced for both longitude and latitude, and the total code length can be reduced by 14 bit. Assuming that the longitude minus 39 is represented by 2 bits, and the latitude minus 115 is represented by 3 bits, then the latitude and longitude is (116.3156326940, 39.9953253066), and n=18, then the binary longitude and latitude after encoding is (001010100001100110, 001111111011001101), using 16 The base description is (0a866, 0fecd), and the corresponding position code is 000011011101110101000111100001111001 (0ddd47879 in hexadecimal). The area with a mask of 16 is represented by the DNS domain name as 7.8.7.4.d.d.d.0.bj.lbs.com, and the complete domain name of a laboratory in Tsinghua University is thu-a-lab.7.8.7.4.d.d.d.0.bj.lbs .com domain names to make the domain name hierarchy shorter and easier to remember.
在本发明的一个实施例中,本发明实施例通过所指定的DNS域名来获得特定地理位置指定信息。其中,在本发明实施例中,上网设备首先获得自己的位置信息,通过这一信息得到与此位置相关的域,通过访问这一域所建立的信息发布网站,上网设备可以互相知晓并且接收到该位置上的信息。In one embodiment of the present invention, the embodiment of the present invention obtains the designated information of the specific geographic location through the designated DNS domain name. Among them, in the embodiment of the present invention, the Internet-connected devices first obtain their own location information, obtain the domain related to this location through this information, and access the information publishing website established in this domain, and the Internet-connected devices can know each other and receive information at that location.
进一步地,在本发明的一个实施例中,本发明实施例找到与本位置最接近的信息发布网站的方法,在得到自己的地理位置之后,然后从最大的位置掩码开始逐一递减,直到找到可用的域名为止,则可以找到与目前位置最接近的信息发布服务器的域名。Further, in one embodiment of the present invention, the embodiment of the present invention finds the method of the information release website closest to the present location, after obtaining one's own geographic location, and then decreases one by one from the largest location mask until finding available domain name, then the domain name of the information distribution server closest to the current location can be found.
在本发明的实施例中,举例说明,例如上网装置在获得自己的地理位置之后,通过上述算法以及其所关注的地址掩码得到映射成的DNS域的WWW服务器域名,如www.7.8.7.4.d.d.5.d.9.e.0.lbs.com,通过其他渠道如WWW等访问该域名,可以得到相对于该位置的指定信息。进一步的,该上网装置在得到自己的地理位置之后,可以从最大的位置掩码(也就是最小的可能范围)开始逐一递减,直到找到可用的域名为止。例如,用户可以先试图解析www.9.7.8.7.4.d.d.5.d.9.e.0.lbs.com的A或者AAAA记录,如果能够返回结果,则可以访问该服务器的WWW服务得到与该位置相关的信息发布。如果没有找到,则用户可以继续寻找www.7.8.7.4.d.d.5.d.9.e.0.lbs.com服务器,如果仍然没有得到结果,则可以继续寻找www.8.7.4.d.d.5.d.9.e.0.lbs.com,依次类推直到返回结果为止。通过这一方法,即使某个位置没有对应的位置发布,也可以向上寻找直到找到相应的位置服务器为止。In the embodiment of the present invention, for example, after the Internet access device obtains its own geographic location, it obtains the WWW server domain name of the DNS domain mapped to it through the above algorithm and the address mask it pays attention to, such as www.7.8.7.4 .d.d.5.d.9.e.0.lbs.com, access the domain name through other channels such as WWW, you can get the specified information relative to the location. Further, after the Internet access device obtains its own geographical location, it may start to decrease one by one from the largest location mask (that is, the smallest possible range) until an available domain name is found. For example, the user can first try to resolve the A or AAAA record of www.9.7.8.7.4.d.d.5.d.9.e.0.lbs.com, and if the result can be returned, the user can access the WWW service of the server to get the same Information about this location is published. If not found, the user can continue to search for the www.7.8.7.4.d.d.5.d.9.e.0.lbs.com server, and if the result is still not obtained, the user can continue to search for www.8.7.4.d.d.5. d.9.e.0.lbs.com, and so on until a result is returned. In this way, even if there is no corresponding location announcement for a certain location, it can search upwards until it finds the corresponding location server.
在本发明的一个实施例中,上述方法还包括:访问域名以获取对应的指定位置范围的信息。In an embodiment of the present invention, the above method further includes: accessing the domain name to acquire the information of the corresponding designated location range.
其中,在本发明的实施例中,上网设备即上网装置可以通过其自身的定位模块获得该设备所在的地理位置,然后根据该地理位置获得相应的域名,然后通过访问该域名,上网设备可以互相知晓并且接收到该位置上的信息。随着地理位置的切换,该上网设备自动生成新的域名,并自动访问新域名所对应的指定位置上的信息。而且,如果用户对地理范围的修改(包括希望进入到更大的地理范围,或者进入到更细致的地理范围),上网设备可以生成不同范围所代表的域名。该上网设备也可以同时访问多个不同范围所针对的域名,以同时接收来自于多个位置范围的信息。Among them, in the embodiment of the present invention, the Internet access device, that is, the Internet access device, can obtain the geographic location of the device through its own positioning module, and then obtain the corresponding domain name according to the geographic location, and then by accessing the domain name, the Internet access devices can communicate with each other. Know and receive information on the location. With the switching of the geographical location, the Internet device automatically generates a new domain name, and automatically accesses the information on the designated location corresponding to the new domain name. Moreover, if the user modifies the geographic range (including wishing to enter a larger geographic range, or enter a more detailed geographic range), the Internet access device can generate domain names represented by different ranges. The Internet access device can also access multiple domain names targeted at different ranges at the same time, so as to receive information from multiple location ranges at the same time.
综上所述,本发明实施例的特点在于,通过将地理位置编码为可以聚类的位置编码,使得位置编码不仅可以定位某个位置,还可以覆盖一个区域,并且根据这一位置编码,可以生成特定的DNS域名,基于这一域名进行信息发布,能够让在同一个位置或者指定位置区域的上网设备互相知晓,而这些设备可以通过特定的DNS域名得到与这些位置相关的信息。本发明使得指定位置的信息发布和通信变得更为容易,其可以在手机等移动上网设备上实现。To sum up, the embodiment of the present invention is characterized in that by encoding the geographic location as a position code that can be clustered, the position code can not only locate a certain position, but also cover an area, and according to this position code, can Generate a specific DNS domain name, publish information based on this domain name, so that Internet devices in the same location or a specified location area can know each other, and these devices can obtain information related to these locations through a specific DNS domain name. The invention makes it easier to issue and communicate information at designated locations, and can be implemented on mobile Internet devices such as mobile phones.
根据本发明实施例提出的基于地理位置编码的域名生成方法,通过根据经度信息和纬度信息生成对应的位置编码,从而根据对应的位置编码和预先设置的掩码生成对应的域名,将地理位置编码为可以聚类的位置编码,实现使得位置编码不仅可以定位某个位置,还可以覆盖一个区域,并且根据位置编码生成特定的DNS,基于域名进行信息发布和接收,能够让在同一个位置或者指定位置区域的上网设备互相知晓,并且上网设备可以通过特定的DNS域名得到与这些位置相关的信息,使得指定位置的信息发布和通信变得更为容易。According to the domain name generation method based on geographic location coding proposed in the embodiment of the present invention, by generating the corresponding location code according to the longitude information and latitude information, the corresponding domain name is generated according to the corresponding location code and the preset mask, and the geographic location code is generated. As a location code that can be clustered, the location code can not only locate a certain location, but also cover an area, and generate a specific DNS based on the location code, and publish and receive information based on the domain name. The Internet devices in the location area know each other, and the Internet devices can obtain information related to these locations through a specific DNS domain name, making it easier to publish and communicate information at a specified location.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment used. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在不脱离本发明的原理和宗旨的情况下在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be construed as limitations to the present invention. Variations, modifications, substitutions, and modifications to the above-described embodiments are possible within the scope of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410528621.7A CN104320383B (en) | 2014-10-09 | 2014-10-09 | Domain name generation method based on geographical position coding |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410528621.7A CN104320383B (en) | 2014-10-09 | 2014-10-09 | Domain name generation method based on geographical position coding |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104320383A CN104320383A (en) | 2015-01-28 |
CN104320383B true CN104320383B (en) | 2018-04-10 |
Family
ID=52375554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410528621.7A Active CN104320383B (en) | 2014-10-09 | 2014-10-09 | Domain name generation method based on geographical position coding |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104320383B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104598649A (en) * | 2015-02-26 | 2015-05-06 | 清华大学 | Geographic position coding method |
CN105224373A (en) * | 2015-11-03 | 2016-01-06 | 中体彩科技发展有限公司 | The method and system of different editions application program parallel running |
CN107992740B (en) * | 2016-10-27 | 2021-11-09 | 腾讯科技(深圳)有限公司 | Mask processing method and client |
CN108924273B (en) * | 2018-06-29 | 2022-05-06 | 清华大学 | Location-related information access method and system based on geographic interest point coding |
WO2020000403A1 (en) | 2018-06-29 | 2020-01-02 | 清华大学 | Location-related information access method and device based on geographic interest point coding |
CN112052422A (en) * | 2020-09-29 | 2020-12-08 | 微医云(杭州)控股有限公司 | Method and device for building internet hospital webpage, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6005504A (en) * | 1997-01-23 | 1999-12-21 | Sony Corporation | Position information encoding apparatus and method thereof, position information decoding apparatus and method thereof, and map information processing apparatus and method thereof |
CN103004102A (en) * | 2010-05-13 | 2013-03-27 | 西北大学 | Geolocation system and method |
CN103383682A (en) * | 2012-05-01 | 2013-11-06 | 刘龙 | Geographic coding method, and position inquiring system and method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7302343B2 (en) * | 2003-07-31 | 2007-11-27 | Microsoft Corporation | Compact text encoding of latitude/longitude coordinates |
US7574291B2 (en) * | 2007-01-03 | 2009-08-11 | Yun-Feng Hsieh | Apparatus and method using compressed codes for comprising latitude/longitude information |
-
2014
- 2014-10-09 CN CN201410528621.7A patent/CN104320383B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6005504A (en) * | 1997-01-23 | 1999-12-21 | Sony Corporation | Position information encoding apparatus and method thereof, position information decoding apparatus and method thereof, and map information processing apparatus and method thereof |
CN103004102A (en) * | 2010-05-13 | 2013-03-27 | 西北大学 | Geolocation system and method |
CN103383682A (en) * | 2012-05-01 | 2013-11-06 | 刘龙 | Geographic coding method, and position inquiring system and method |
Also Published As
Publication number | Publication date |
---|---|
CN104320383A (en) | 2015-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104320383B (en) | Domain name generation method based on geographical position coding | |
JP6042997B2 (en) | Method and server for specifying geographical location of IP using location data of portable terminal | |
CN104298740B (en) | Communication means based on improved geographical location coding | |
US9719790B2 (en) | Mapping uncertain geometries to graticules | |
CN104598649A (en) | Geographic position coding method | |
CN112347377B (en) | IP address field searching method, service scheduling method, device and electronic equipment | |
US10366113B2 (en) | Method and system for generating a geocode trie and facilitating reverse geocode lookups | |
CN103636182A (en) | System and method for translating network addresses | |
WO2016095749A1 (en) | Method and device for querying spatial object and establishing spatial index of electronic map | |
JP2019507994A (en) | Method and apparatus for intelligent domain name system transfer | |
US9710485B2 (en) | Density-based dynamic geohash | |
CN105959433A (en) | Domain name resolution method and domain name resolution system | |
KR20170047189A (en) | Techniques for server-controlled tiling of location-based information | |
US11303606B1 (en) | Hashing name resolution requests according to an identified routing policy | |
US9049268B2 (en) | Global provisioning of millions of users with deployment units | |
CN107613039B (en) | IP address attribution query method, device, system and storage medium | |
CN109447820A (en) | Data processing method, device, computer equipment and storage medium | |
CN103460209A (en) | Method of encoding a data identifier | |
CN115203600A (en) | Method, device, equipment and medium for generating short link | |
US9602129B2 (en) | Compactly storing geodetic points | |
CN108462759B (en) | Domain name resolution method and device | |
CN112822307B (en) | A method and device for processing network identification data | |
US12218904B2 (en) | Network address compression for electronic devices | |
CN108924273B (en) | Location-related information access method and system based on geographic interest point coding | |
CN105245626A (en) | Method for realizing website addressing by using shortcut domain name in private network |
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 |