HTML5 GeoLocation tends to be much more accurate than IP-based GeoLocation.
IP-based GeoLocation depends on the databases associated with Internet service providers to determine where you are. This does not work well when your ISPs serve a very large area and issue dynamic IP addresses. An address in one city today may be 100 miles from tomorrow. In addition, these databases are usually not updated frequently. If your ISP sells blocks of IP addresses or moves them to a new city, the database may still incorrectly assume that you are somewhere else.
HTML5 , , , . GPS (, ), , . webapps, . GPS , , , . , , , , - .
, IP, , , , 50 .
HTML5, , , 20 .
webapp, , GeoLocation HTML5, . , HTML5 , GeoIP. , , - , HTML5 .
geolocation-javascript Google Code, :
if(geo_position_js.init()){
geo_position_js.getCurrentPosition(success_callback,error_callback);
}
else{
}