Very simple question: Why does the following code return undefined values? function
GetLocation(location) {
Lat = location.coords.latitude;
Lon = location.coords.longitude;
gCoords = "gCoords: " + Lat + "," + Lon;
gLat = Lat;
…
I am using watchPosition method get coordinates continuously. I am getting my latitude and longitude in showLocation method. now I want to store all my acquired latitude and longitude in to database so I wrote db.transcation in showLocation method.…
I have an app that allows a user to submit a form, saves it to local storage and afterwards displays the input in an html table. The user can update and delete their data. My question is that the form also displays the user's geolocation but I'm…
i have a problem with the Geolocation API -.-'
I'm using the FirefoxOS Boilerplate App (https://github.com/robnyman/Firefox-OS-Boilerplate-App) for create a simple html5 app.
The problem is simple: I would like the data (lat/lon) obtained from the…
I need to get users latitude and longitude from browser, but on most of browsers are some restrictions that doesn't let to do it. How to tell users that his geolocation is off or it simply doesn't support it?
I tried something like this, but neither…
Long story short, I have a HTML5 GeoPositioning enabled map on a phone. I have the current location, I want to show directions to specific coordinates.
Google maps is replacing the exact coordinates with the nearest road.
This is not close enough…
I trying to use geolocation and it's working for all my browsers except for safari.
Here is the script that I'm running.
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function (location) {
console.log('success');
…
Hello I was wondering if there is a way to feed WatchPosition() function specific Lat/Lon that are supplied from an array of coordinates.
I am having trouble creating a callback function that utilizes something like the default coords. lat coords.…
I am writing an web application that requires the current geolocation of user. For identifying geolocation I have used the following code that uses HTML5 geolocation api. I have taken this code from W3schools.
Does every browser implement geolocation API in it's own way? Or is there some standard way all browsers do it?
And how do they do it?
When can they fail to geolocate?
I have the following code in my page (based at the moment around the google examples.
I have however hit a snag, i can't seem to make places work (the markers wont show), this is my code . . . it should show all cafes, restaurants and dars within…
Hi i'm wanting to create a map that, when a function is called, generates directions to a point based on the users current geolocation. I have tried to do this and so far my attepts have been fruitless, here is my current JS code:
var…
I made a simple website with javascript on it that calls to:
navigator.geolocation.getCurrentPosition(show_map, show_map_error);
I have put the website on the internet. I tried to open the website from different PCs (no GPS gadget) on different…