An open API service indexing awesome lists of open source software.

https://github.com/parzibyte/ubicacion-js-php

Acceder a la ubicación con JavaScript y enviarla a servidor con PHP
https://github.com/parzibyte/ubicacion-js-php

coordinates geolocation gps js js-api location php-location

Last synced: over 1 year ago
JSON representation

Acceder a la ubicación con JavaScript y enviarla a servidor con PHP

Awesome Lists containing this project

README

          

# Obtener ubicación con JavaScript y enviarla a PHP

## Tutorial
[https://parzibyte.me/blog/2019/08/09/obtener-ubicacion-javascript-enviarla-php/](https://parzibyte.me/blog/2019/08/09/obtener-ubicacion-javascript-enviarla-php/)

## Demo
[https://loguear-ubicacion-con-php--parzibyte.repl.co/index.html](https://loguear-ubicacion-con-php--parzibyte.repl.co/index.html)

## Resumen

Vamos a usar JavaScript para acceder a las coordenadas GPS del dispositivo, y después vamos a usar [fetch](https://parzibyte.me/blog/2019/06/03/fetch-api-javascript-peticiones-http-promesas/) para enviar los datos a un servidor con PHP usando JSON.

![](https://parzibyte.me/blog/wp-content/uploads/2019/08/Ubicaci%C3%B3n-del-dispositivo-con-PHP-y-JavaScript.png)

Obtener coordenadas GPS con PHP y JavaScript