documentation translation: cordova-plugin-geolocation
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/commit/9f7aa022 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/tree/9f7aa022 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/diff/9f7aa022 Branch: refs/heads/master Commit: 9f7aa0227223dc23dbd3532087dc02a574e342c6 Parents: 1712b58 Author: ldeluca <[email protected]> Authored: Tue May 27 21:36:34 2014 -0400 Committer: ldeluca <[email protected]> Committed: Tue May 27 21:36:34 2014 -0400 ---------------------------------------------------------------------- doc/de/index.md | 206 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/ja/index.md | 97 +++++------------------- 2 files changed, 225 insertions(+), 78 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/9f7aa022/doc/de/index.md ---------------------------------------------------------------------- diff --git a/doc/de/index.md b/doc/de/index.md new file mode 100644 index 0000000..95e6659 --- /dev/null +++ b/doc/de/index.md @@ -0,0 +1,206 @@ +<!--- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +# org.apache.cordova.geolocation + +Dieses Plugin bietet Informationen über das Gerät an den Speicherort, z. B. breiten- und Längengrad. Gemeinsame Quellen von Standortinformationen sind Global Positioning System (GPS) und Lage von Netzwerk-Signale wie IP-Adresse, RFID, WLAN und Bluetooth MAC-Adressen und GSM/CDMA Zelle IDs abgeleitet. Es gibt keine Garantie, dass die API des Geräts tatsächliche Position zurückgibt. + +Diese API basiert auf der [W3C Geolocation API-Spezifikation][1], und nur auf Geräten, die nicht bereits eine Implementierung bieten führt. + + [1]: http://dev.w3.org/geo/api/spec-source.html + +**Warnung**: Erhebung und Nutzung von Geolocation-Daten wichtige Privatsphäre wirft. Wie die app benutzt Geolocation-Daten, Ihre app-Datenschutzrichtlinien zu diskutieren, ob es mit allen anderen Parteien und das Niveau der Genauigkeit der Daten (z. B. grob, fein, Postleitzahl, etc..) freigegeben ist. Geolocation-Daten gilt allgemein als empfindlich, weil es den Aufenthaltsort des Benutzers erkennen lässt und wenn gespeichert, die Geschichte von ihren Reisen. Daher neben der app-Privacy Policy sollten stark Sie Bereitstellung einer just-in-Time-Bekanntmachung, bevor die app Geolocation-Daten zugreift (wenn das Betriebssystem des Geräts bereits tun nicht). Diese Benachrichtigung sollte der gleichen Informationen, die vorstehend, sowie die Zustimmung des Benutzers (z.B. durch Präsentation Entscheidungen für das **OK** und **Nein danke**). Weitere Informationen finden Sie in der Datenschutz-Guide. + +## Installation + + cordova plugin add org.apache.cordova.geolocation + + +## Unterstützte Plattformen + +* Amazon Fire OS +* Android +* BlackBerry 10 +* Firefox OS +* iOS +* Tizen +* Windows Phone 7 und 8 +* Windows 8 + +## Methoden + +* navigator.geolocation.getCurrentPosition +* navigator.geolocation.watchPosition +* navigator.geolocation.clearWatch + +## Objekte (schreibgeschützt) + +* Stellung +* PositionError +* Koordinaten + +## navigator.geolocation.getCurrentPosition + +Gibt das Gerät die aktuelle Position auf der `geolocationSuccess` Rückruf mit einem `Position` Objekt als Parameter. Wenn ein Fehler auftritt, der `geolocationError` Rückruf wird übergeben ein `PositionError` Objekt. + + navigator.geolocation.getCurrentPosition (GeolocationSuccess, [GeolocationError], [GeolocationOptions]); + + +### Parameter + +* **GeolocationSuccess**: der Rückruf, der die aktuelle Position übergeben wird. + +* **GeolocationError**: *(Optional)* der Rückruf, der ausgeführt wird, wenn ein Fehler auftritt. + +* **GeolocationOptions**: *(Optional)* die Geolocation-Optionen. + +### Beispiel + + OnSuccess Rückruf / / diese Methode akzeptiert eine Position-Objekt, das enthält die / / aktuellen GPS-Koordinaten / / Var OnSuccess = function(position) {Warnung (' Breitengrad: ' + position.coords.latitude + '\n' + ' Länge: "+ position.coords.longitude + '\n' + ' Höhe: ' + position.coords.altitude + '\n' + ' Genauigkeit: ' + position.coords.accuracy + '\n' + ' Höhe Genauigkeit: ' + position.coords.altitudeAccuracy + '\n' + ' Ãberschrift: ' + position.coords.heading + '\n' + ' Geschwindigkeit: ' + position.coords.speed + '\n' + ' Timestamp: ' + position.timestamp + '\n');}; + + OnError Rückruf erhält ein PositionError-Objekt / / function onError(error) {Alert ('Code: ' + error.code + '\n' + ' Nachricht: ' + error.message + '\n');} + + navigator.geolocation.getCurrentPosition (OnSuccess, OnError); + + +## navigator.geolocation.watchPosition + +Gibt das Gerät aktuelle Position zurück, wenn eine Ãnderung erkannt wird. Wenn das Gerät einen neuen Speicherort und ruft die `geolocationSuccess` Rückruf führt mit einem `Position` Objekt als Parameter. Wenn ein Fehler auftritt, der `geolocationError` Rückruf führt mit einem `PositionError` Objekt als Parameter. + + Var WatchId = navigator.geolocation.watchPosition (GeolocationSuccess, [GeolocationError], [GeolocationOptions]); + + +### Parameter + +* **GeolocationSuccess**: der Rückruf, der die aktuelle Position übergeben wird. + +* **GeolocationError**: (Optional) der Rückruf, der ausgeführt wird, wenn ein Fehler auftritt. + +* **GeolocationOptions**: (Optional) die Geolocation-Optionen. + +### Gibt + +* **String**: gibt eine Uhr-Id, die das Uhr Position Intervall verweist zurück. Die Uhr-Id sollte verwendet werden, mit `navigator.geolocation.clearWatch` , gerade für Ãnderungen zu stoppen. + +### Beispiel + + OnSuccess Callback / / diese Methode akzeptiert eine 'Position'-Objekt, das enthält / / der aktuellen GPS-Koordinaten / / function onSuccess(position) {Var-Element = document.getElementById('geolocation'); + element.innerHTML = ' Breitengrad: "+ position.coords.latitude + ' < Br / >' + ' Länge:" + position.coords.longitude + ' < Br / >' + ' < hr / >' + element.innerHTML; + } / / OnError Rückruf erhält ein PositionError-Objekt / / function onError(error) {Alert ('Code: ' + error.code + '\n' + ' Nachricht: ' + error.message + '\n');} + + Optionen: lösen Sie einen Fehler aus, wenn kein Update alle 30 Sekunden empfangen wird. + Var WatchID = navigator.geolocation.watchPosition (OnSuccess, OnError, {Timeout: 30000}); + + +## geolocationOptions + +Optionalen Parametern, um das Abrufen von der geolocation`Position`. + + {MaximumAge: 3000, Timeout: 5000, EnableHighAccuracy: true}; + + +### Optionen + +* **EnableHighAccuracy**: stellt einen Hinweis, dass die Anwendung die bestmöglichen Ergebnisse benötigt. StandardmäÃig versucht das Gerät abzurufen ein `Position` mit netzwerkbasierte Methoden. Wenn diese Eigenschaft auf `true` erzählt den Rahmenbedingungen genauere Methoden, z. B. Satellitenortung verwenden. *(Boolean)* + +* **Timeout**: die maximale Länge der Zeit (in Millisekunden), die zulässig ist, übergeben Sie den Aufruf von `navigator.geolocation.getCurrentPosition` oder `geolocation.watchPosition` bis zu den entsprechenden `geolocationSuccess` Rückruf führt. Wenn die `geolocationSuccess` Rückruf wird nicht aufgerufen, in dieser Zeit die `geolocationError` Rückruf wird übergeben ein `PositionError.TIMEOUT` Fehlercode. (Beachten Sie, dass in Verbindung mit `geolocation.watchPosition` , die `geolocationError` Rückruf könnte auf ein Intervall aufgerufen werden alle `timeout` Millisekunden!) *(Anzahl)* + +* **MaximumAge**: eine zwischengespeicherte Position, deren Alter nicht gröÃer als die angegebene Zeit in Millisekunden ist, zu akzeptieren. *(Anzahl)* + +### Android Macken + +Android 2.x-Emulatoren geben ein Geolocation-Ergebnis nicht zurück, es sei denn, die `enableHighAccuracy` Option auf festgelegt ist`true`. + +## navigator.geolocation.clearWatch + +Stoppen, gerade für Ãnderungen an das Gerät Stelle verweist die `watchID` Parameter. + + navigator.geolocation.clearWatch(watchID); + + +### Parameter + +* **WatchID**: die Id der `watchPosition` Intervall löschen. (String) + +### Beispiel + + Optionen: Achten Sie auf Ãnderungen der Position und verwenden Sie die / / genaue position Erwerbsart verfügbar. + Var WatchID = navigator.geolocation.watchPosition (OnSuccess, OnError, {EnableHighAccuracy: True}); + + ... veranstalten am... + + navigator.geolocation.clearWatch(watchID); + + +## Stellung + +Enthält `Position` Koordinaten und Timestamp, erstellt von der Geolocation API. + +### Eigenschaften + +* **CoOrds**: eine Reihe von geographischen Koordinaten. *(Koordinaten)* + +* **Timestamp**: Zeitstempel der Erstellung für `coords` . *(Datum)* + +## Koordinaten + +A `Coordinates` Objekt an angeschlossen ist ein `Position` -Objekt, das Callback-Funktionen in Anforderungen für die aktuelle Position zur Verfügung steht. Es enthält eine Reihe von Eigenschaften, die die geographischen Koordinaten von einer Position zu beschreiben. + +### Eigenschaften + +* **Breitengrad**: Latitude in Dezimalgrad. *(Anzahl)* + +* **Länge**: Länge in Dezimalgrad. *(Anzahl)* + +* **Höhe**: Höhe der Position in Meter über dem Ellipsoid. *(Anzahl)* + +* **Genauigkeit**: Genauigkeit der breiten- und Längengrad Koordinaten in Metern. *(Anzahl)* + +* **AltitudeAccuracy**: Genauigkeit der Koordinate Höhe in Metern. *(Anzahl)* + +* **Rubrik**: Fahrtrichtung, angegeben in Grad relativ zu den Norden im Uhrzeigersinn gezählt. *(Anzahl)* + +* **Geschwindigkeit**: aktuelle Geschwindigkeit über Grund des Geräts, in Metern pro Sekunde angegeben. *(Anzahl)* + +### Amazon Fire OS Macken + +**AltitudeAccuracy**: von Android-Geräten, Rückgabe nicht unterstützt`null`. + +### Android Macken + +**AltitudeAccuracy**: von Android-Geräten, Rückgabe nicht unterstützt`null`. + +## PositionError + +Das `PositionError` -Objekt übergeben, um die `geolocationError` Callback-Funktion tritt ein Fehler mit navigator.geolocation. + +### Eigenschaften + +* **Code**: einer der vordefinierten Fehlercodes aufgeführt. + +* **Nachricht**: Fehlermeldung, die die Informationen über den aufgetretenen Fehler beschreibt. + +### Konstanten + +* `PositionError.PERMISSION_DENIED` + * Zurückgegeben, wenn Benutzer erlauben nicht die app Positionsinformationen abgerufen werden. Dies ist abhängig von der Plattform. +* `PositionError.POSITION_UNAVAILABLE` + * Zurückgegeben, wenn das Gerät nicht in der Lage, eine Position abzurufen ist. Im Allgemeinen bedeutet dies, dass das Gerät nicht mit einem Netzwerk verbunden ist oder ein Satelliten-Update kann nicht abgerufen werden. +* `PositionError.TIMEOUT` + * Zurückgegeben, wenn das Gerät nicht in der Lage, eine Position innerhalb der festgelegten Zeit abzurufen ist die `timeout` enthalten `geolocationOptions` . Bei Verwendung mit `navigator.geolocation.watchPosition` , könnte dieser Fehler wiederholt übergeben werden, zu der `geolocationError` Rückruf jedes `timeout` Millisekunden. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/9f7aa022/doc/ja/index.md ---------------------------------------------------------------------- diff --git a/doc/ja/index.md b/doc/ja/index.md index bddd5ed..c9bd1b1 100644 --- a/doc/ja/index.md +++ b/doc/ja/index.md @@ -19,7 +19,7 @@ # org.apache.cordova.geolocation -This plugin provides information about the device's location, such as latitude and longitude. ä½ç½®æ å ±ã®å ±éã®ã½ã¼ã¹ã¯ã°ãã¼ãã« ãã¸ã·ã§ãã³ã° ã·ã¹ãã ï¼GPSï¼ ã¨ IP ã¢ãã¬ã¹ãRFIDãWiFi ããã³ Bluetooth ã® MAC ã¢ãã¬ã¹ãããã³ GSM/cdma æ¹å¼æºå¸¯ Id ãªã©ã®ãããã¯ã¼ã¯ä¿¡å·ããæ¨å®ãããå ´æã«ãããã¾ãã API ã¯ãããã¤ã¹ã®å®éã®å ´æãè¿ããã¨ã®ä¿è¨¼ã¯ããã¾ããã +ãã®ãã©ã°ã¤ã³ã¯ç·¯åº¦ãçµåº¦ãªã©ã®ããã¤ã¹ã®å ´æã«é¢ããæ å ±ãæä¾ãã¾ãã ä½ç½®æ å ±ã®å ±éã®ã½ã¼ã¹ã¯ã°ãã¼ãã« ãã¸ã·ã§ãã³ã° ã·ã¹ãã ï¼GPSï¼ ã¨ IP ã¢ãã¬ã¹ãRFIDãWiFi ããã³ Bluetooth ã® MAC ã¢ãã¬ã¹ãããã³ GSM/cdma æ¹å¼æºå¸¯ Id ãªã©ã®ãããã¯ã¼ã¯ä¿¡å·ããæ¨å®ãããå ´æã«ãããã¾ãã API ã¯ãããã¤ã¹ã®å®éã®å ´æãè¿ããã¨ã®ä¿è¨¼ã¯ããã¾ããã ãã® API ã¯[W3C å°çä½ç½®æ å ± API 仿§][1]ã«åºã¥ãã¦ãããæ¢ã«å®è£ ãæä¾ããªãããã¤ã¹ä¸ã®ã¿ã§å®è¡ãã¾ãã @@ -32,23 +32,12 @@ This plugin provides information about the device's location, such as latitude a cordova plugin add org.apache.cordova.geolocation -### Firefox OS Quirks - -Create **www/manifest.webapp** as described in [Manifest Docs][2]. Add permisions: - - [2]: https://developer.mozilla.org/en-US/Apps/Developing/Manifest - - "permissions": { - "geolocation": { "description": "Used to position the map to your current position" } - } - - ## ãµãã¼ãããã¦ãããã©ãããã©ã¼ã * ã¢ãã¾ã³ç« OS * ã¢ã³ããã¤ã * ãã©ãã¯ããªã¼ 10 -* Firefox OS +* Firefox ã® OS * iOS * Tizen * Windows Phone 7 㨠8 @@ -68,11 +57,9 @@ Create **www/manifest.webapp** as described in [Manifest Docs][2]. Add permision ## navigator.geolocation.getCurrentPosition -Returns the device's current position to the `geolocationSuccess` callback with a `Position` object as the parameter. ã¨ã©ã¼ãããå ´åã `geolocationError` ã³ã¼ã«ããã¯ã«æ¸¡ãããã `PositionError` ãªãã¸ã§ã¯ãã +ããã¤ã¹ã®ç¾å¨ã®ä½ç½®ãè¿ãã¾ãã `geolocationSuccess` ã³ã¼ã«ããã¯ã `Position` ãªãã¸ã§ã¯ãããã©ã¡ã¼ã¿ã¼ã¨ãã¦ã ã¨ã©ã¼ãããå ´åã `geolocationError` ã³ã¼ã«ããã¯ã«æ¸¡ãããã `PositionError` ãªãã¸ã§ã¯ãã - navigator.geolocation.getCurrentPosition(geolocationSuccess, - [geolocationError], - [geolocationOptions]); + navigator.geolocation.getCurrentPosition ï¼geolocationSuccessã[geolocationError] [geolocationOptions]); ### ãã©ã¡ã¼ã¿ã¼ @@ -85,38 +72,14 @@ Returns the device's current position to the `geolocationSuccess` callback with ### ä¾ - // onSuccess Callback - // This method accepts a Position object, which contains the - // current GPS coordinates - // - var onSuccess = function(position) { - alert('Latitude: ' + position.coords.latitude + '\n' + - 'Longitude: ' + position.coords.longitude + '\n' + - 'Altitude: ' + position.coords.altitude + '\n' + - 'Accuracy: ' + position.coords.accuracy + '\n' + - 'Altitude Accuracy: ' + position.coords.altitudeAccuracy + '\n' + - 'Heading: ' + position.coords.heading + '\n' + - 'Speed: ' + position.coords.speed + '\n' + - 'Timestamp: ' + position.timestamp + '\n'); - }; - - // onError Callback receives a PositionError object - // - function onError(error) { - alert('code: ' + error.code + '\n' + - 'message: ' + error.message + '\n'); - } - - navigator.geolocation.getCurrentPosition(onSuccess, onError); + onSuccess ã³ã¼ã«ããã¯/ãã®ã¡ã½ãããå«ãä½ç½®ã®ãªãã¸ã§ã¯ããåãå ¥ãã/ã/ç¾å¨ GPS 座æ¨///var onSuccess function(position) = {è¦å (' 緯度: '+ position.coords.latitude + '\n' +' çµåº¦: '+ position.coords.longitude + '\n' +' é«åº¦: '+ position.coords.altitude + '\n' +' 精度: '+ position.coords.accuracy + '\n' +' é«åº¦ç²¾åº¦: '+ position.coords.altitudeAccuracy + '\n' +' è¦åºã: '+ position.coords.heading + '\n' +' é度: '+ position.coords.speed + '\n' +' ã¿ã¤ã ã¹ã¿ã³ã: ' + position.timestamp + '\n');};onError ã³ã¼ã«ããã¯ã PositionError ãªãã¸ã§ã¯ããåãåã//onError(error) 颿° {è¦å (' ã³ã¼ã: '+ error.code + '\n' +' ã¡ãã»ã¼ã¸: ' + error.message + '\n');}navigator.geolocation.getCurrentPosition (onSuccessãonError); ## navigator.geolocation.watchPosition -Returns the device's current position when a change in position is detected. ããã¤ã¹ãæ°ããå ´æãåå¾ããã¨ãã `geolocationSuccess` ã³ã¼ã«ããã¯ãå®è¡ããã¨ã `Position` ãªãã¸ã§ã¯ãããã©ã¡ã¼ã¿ã¼ã¨ãã¦ã ã¨ã©ã¼ãããå ´åã `geolocationError` ã³ã¼ã«ããã¯ãå®è¡ããã¨ã `PositionError` ãªãã¸ã§ã¯ãããã©ã¡ã¼ã¿ã¼ã¨ãã¦ã +ä½ç½®ã®å¤æ´ãæ¤åºãããå ´åã¯ãããã¤ã¹ã®ç¾å¨ä½ç½®ãè¿ãã¾ãã ããã¤ã¹ãæ°ããå ´æãåå¾ããã¨ãã `geolocationSuccess` ã³ã¼ã«ããã¯ãå®è¡ããã¨ã `Position` ãªãã¸ã§ã¯ãããã©ã¡ã¼ã¿ã¼ã¨ãã¦ã ã¨ã©ã¼ãããå ´åã `geolocationError` ã³ã¼ã«ããã¯ãå®è¡ããã¨ã `PositionError` ãªãã¸ã§ã¯ãããã©ã¡ã¼ã¿ã¼ã¨ãã¦ã - var watchId = navigator.geolocation.watchPosition(geolocationSuccess, - [geolocationError], - [geolocationOptions]); + var watchId = navigator.geolocation.watchPosition ï¼geolocationSuccessã[geolocationError] [geolocationOptions]); ### ãã©ã¡ã¼ã¿ã¼ @@ -129,31 +92,12 @@ Returns the device's current position when a change in position is detected. ã ### è¿ãã¾ã -* **String**: returns a watch id that references the watch position interval. The watch id should be used with `navigator.geolocation.clearWatch` to stop watching for changes in position. +* **æåå**: æè¨ã®ä½ç½®ã®ééãåç §ããæè¨ id ãè¿ãã¾ãã æè¨ id ã§ä½¿ç¨ããå¿ è¦ãããã¾ã `navigator.geolocation.clearWatch` 忢ä½ç½®ã®å¤åãç£è¦ãã¾ãã ### ä¾ - // onSuccess Callback - // This method accepts a `Position` object, which contains - // the current GPS coordinates - // - function onSuccess(position) { - var element = document.getElementById('geolocation'); - element.innerHTML = 'Latitude: ' + position.coords.latitude + '<br />' + - 'Longitude: ' + position.coords.longitude + '<br />' + - '<hr />' + element.innerHTML; - } - - // onError Callback receives a PositionError object - // - function onError(error) { - alert('code: ' + error.code + '\n' + - 'message: ' + error.message + '\n'); - } - - // Options: throw an error if no update is received every 30 seconds. - // - var watchID = navigator.geolocation.watchPosition(onSuccess, onError, { timeout: 30000 }); + onSuccess ã³ã¼ã«ããã¯//ãã®ã¡ã½ãããå«ã 'ä½ç½®' ãªãã¸ã§ã¯ããåãå ¥ãã/ç¾å¨ã® GPS 座æ¨///onSuccess(position) 颿° {var è¦ç´ = document.getElementById('geolocation');element.innerHTML = '緯度:' + position.coords.latitude + '< br/>' +' çµåº¦: '+ position.coords.longitude +' < br/>' + ' < hr/>' + element.innerHTML;}/onError ã³ã¼ã«ããã¯ã PositionError ãªãã¸ã§ã¯ããåãåã///onError(error) 颿° {è¦å (' ã³ã¼ã: '+ error.code + '\n' +' ã¡ãã»ã¼ã¸: ' + error.message + '\n');}ãªãã·ã§ã³: 30 ç§ãã¨ã®æ´æ°ãåä¿¡ããªãå ´åã¨ã©ã¼ãã¹ãã¼ãã¾ãã + var watchID = navigator.geolocation.watchPosition (onErrorãonSuccess {ã¿ã¤ã ã¢ã¦ã: 30000}); ## geolocationOptions @@ -167,7 +111,7 @@ Returns the device's current position when a change in position is detected. ã * **enableHighAccuracy**ï¼ æé«ã®çµæããã¢ããªã±ã¼ã·ã§ã³ã«å¿ è¦ããããã¨ã®ãã³ãã示ãã¾ãã æ¢å®ã§ã¯ãããã¤ã¹ã®åå¾ã試ã¿ã¾ãã `Position` ãããã¯ã¼ã¯ ãã¼ã¹ã®ã¡ã½ããã使ç¨ãã¾ãã ãã®ããããã£ãè¨å®ãã `true` è¡ææ¸¬ä½ãªã©ã®ããæ£ç¢ºãªæ¹æ³ã使ç¨ããããã«ãã¬ã¼ã ã¯ã¼ã¯ã«æç¤ºãã¾ãã *(ãã¼ã«å¤)* -* **timeout**: The maximum length of time (milliseconds) that is allowed to pass from the call to `navigator.geolocation.getCurrentPosition` or `geolocation.watchPosition` until the corresponding `geolocationSuccess` callback executes. å ´åã¯ã `geolocationSuccess` ãã®æéå ã«ãã³ã¼ã«ããã¯ã¯å¼ã³åºããã¾ããã `geolocationError` ã³ã¼ã«ããã¯ã«æ¸¡ãããã `PositionError.TIMEOUT` ã®ã¨ã©ã¼ ã³ã¼ãã (ã¨çµã¿åããã¦ä½¿ç¨ããã¨ãã«æ³¨æãã¦ãã ãã `geolocation.watchPosition` ã® `geolocationError` ééã§ã³ã¼ã«ããã¯ãå¼ã³åºããã¨ãã§ãã¾ããã¹ã¦ `timeout` ããªç§ ï¼)*(æ°)* +* **ã¿ã¤ã ã¢ã¦ã**: ã¸ã®å¼ã³åºãããééã許å¯ãããæé (ããªç§åä½) ã®æå¤§é· `navigator.geolocation.getCurrentPosition` ã¾ã㯠`geolocation.watchPosition` ã¾ã§å¯¾å¿ããã `geolocationSuccess` ã³ã¼ã«ããã¯ãå®è¡ãã¾ãã å ´åã¯ã `geolocationSuccess` ãã®æéå ã«ãã³ã¼ã«ããã¯ã¯å¼ã³åºããã¾ããã `geolocationError` ã³ã¼ã«ããã¯ã«æ¸¡ãããã `PositionError.TIMEOUT` ã®ã¨ã©ã¼ ã³ã¼ãã (ã¨çµã¿åããã¦ä½¿ç¨ããã¨ãã«æ³¨æãã¦ãã ãã `geolocation.watchPosition` ã® `geolocationError` ééã§ã³ã¼ã«ããã¯ãå¼ã³åºããã¨ãã§ãã¾ããã¹ã¦ `timeout` ããªç§ ï¼)*(æ°)* * **maximumAge**ï¼ å¹´é½¢ãããããªç§åä½ã§æå®ããæéããã大ãããªããã£ãã·ã¥ãããä½ç½®ãåãå ¥ãã¾ãã*(æ°)* @@ -188,11 +132,8 @@ Returns the device's current position when a change in position is detected. ã ### ä¾ - //ãªãã·ã§ã³: ä½ç½®ã®å¤åãç£è¦ããé »ç¹ã«ä½¿ç¨//æ£ç¢ºãªä½ç½®å徿³å©ç¨å¯è½ã - // - var watchID = navigator.geolocation.watchPosition(onSuccess, onError, { enableHighAccuracy: true }); - - // ...later on... + ãªãã·ã§ã³: ã®ä½ç½®ã§ã¯ã夿´ãç£è¦ãã¦æã//æ£ç¢ºãªä½ç½®å徿³å©ç¨å¯è½ã + var watchID = navigator.geolocation.watchPosition ï¼æåããã¨ãonErrorã{enableHighAccuracy: true});... ããªä¸. navigator.geolocation.clearWatch(watchID); @@ -209,7 +150,7 @@ Returns the device's current position when a change in position is detected. ã ## Coordinates -A `Coordinates` object is attached to a `Position` object that is available to callback functions in requests for the current position. It contains a set of properties that describe the geographic coordinates of a position. +A `Coordinates` ãªãã¸ã§ã¯ãã«ä½¿ç¨ããã¦ã `Position` ã¯ãç¾å¨ã®ä½ç½®ã®ããã®è¦æ±ã§ã³ã¼ã«ããã¯é¢æ°ãå©ç¨å¯è½ãªãªãã¸ã§ã¯ãã ä½ç½®ã®å°ç座æ¨ãè¨è¿°ããããããã£ã®ã»ãããå«ã¾ãã¦ãã¾ãã ### ãããã㣠@@ -227,7 +168,7 @@ A `Coordinates` object is attached to a `Position` object that is available to c * **é度**ï¼ æ¯ç§ã¡ã¼ãã«ã§æå®ãããããã¤ã¹ã®ç¾å¨ã®å¯¾å°é度ã*(æ°)* -### Amazon Fire OS Quirks +### ã¢ãã¾ã³ç« OS ç **altitudeAccuracy**ï¼ è¿ãã® Android ããã¤ã¹ã§ãµãã¼ãããã¦ãã¾ãã`null`. @@ -237,7 +178,7 @@ A `Coordinates` object is attached to a `Position` object that is available to c ## PositionError -The `PositionError` object is passed to the `geolocationError` callback function when an error occurs with navigator.geolocation. +`PositionError`ãªãã¸ã§ã¯ãã«æ¸¡ããã¾ãã `geolocationError` navigator.geolocation ã§ã¨ã©ã¼ãçºçããå ´åã®ã³ã¼ã«ããã¯é¢æ°ã ### ãããã㣠@@ -248,8 +189,8 @@ The `PositionError` object is passed to the `geolocationError` callback function ### 宿° * `PositionError.PERMISSION_DENIED` - * Returned when users do not allow the app to retrieve position information. This is dependent on the platform. + * ã¦ã¼ã¶ã¼ã®ä½ç½®æ å ±ãåå¾ããã¢ããªã許å¯ããªãå ´åã«è¿ããã¾ããããã¯ãã©ãããã©ã¼ã ã«ä¾åãã¾ãã * `PositionError.POSITION_UNAVAILABLE` - * Returned when the device is unable to retrieve a position. In general, this means the device is not connected to a network or can't get a satellite fix. + * ããã¤ã¹ããä½ç½®ãåå¾ãããã¨ãã§ãã¾ãè¿ããã¾ããä¸è¬ã«ãã¤ã¾ããããã¤ã¹ããããã¯ã¼ã¯ã«æ¥ç¶ããã¦ããªãã¾ãã¯è¡æã®ä¿®æ£ãå¾ããã¨ãã§ãã¾ããã * `PositionError.TIMEOUT` - * Returned when the device is unable to retrieve a position within the time specified by the `timeout` included in `geolocationOptions`. When used with `navigator.geolocation.watchPosition`, this error could be repeatedly passed to the `geolocationError` callback every `timeout` milliseconds. \ No newline at end of file + * ããã¤ã¹ãã§æå®ãããæéå ã®ä½ç½®ãåå¾ãããã¨ãã§ããã¨ãã«è¿ãããã `timeout` ã«å«ã¾ãã¦ãã `geolocationOptions` ã 使ç¨ãã㨠`navigator.geolocation.watchPosition` ããã®ã¨ã©ã¼ãç¹°ãè¿ãã«æ¸¡ããã¨ãã `geolocationError` ã³ã¼ã«ããã¯ã㨠`timeout` (ããªç§åä½)ã \ No newline at end of file
