IP geographical location information query method, terminal device and storage medium
A technology of geographic location information and query method, applied in the field of IP geographic location information query method, terminal equipment and storage medium, can solve the problems of long time consumption, memory consumption, large proportion of network transmission time consumption, etc., so as to reduce the query volume , the effect of reducing loading time and query speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] Embodiments of the present invention provide a method for querying IP geographic location information, such as figure 1 As shown, the method includes the following steps:
[0040] S1: traverse the IP information database, and convert each piece of IP information in it into the format of starting IP, ending IP and geographic location information.
[0041] Geographical location information may be composed of countries, provinces, cities, counties, and townships, which can be set by those skilled in the art without limitation here.
[0042] The format after conversion in this embodiment is: Long-type start IP|Long-type end IP|country|province|city|county|township.
[0043] S2: After sorting all the IP information, store it in the intermediate file.
[0044] In this embodiment, sort according to the size of the initial IP in the IP information. Specifically, after the initial IP is set as a key and stored in the TreeMap for sorting, the TreeMap is traversed, and the IP in...
Embodiment 2
[0073] The present invention also provides an IP geographic location information query terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the computer program is implemented when the processor executes the computer program. Steps in the above method embodiment of Embodiment 1 of the present invention.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com