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
- Host: GitHub
- URL: https://github.com/parzibyte/ubicacion-js-php
- Owner: parzibyte
- License: mit
- Created: 2019-08-09T23:18:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-09T23:29:59.000Z (almost 7 years ago)
- Last Synced: 2025-03-26T07:11:17.278Z (over 1 year ago)
- Topics: coordinates, geolocation, gps, js, js-api, location, php-location
- Language: JavaScript
- Homepage: https://parzibyte.me/blog/2019/08/09/obtener-ubicacion-javascript-enviarla-php/
- Size: 3.91 KB
- Stars: 3
- Watchers: 0
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

Obtener coordenadas GPS con PHP y JavaScript