aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/api/navigator/geolocation/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/api/navigator/geolocation/index.html')
-rw-r--r--files/pt-br/web/api/navigator/geolocation/index.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/files/pt-br/web/api/navigator/geolocation/index.html b/files/pt-br/web/api/navigator/geolocation/index.html
new file mode 100644
index 0000000000..12cc9cbfbc
--- /dev/null
+++ b/files/pt-br/web/api/navigator/geolocation/index.html
@@ -0,0 +1,46 @@
+---
+title: Navigator.geolocation
+slug: Web/API/Navigator/geolocation
+translation_of: Web/API/Navigator/geolocation
+---
+<div>{{APIRef("Geolocation API")}}</div>
+
+<p>A propriedade de apenas leitura <strong><code>Navigator.geolocation</code></strong> retorna um objeto {{domxref("Geolocation")}} que disponibiliza acesso de conteúdo Web à localização do dispositivo. Isso permite que um Web site ou aplicativo ofereçam resultados customizados baseado na localização do usuário.</p>
+
+<div class="note">
+<p><strong>Nota:</strong> Por questão de segurança, quando uma página web tenta acessar as informações de localização, o usuário é notificado e lhe é perguntado se este garante permissão. Esteja alerta que cada navegador possui suas próprias políticas e métodos para requisitar permissão.</p>
+</div>
+
+<h2 id="Sintaxe">Sintaxe</h2>
+
+<pre class="syntaxbox notranslate"><var>geo</var> = <var>navigator</var>.geolocation
+</pre>
+
+<h2 id="Especificações">Especificações</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Especificação</th>
+ <th scope="col">Situação</th>
+ <th scope="col">Comentário</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('Geolocation', '#navi-geo', 'Navigator.geolocation')}}</td>
+ <td>{{Spec2('Geolocation')}}</td>
+ <td>Definição inicial</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Compatibilidade_de_navegador">Compatibilidade de navegador</h2>
+
+<p>{{Compat("api.Navigator.geolocation")}}</p>
+
+<p><span style="">Veja também</span></p>
+
+<ul>
+ <li><a href="/en-US/docs/WebAPI/Using_geolocation">Utilizar geolocalização</a></li>
+</ul>