Diskuze: Špatné vravení pozice
V předchozím kvízu, Online test znalostí JavaScript, jsme si ověřili nabyté zkušenosti z kurzu.
Zobrazeno 3 zpráv z 3.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
V předchozím kvízu, Online test znalostí JavaScript, jsme si ověřili nabyté zkušenosti z kurzu.
GeoLocation features use MANY different ways to figure out your location. In addition to the standard ways, Chrome at least one additional.
GPS co-ordinates -- If available, these are the most accurate.
Geo-IP -- Try to look up the IP address and find its location. This is known to be wildly inaccurate
(Chrome) Access Point Names -- The Google Maps van also collects Access Point (SSID) and their location. Chrome will use your current access point to try to find your location.
If your access point moved, it can throw off things. If you have to resort to Geo-IP, accuracy is a crap-shoot.In addition, using proxy servers or VPNs will make Geo-IP useless.
Môžeš ešte skúsiť pridať ako tretí argument (druhý je error callback) do funkcie getCurrentPosition objekt s kľúčom enableHighAccuracy a hodnotou true.
Jasně, trochu jsem si myslel že to bude tímhle... U mě nejspíše
fungovalo to Geo-IP, protože mi to ukázalo místo o 130km dál... no nic i tak
díky za info
Zobrazeno 3 zpráv z 3.