Overview
This report summarizes a pair of programming projects. I (Lin Meng) and Li yazhao jointly completed this project.
The goal of the project is to obtain the geographical location information of the user through the user's IP address when the user accesses the academic map, so as to reposition the map and set the location of the user as the center currently displayed. This function is available on
Geolocation to get the latitude and longitude addressIn the past, if you want to obtain the location of the Internet users based on the user's IP address to obtain the geographical position, so that the data obtained and real data is very large deviation. To get a more precise position, you can use the HTML5 geolocation
IP geolocation Query class
/**
File name: IpLocation.class.php
* IP Geo-Location query class (Master file I'm uploading it.) I upload a test file, and there is a QQWry.Dat this can be downloaded to the pure IP library because there are more than 6M so here do not upload it up.
*
650) this.width=650; "src=" http://imga.chrome001.com/article/201603/24/2145032eeekhcvevwinciu.png "border=" 0 " Class= "Shadow" alt= "My IP Address" style= "border:0px;vertical-align:middle;margin-bottom:0px;"/>Plugin Introduction:Many times we need to use the IP address, this noun may be known to everyone, but do you
One, about Taobao IP address library
The services we currently offer include:1. According to the IP address provided by the user, the geographic and geographic information of the IP address is quickly queried, including the state
the upper level, that is, the accuracy of the descending sequence in the final node, so even if the wrong way, we only need to take the entire list of "next element" is OK. In fact, this is a bit like a hash conflict list. But why is it so obvious that the way is not widely used? The reason is that the maintenance cost is too high, all the routing items are interrelated, insert/delete/update a route item, the worst case can touch the changes of all t
Sometimes you need to know which country your site visitors come from-for example, if you're planning to implement an ad plan for a geographic area. This method is described in this article.
Sometimes you need to know which country your site visitors come from-for example, if you're planning to implement an ad plan for a geographic area. This is where tools like Maxmind's GeoIP are used-it allows you to easily get their exact geolocation information
Sometimes you need to know which country your site visitors come from-for example, if you're planning to implement an ad plan for a geographic area. This method is described in this article.
Sometimes you need to know which country your site visitors come from-for example, if you're planning to implement an ad plan for a geographic area. This is where tools like Maxminds GeoIP are used-it allows you to easily get their exact geolocation information fr
the user's geographical information(3) Regional advertising delivery. Many businesses need accurate ad delivery, which relies on the accuracy of the IP address library.(4) The CDN dispatching system wants to dispatch user access traffic from each region to the nearest CDN node, which also relies on the accuracy of the
System "]
2. Another geo_ip
Before using it, you need to register a user in the http://ipinfodb.com/and get your own key when activating it. You need to use your own key to access the interface of the website.
GitHub address: https://github.com/jeroenj/geo_ip
#209.85.227.104 = Google. be (US) geoip. geolocation ('2017. 85.227.104 ') # returns: {: Status => "OK",:
matching "Beijing" both have the longitude and latitude, however, it is best to show the user a different zoom plane. The zoom level is based on Google's map. If you use it on the 51ditu interface, use 17-zoom.
Note that IP address query uses the IP address library on the Internet, and
One, about Taobao IP address library
The services we currently offer include:
1. According to the IP address provided by the user, the geographic and geographic information of the IP address is quickly queried, including the sta
Mysql-explanation of host name and IP address resolution-[Warning] IPaddressxxxcouldnotberesolved: Nameorservicenotknown bitsCN.com
Symptom:
When the program connects to mysql, mysql error. log prompts:
[Warning] IP address '10. 0.0.220 'cocould not be resolved: Name or service not known
Cause:
The Mysql database serve
Symptom:
When the program connects to mysql, mysql error. log prompts:
[Warning] IP address '10. 0.0.220 'cocould not be resolved: Name or service not known
Cause:
The Mysql database server does not have/etc/hosts configured or DNS services. As a result, the mysqld thread fails to parse the host name corresponding to the IP a
An asp.net Website access IP address filtering method based on custom code !, Asp. netip
For information security purposes, you may need to restrict the IP addresses for external access to some enterprise's core systems, especially when accessing the Internet, although IIS also provides restrictions or permits based on the IP
error. The voting is allowed if the limit is not exceeded, and the number is increased by one.
Cache to filesSessionRedis and other memory databasesMySQL and other SQL databases
All can be implemented
There are advantages and disadvantages, speed, efficiency, and how to choose between them. Of course, it also depends on the service accuracy.
It is not reliable to use client javascript to limit the number of submissions. If someone directly modi
Many projects will need to obtain the user's geographic information, but sometimes not directly through the location interface to obtain, then what to do? This paper mainly introduces the method that PHP obtains IP address and region through chianz.com, and it is a very practical technique to parse IP address and regio
Time Server IP address and time synchronization method of China National Time Service Center
We all know that the computer's time is maintained by a battery power supply, and the accuracy is poor, often when you are inaccurate. Some public network time servers published on the InternetNTP server, you can automatically and periodically synchronize the standar
Git project recommendation | ip address ing library ip2region-ip address to the region ing library. mom no longer needs to worry about my ip address location.
1. 99.9% accuracy, occasio
GeoIPASNum. dat GeoLiteCity. dat/usr/share/GeoIP/If you re-Execute geoiplookup, you will see the additional autonomous system Number (AS Number. This will give you a general idea of which administrative domain the IP address belongs ).1 geoiplookup 128.112.119.20912 GeoIP Country Edition: US, United StatesGeoIP ASNum Edition: AS88 Princeton UniversityIf you do not include any parameters when running the co
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.