Questions tagged [w3c-geolocation]

The W3C Geolocation API provides scripted access to geographical location information associated with a hosting device.

See also:

130 questions
0
votes
1 answer

How to do getlocation other than by the browser's (W3C) "navigator.geolocation" object?

I know how to use the W3C navigator.geolocation API, but just found out that under Google Chrome it does not work when the page is on the local filesystem rather than on a web server: [1], [2]. What other techniques can I use to get either the…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
0
votes
1 answer

W3C geolocation API No errors No expections and No results also

I have read the same problem many times here and fixed the most repeated solutions and added the error handler like mentioned on the w3c specification but it gives me no exceptions or errors and no results. I don't know what I should do? This is the…
Mustafa ELnagar
  • 482
  • 3
  • 13
  • 25
0
votes
2 answers

Browser geolocation: Determining previous permissions

Ok so I've got code like the following: navigator.geolocation.getCurrentPosition ( function (e) { alert('ok'); }, function (e) { alert('denied'); } ); I could call this on pageload, and if the permission is denied, I'll…
EoghanM
  • 25,161
  • 23
  • 90
  • 123
0
votes
1 answer

Suggestion on geoloaction and application type

I'm trying to make a program using c# that will allow me to determine where a computer of mine is located using geolocation services. I was wondering what you would suggest as far as geolocatio APis go and whether you think i should just make a…
yoyomommy
  • 127
  • 1
  • 1
  • 7
0
votes
2 answers

GPS Pull - Pulls Older Data Several Times Before Updating To Current Location

I reviewed a few GPS problems similar. But seemed to not have much luck. When I pull GPS by this method - it seems to pull old data, ie where last GPS pull was from. Any suggestions? This is a simple javascript GPS pull - that populates the form…
Merle_the_Pearl
  • 1,391
  • 3
  • 18
  • 25
0
votes
1 answer

Javascript Objects / Geolocation API

I'm working on a mobile app with Phonegap which will use Geolocation. I used Geolocation before but this time I considered that creating a new object wrapper for it would be better as a large part of the functionality is based on this and don't want…
Claudiu
  • 3,261
  • 1
  • 15
  • 27
-1
votes
1 answer

I want to get its current location first before a nearby places search and optionally after any search or before any search

I want to get its current location first before a nearby places search and optionally I want to get its current location after any search or before any search. I have a code on how to get its current location, i don't know how to use that as my…
-1
votes
2 answers

Assign the latitude and longitude from Geolocation's getCurrentPosition to variables

I am trying to set the longitude and latitude of this function found on W3Schools to a variable (let's just say y and z), then I need to display y: