7月8日是什么星座| 痛风不能吃什么食物表| 猫驱虫药什么牌子好| jasonwood是什么牌子| 什么叫化疗| 联字五行属什么| 粉瘤是什么| 高线是什么| 白牌黑字是什么车牌| 脂肪由什么组成| 半什么半什么的成语| 暗网是什么意思| 学生近视配什么镜片好| 中药为什么要热着喝| 前列腺吃什么食物调理| 带环了月经推迟不来什么原因| iic是什么意思| 枸杞泡水喝有什么好处| 闪光眼是什么症状| 凶猛的动物是什么生肖| 口引念什么| 舍本逐末是什么意思| 嘛是什么意思| 学五行属什么| 早上起床口苦口干是什么原因| 甘油三酯偏高有什么危害| 地藏王菩萨保佑什么| 美什么美什么| 白凉粉是什么原料做的| 男人喜欢什么罩杯| 84消毒液不能和什么一起用| NT是什么钱| 白发越来越多是什么原因造成的| 加持什么意思| 什么叫有氧运动和无氧运动| 世界上最可怕的动物是什么| 三重一大是什么内容| 面红耳赤是什么意思| 肾结石可以喝什么饮料| 什么的虾| 鸡胗是什么器官| 舌头热灼是什么原因| 87年什么命| 山炮是什么意思| 六月二十六是什么星座| 为什么很多人不去庐山| 静脉曲张吃什么食物| 世事无常是什么意思| 小孩脚后跟疼是什么原因| 走路出汗多是什么原因| 梦到自己杀人是什么意思| 做小月子要注意什么| 迁单是什么意思| 贫血吃什么补的快| 女人长期喝西洋参有什么好处| 倭瓜是什么瓜| 晚上难入睡是什么原因| 天秤女喜欢什么样的男生| mds是什么| 肝气不舒有什么症状| 肢体拘挛是什么意思| 为什么身体没力气也没有精神| 病灶是什么意思| 落户是什么意思| 双环征是什么意思| HlV是什么| 出台什么意思| 化骨龙是什么意思| 千千结是什么意思| 勾魂是什么意思| 什么牌子| 痛经吃什么药最有效| 入睡困难吃什么中成药| 翻什么越什么| 闭口是什么| 灵芝孢子粉有什么作用| 6月24日什么星座| 小猫的耳朵像什么| 火龙果有什么功效| 负责任是什么意思| 济公属什么生肖的| 4月6日什么星座| 无与伦比是什么意思| 酸菜鱼里面加什么配菜好吃| 木须肉为什么叫木须肉| 湿气重吃什么蔬菜| 什么是神经官能症| 总钙偏高是什么原因| 滔滔不绝的绝什么意思| 松花粉有什么功效| 胆囊炎有什么症状| 胃热是什么原因引起的| 野生铁皮石斛什么价| 什么是腰肌劳损| 失眠是什么引起的| 看灰指甲去医院挂什么科| vgr100是什么药| 乌龟为什么会叫| 戴的部首是什么| 吃什么对肝好怎么养肝| 心虚是什么意思| 脸部麻木是什么原因引起的| 排卵期有什么明显症状| 八股文是什么| 元旦北京有什么好玩的| 醋泡葡萄干有什么功效和作用| 什么加什么等于粉色| 胶质瘤是什么病| 全会是什么意思| 厚黑学的精髓是什么| 诚字属于五行属什么| 白色配什么颜色好看| 梦见被雨淋是什么意思| 马黛茶什么味道| 麝香对孕妇有什么危害性| 入围是什么意思| 口腔科主要看什么| 早上口干苦是什么原因| 电磁炉上可以放什么锅| 屋漏偏逢连夜雨是什么意思| 巾失念什么| 什么字永远写不好| 老戏骨是什么意思| yy什么意思| 吃什么助勃药能硬| 其多列是什么意思| 什么东西去火| 湿气重吃什么药最有效| 牙齿打桩是什么意思| 己未日五行属什么| 尼特族是什么意思| 男性夜间盗汗是什么原因| 211大学什么意思| ena是什么检查项目| 协会是什么意思| 红色连衣裙配什么鞋子好看| 什么的云海| 小酌怡情什么意思| 煞星是什么意思| 腋下是什么经络| 脚气用什么药最好| 94属什么生肖| 苋菜不能和什么一起吃| 基尼是什么货币| 什么是菜花状疣图片| 撸铁是什么意思| 龟头炎挂什么科| 精液是什么组成的| 1月23号什么星座| 大腿抽筋是什么原因引起的| 医保乙类是什么意思| 6月18日是什么节| 跖疣用什么药| 舌苔黄腻吃什么药| 下午4点多是什么时辰| 女人更年期是什么症状| 雾化是治疗什么的| 吃饭容易出汗是什么原因| 感冒发烧吃什么水果| 尿道口为什么叫马眼| 继发性是什么意思| 空气炸锅什么牌子好| 白介素6升高说明什么| 羟基丁酸在淘宝叫什么| 准奏是什么意思| 鼻塞打喷嚏是什么原因| 什么是鸡胸病症状图片| 狮子座是什么象星座| 肚子发胀是什么原因| 梦到刷牙什么意思| 睡觉放屁是什么原因| 白色情人节什么意思| 炉甘石是什么东西| 心律不齐吃什么药好| 顺风耳是什么意思| 骨髓水肿吃什么消炎药| 虎父无犬子什么意思| 黑色签字笔是什么笔| 脾肾亏虚的症状是什么| 曼陀罗是什么意思| 恋爱脑什么意思| 瓜子脸配什么发型好看| 鞑虏是什么意思| 章鱼吃什么| 一月五日是什么星座| 甘油三脂是什么意思| 胃热吃什么药| 减肥吃什么蔬菜| 疏通血管吃什么药最好| 朱元璋代表什么生肖| 一一是什么意思| 胃胀吃什么药效果最好| 分母是什么意思| 便秘什么原因引起的| 什么人每天靠运气赚钱| 名分是什么意思| 拔完牙能吃什么| 单核细胞比率偏高是什么意思| 月经期喝什么水最好| girl什么意思| 严重失眠吃什么药最好| 6月25日是什么日子| 学痞是什么意思| 系带割掉了有什么影响| 小样什么意思| 1981年是什么年| 乳头突然疼痛什么原因| 胃反流吃什么药好| 男人下面胀痛什么原因造成呢| 什么是假性狐臭| 去乙酰毛花苷又叫什么| 人头马是什么酒| 蜂蜜什么人不能吃| 98年属什么| 神经大条是什么意思| h型高血压是什么意思| 港式按摩是什么意思| 肝瘘是什么| av是什么意思| 白塞病是什么病| 发烧可以吃什么| 九月23日是什么星座| 胆囊炎吃什么水果好| merry是什么意思| 骨质疏松吃什么药| 富贵竹开花什么预兆| 心肌炎是什么| 艾滋病初期有什么症状| 胆红素偏高是什么意思| 胎盘成熟度0级什么意思| 手抽筋是什么原因| 为什么恐龙会灭绝| 羊排和什么一起炖好吃| 他说风雨中这点痛算什么| 娭毑是什么意思| 一键挪车什么意思| 小便失禁是什么原因| 帽子丢了有什么预兆| 慢性肠炎有什么症状| 甲功不正常有什么表现| 什么原因导致卵巢早衰| 睡莲为什么叫睡莲| 小便有血尿是什么原因| 什么是翘舌音| 0z是什么单位| 黑色柳丁是什么意思| 病毒性肺炎吃什么药| 疱疹一般长在什么部位| whatsapp是什么软件| 卵胎生是什么意思| 总胆红素偏高吃什么药| 硒片什么牌子好| 浅笑嫣然是什么意思| 鼻炎吃什么药效果最好| fpa是什么意思| 鼻子发干是什么原因造成的| 白瓜是什么瓜| 敞开心扉是什么意思| o型血和ab型血生的孩子是什么血型| 女性腰疼去医院挂什么科| 雨霖铃是什么意思| 梦到跟人吵架是什么意思| 人类什么时候出现的| 高筋面粉适合做什么| 百度Jump to content

中航气弹簧张晓冬:工匠精神+持续创新 成就产

From Wikipedia, the free encyclopedia
百度 美联储上一次启动政策紧缩周期是在2004年至2006年期间,当时巴西、印度、印尼和马来西亚等主要新兴市场的利率决策者均紧随美联储加息,只不过力度各异。

Geolocation API
First published22 December 2008; 16 years ago (2025-08-06)[1][2]
Latest versionW3C Recommendation
1 September 2022; 2 years ago (2025-08-06)[3]
Organization
CommitteeGeolocation Working Group[3]
EditorsAndrei Popescu[3]
DomainGeographical location information
Websitewww.w3.org/TR/geolocation-API/

The W3C Geolocation API is an effort by the World Wide Web Consortium (W3C) to standardize an interface to retrieve the geographical location information for a client-side device.[3] It defines a set of objects, ECMAScript standard compliant, that executing in the client application give the client's device location through the consulting of Location Information Servers, which are transparent for the application programming interface (API). The most common sources of location information are IP address, Wi-Fi and Bluetooth MAC address, radio-frequency identification (RFID), Wi-Fi connection location, or device Global Positioning System (GPS) and GSM/CDMA cell IDs. The location is returned with a given accuracy depending on the best location information source available.

The result of W3C Geolocation API will usually give 4 location properties, including latitude and longitude (coordinates), altitude (height), and accuracy [of the position gathered], which all depend on the location sources.[citation needed]

Deployment in web browsers

[edit]

Web pages can use the Geolocation API directly if the web browser implements it. Historically, some browsers could gain support via the Google Gears plugin, but this was discontinued in 2010 and the server-side API it depended on stopped responding in 2012.[4][5]

The Geolocation API is ideally suited to web applications for mobile devices such as smartphones. On desktop computers, the W3C Geolocation API works in Firefox since version 3.5, Google Chrome,[6] Opera 10.6,[7] Internet Explorer 9.0,[8] and Safari 5. On mobile devices, it works on Android (firmware 2.0+), iOS, Windows Phone and Maemo. The W3C Geolocation API is also supported by Opera Mobile 10.1 – available for Android and Symbian devices (S60 generations 3 & 5) since 24 November 2010.[9] Browsers initially allowed access to the API in insecure contexts, but in the context of Secure Contexts,[10] browsers, e.g., Chrome,[11] now generally require a secure connection.

Google Gears provided geolocation support for older and non-compliant browsers, including Internet Explorer 7.0+ as a Gears plugin, and Google Chrome which implemented Gears natively. It also supported geolocation on mobile devices as a plugin for the Android browser (pre version 2.0) and Opera Mobile for Windows Mobile. However, the Google Gears Geolocation API is incompatible with the W3C Geolocation API and is no longer supported.

Location sources

[edit]

The Geolocation API does not provide the location information. The location information is obtained by a device (such as a smartphone, PC or modem), which is then served by the API to be brought in browser. Usually geolocation will try to determine a device's position using one of these several methods.

GPS (Global Positioning System)
This happens for any device which has GPS capabilities. A smartphone with GPS capabilities and set to high accuracy mode will be likely to obtain the location data from this. GPS calculate location information from the satellite signal. It has the highest accuracy; in most Android smartphones, the accuracy can be up to 10 metres.
Mobile Network Location
Mobile phone tracking is used if a cellphone or wireless modem is used without a GPS chip built in.
Wi-Fi Positioning System
If Wi-Fi is used indoors, a Wi-Fi positioning system is the likeliest source. Some Wi-Fi spots have location services capabilities.
IP Address Location
Location is detected based on the nearest public IP address on a device (which can be a computer, the router it is connected to, or the Internet Service Provider (ISP) the router uses). The location depends on the IP information available, but in many cases where the IP is hidden behind an ISP network address translation, the accuracy is only to the level of a city, region or even country.

Implementation

[edit]

Though the implementation is not specified, W3C Geolocation API is built on extant technologies, and is heavily influenced by Google Gears Geolocation API. Example: Firefox's Geolocation implementation[12] uses Google's network location provider.[5] Google Gears Geolocation works by sending a set of parameters that could give a hint as to where the user's physical location is to a network location provider server, which is by default the one provided by Google (code.l.google.com).[13] Some of the parameters are lists of sensed mobile cell towers and Wi-Fi networks, all with sensed signal strengths. These parameters are encapsulated into a JavaScript Object Notation (JSON) message and sent to the network location provider via HTTP POST. Based on these parameters, the network location provider can calculate the location. Common uses for this location information include enforcing access controls, localizing and customizing content, analyzing traffic, contextual advertising and preventing identity theft.[14]

Example code

[edit]

Simple JavaScript code that checks if the browser has the Geolocation API implemented and then uses it to get the current position of the device. this code creates a function which can be called on HTML using <body onload="geoFindMe()">:

const geoFindMe = () => {
    if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(success, error, geoOptions);
    } else {
        console.log("Geolocation services are not supported by your web browser.");
    }
}

const success = (position) => {
    const latitude = position.coords.latitude;
    const longitude = position.coords.longitude;
    const altitude = position.coords.altitude;
    const accuracy = position.coords.accuracy;
    console.log(`lat: ${latitude} long: ${longitude}`);
}

const error = (error) => {
    console.log(`Unable to retrieve your location due to ${error.code}: ${error.message}`);
}

const geoOptions = {
    enableHighAccuracy: true,
    maximumAge: 30000,
    timeout: 27000
};

See also

[edit]

References

[edit]
  1. ^ "Geolocation API Specification 2nd Edition Publication History - W3C". n.d. Retrieved 21 April 2021.
  2. ^ Popescu, Andrei (22 December 2008). "Geolocation API Specification". W3C. Geolocation Working Group. Retrieved 21 April 2021.
  3. ^ a b c d Cáceres, Marcos; Grant, Reilly (1 September 2022). "Geolocation API Specification". W3C. Geolocation Working Group. Retrieved 8 February 2024.
  4. ^ "Geolocation API: Gears API: Google Code". Google Code. 9 July 2009. Archived from the original on 14 February 2012. Retrieved 21 April 2021.
  5. ^ a b "GeolocationAPI - gears - Provides the geolocation of a device running a Gears-enabled web browser. - Improving Your Web Browser - Google Project Hosting". Google Code. n.d. Archived from the original on 22 December 2015. Retrieved 21 April 2021.
  6. ^ "A new Chrome stable release: Welcome, Mac and Linux!". Google Chrome Blog. 25 May 2010. Retrieved 21 April 2021.
  7. ^ Kleinhout, Huib (1 July 2021). "Opera 10.60 goes final". My Opera. Opera Software. Archived from the original on 9 November 2011. Retrieved 21 April 2021.
  8. ^ ieblog (17 February 2011). "W3C Geolocation API in IE9 - IEBlog - Site Home - MSDN Blogs". IEBlog. Archived from the original on 19 February 2011. Retrieved 21 April 2021.
  9. ^ Opera.com (25 November 2010). "Opera speeds up Symbian browsing". Archived from the original on 4 November 2011. Retrieved 21 April 2021.
  10. ^ "Secure Contexts". W3.org. Retrieved 13 October 2022.
  11. ^ "Intent to Remove: Insecure origin usage of geolocation". Groups.Google.com. Retrieved 13 October 2022.
  12. ^ "Does Firefox share my location with websites? | Mozilla Support". Mozilla Firefox. Mozilla. n.d. Retrieved 21 April 2021.
  13. ^ "WebScanNotes.com: W3C Geolocation API". WebScanNotes. n.d. Archived from the original on 12 November 2012. Retrieved 21 April 2021.
  14. ^ King, Kevin F. (8 June 2010). "Personal Jurisdiction, Internet Commerce, and Privacy: The Pervasive Legal Consequences of Modern Geolocation Technologies" (published 9 June 2010). SSRN 1622411. Retrieved 21 April 2021.
[edit]
送男教师什么礼物合适 蔡英文是什么党 4.29是什么星座 卡卡西是什么意思 嘴唇有黑斑是什么原因
巨蟹座的幸运色是什么颜色 尿气味很重是什么原因 猫咪拉肚子吃什么药 同人文是什么意思 中暑的症状是什么
血小板过低有什么危害 宫颈病变有什么症状 什么是传染病 见人说人话见鬼说鬼话是什么意思 梦见女婴儿是什么意思
蛇为什么有毒 9月25日是什么星座 北京大裤衩建筑叫什么 什么原因导致卵巢早衰 软著有什么用
8月6号什么星座hcv8jop2ns0r.cn 吃什么增加免疫力最快hcv8jop3ns9r.cn 腋下有异味是什么原因导致的0735v.com 交接是什么意思hcv8jop9ns5r.cn 背靠背是什么意思hcv8jop0ns4r.cn
尿道感染看什么科hcv8jop9ns2r.cn 公章是什么样的hcv9jop4ns2r.cn 阴毛有什么用hcv8jop2ns6r.cn 囧途什么意思hcv8jop6ns7r.cn 女同是什么意思hcv7jop6ns5r.cn
眼白出血是什么原因hcv9jop6ns4r.cn 西湖醋鱼是什么鱼hcv8jop5ns1r.cn 月经量太少是什么原因引起的hcv8jop5ns4r.cn 贫血吃什么药好hcv9jop5ns4r.cn 什么云见日hcv8jop3ns2r.cn
太容易出汗是什么原因hcv7jop7ns1r.cn 鸵鸟心态什么意思hcv9jop6ns7r.cn 1月19号是什么星座hcv8jop6ns5r.cn 摩羯是什么huizhijixie.com 检查妇科清洁度三是什么意思mmeoe.com
百度