Posts

Showing posts with the label geolocation

Tagging multiple geolocation on different places of an image

Tagging multiple geolocation on different places of an image Is it possible to tag multiple geolocation (logitude, latitude) on different places of an image? So basically I am having an image of top view of my college building and I want to tag each room with its longitude and latitude and also tag corridors with their longitude and latitude so that when a user moves around the college I can get their phones geoloaction and tag their location on that image. Not able to do this with a map because map doesn't show rooms of the college building so I am planning to make a 2d/3d image and to tag location on it. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

How to get the value of inner html data for storing the value to database

How to get the value of inner html data for storing the value to database How do I get this JavaScript variable data to PHP, so that I can insert Latitude and Longitude data to the database or any other way to get the user's location and store it in the database. <!DOCTYPE html> <html> <body> <p>Click the button to get your coordinates.</p> <button onclick="getLocation()">Try It</button> <p id="demo"></p> <script> var x = document.getElementById("demo"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser."; } } function showPosition(position) { x.innerHTML = "Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude; } </scr...