Giter Site home page Giter Site logo

geo-location-javascript's People

Watchers

 avatar  avatar

Forkers

sijojosekz

geo-location-javascript's Issues

Feature request: implement as standard W3C API

I think this library would be more useful if it implemented the standard
W3C geolocation API, e.g., if the W3C API is not present but the Blackberry
API is, then you should implement the W3C API using the Blackberry API.

The benefit of this approach is that existing libraries that depend on the
W3C geolocation API won't need to be modified to use geo_position_js. They
will just work.

Original issue reported on code.google.com by [email protected] on 10 Jul 2009 at 5:59

Check for Google Gears is inadequate

Using geo-location-javascript v0.4.3 on Windows XP box with IE8 and no gears 
installed, the following error occurs:

  "error google.gear.factory is null or not and object"

This error appears, because the following line is an inadequate check for gears:
  else if(typeof(window.google)!="undefined")

The solution is to replace this line with:
  else if(window.google && google.gears)

Google Gears API docs recommends this check (see 
http://code.google.com/apis/gears/design.html#detecting)

Original issue reported on code.google.com by [email protected] on 7 Jul 2010 at 4:35

Doesn't seem to use iPhone GPS for location

What steps will reproduce the problem?
1. Using iPhone 3g go to http://garminpoi.co.uk/geoloc 
2. Let page load 

Only seems to be accurate to cell location not GPS


What version of the product are you using? On what operating system?
0.3, July 2009

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 10 Oct 2009 at 9:07

geo_position is not defined

What steps will reproduce the problem?
1. Why do i get an error saying geo-position is not defined when using this
in my own application?
2.
3.

What is the expected output? What do you see instead?
See a map with my location, instead i see errors

What version of the product are you using? On what operating system?
windows 7

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 2 Nov 2009 at 8:51

Not working on real BlackBerry

Nothing happen on real BlackBerry devices.

It seems there is a javascript compatibility problem : it doesn't enter the
BB part : "else if(typeof(window.blackberry)!="undefined" &&
blackberry.location.GPSSupported)".

I made tests and it's the Palm Pre part with Mojo "else if
(typeof(Mojo.Service.Request)!="Mojo.Service.Request")" that is the problem.

I could fix it by putting the BlackBerry elseif before the Mojo elseif.

Now, it's trying to get a signal.
However, it didn't ask me permission and it's still answering "Position
unavailable" while in the settings I could get a new position without problem.

I will try to see if I can fix it too.

Original issue reported on code.google.com by [email protected] on 29 Jul 2009 at 9:44

Doesn't work with a palm pre

What steps will reproduce the problem?
1. Get a palm pre
2. go to http://code.google.com/p/geo-location-javascript
3. Try any of the links.

What is the expected output? What do you see instead?
It should give me my location coordinates, instead it give me the
"functionality not available" error message.

What version of the product are you using? On what operating system?
Palm webOS v1.1.0
Location services v1.0 (standard)
Web v1.0 (standard)

Please provide any additional information below.
Hope you get it fixed.  Seems promising.


Original issue reported on code.google.com by [email protected] on 21 Aug 2009 at 5:04

Uncaught TypeError: object is not a function (geo.js:106)

What steps will reproduce the problem?
1. Loaded Chrome on Mac OS X 10.6.8 with Sencha Touch 1.1.0
2. Included geo.js and gear_init.js as per this article: 
http://diveintohtml5.org/geolocation.html
3. Noticed in js console this error: Uncaught TypeError: object is not a 
function (geo.js:106)

What is the expected output? What do you see instead?
It looks like there are no major issues, but I'm worried that it might be 
affecting some other webkit browsers that are not that intelligent as Chrome...

What version of the product are you using? On what operating system?
geo.js 0.4.8, gear_init.js, Chrome 13.0.782, Mac OS X 10.6.8, Sencha Touch 1.1.0

Please provide any additional information below.
-

Original issue reported on code.google.com by [email protected] on 8 Sep 2011 at 1:29

Does not work Palm Treo Pro & HTC Touch Pro

What steps will reproduce the problem?
1.  Attempt to access http://www.merkwelt.com/people/stan/geo_js/sample.html
2.  Palm Treo Pro - receive: Functionality Not Available
3.  HTC Touch Pro - receive page, but no pop-up.

What is the expected output? What do you see instead?
Pop-Up with Lat/Lng

What version of the product are you using? On what operating system?
Windows Mobile 6.1 with Google Gears

Please provide any additional information below.
As a consolation the Google Gears GeoLocation demo does work on the Touch
Pro.  The Treo Pro it currently does not.

Original issue reported on code.google.com by [email protected] on 8 Dec 2009 at 11:02

Download contains SVN resources

The download contains SVN resources such as .svn folders. These, the temp files 
and the .DS_STORE files need to be removed. The biggest issue is that someone 
could accidentally corrupt their working copy by copying these files into their 
project without knowing or realizing these exist. They should be removed ASAP.



Original issue reported on code.google.com by *[email protected] on 10 Mar 2011 at 2:12

Wrong gears successCallback

What steps will reproduce the problem?
1. Call the {obj}.coords.latitude from an android phone (HTC Magic)
2.
3.

What is the expected output? What do you see instead?
I would expect to get the latitude, but I get nothing.
If I just use {obj}.latitude it works as intended.

What version of the product are you using? On what operating system?
_0.4 (on nov 16)

Please provide any additional information below.

I fixed it by wrapping the successCallback from gears, to make it work like
the other callbacks as well.

Original issue reported on code.google.com by [email protected] on 8 Dec 2009 at 9:05

Can't set ".getElementById.value" from success_callback function

What steps will reproduce the problem?
1. Made INPUT as <input type="text" id="latitude" name="latitude">
2. In success_callback function tying 
document.getElementById('latitude').value = p.coords.latitude.toFixed(10);
3. See what getElementById have not worked.

What is the expected output? What do you see instead?
No output. Only error_callback function execuded.  

What version of the product are you using? On what operating system?
iPad (iOS 3.1.2) but on iPhone with iOS 4.2 it works.

how i can send latitude and longitude in PHP, if i cant set hidden inputs in 
form.

Many thanks and sorry from my English =)


Original issue reported on code.google.com by [email protected] on 1 Nov 2010 at 8:57

Does not run on reload

What steps will reproduce the problem?
1. Run the simple example code in Firefox 3.6
2. After the coordinates are retrieved, hit refresh.
3. The code fails to run; neither success nor fail callbacks are executed.

What is the expected output? What do you see instead?
I expected success_callback or error_callback to execute.  Instead, nothing 
happens.

What version of the product are you using? On what operating system?
Firefox 3.6 on Windows 7.  

Please provide any additional information below.
I realize this may not be a defect, and that the code may operate differently 
on a mobile device than a desktop computer.  I'm wondering if anyone can set me 
straight on this.  Running the example in Safari yields the same result.

Original issue reported on code.google.com by [email protected] on 14 Mar 2011 at 11:51

Google Gears API is retired so gears_init.js 404's

What steps will reproduce the problem?
1. Include the <script src="http://code.google.com/apis/gears/gears_init.js" 
type="text/javascript"></script><script 
src="http://code.google.com/apis/gears/gears_init.js" 
type="text/javascript"></script>
<script src="geo.js" type="text/javascript" ></script>
2. Load the page

Expected output is for the scripts to include and things to work.  But instead 
the script will fail to load as it's 404 at Google.

Using 0.4.7 on Linux.

Is there an alternative to gears that can be used, or does this mean a rewrite?

Original issue reported on code.google.com by [email protected] on 8 Apr 2012 at 4:59

Maps samples broken by Google Maps API change

What steps will reproduce the problem?
1. Go to http://www.merkwelt.com/people/stan/geo_js/sample_with_map.html in
any browser on any platform.

Expected:
A Google Map is rendered of the user's location.

Actual:
A grey rectangle is rendered in place of the map. Firebug reports that
'set_center' is undefined.

Detected on WinXP/Firefox 3.

The 'set_center' and 'set_zoom' methods (among others) were recently
deprecated and removed from the API, and replace with setCenter and
setZoom. Replace these and it works fine.

Original issue reported on code.google.com by [email protected] on 7 Jan 2010 at 7:34

accuracy is literally all over the map

What steps will reproduce the problem?
1.load in ff 12.0 results in marker being dropped about 2 miles from my current 
location.
2.load in Blackberry Torch 9800 results in the marker being dropped at a totaly 
different location than the above,across town
3.

What is the expected output? What do you see instead?
Accuracy? not accurate?


What version of the product are you using? On what operating system?
latest (2012) build. Firefox on Linux, Blackberry torch

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 3 Nov 2012 at 5:53

If gears fails (a user can decline access), script should fallback to other methods.

What steps will reproduce the problem?
1. Use browser with both Gears and navigator.geolocation
2. Decline access from Gears
3. Script will fail

This is because of the if/else chain in the script. It may be better to use
a method like so:

if (!tryGears() && !tryNative() && !tryXXX())

function tryGears(){
if !has gears return false
if gears fails return false
}

That way the script will still go down the list if one of the methods fails.


Original issue reported on code.google.com by [email protected] on 4 Jan 2010 at 7:26

Sometimes produces nothing, not even error callback.

What steps will reproduce the problem?
1. Use your example on any browser that isn't Chrome
2. Or see my example at http://adamzwakk.com/geolocate/
3.

What is the expected output? What do you see instead?
It sometimes produces nothing at all. Except in Chrome where it works 100% of 
the time.

What version of the product are you using? On what operating system?
SVN version.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 23 Feb 2011 at 5:51

Need more decimal numbers for longitude latitude

What is the expected output? What do you see instead?
Need more decimal numbers for longitude latitude

What version of the product are you using? On what operating system?
0.4.7

Please provide any additional information below.
I want to use lat and lon that geo-location-javascript returns to another "map 
showing place"  in my web site. 
The problem is that the returned lat and lon returns only 2 decimal numbers 
(like 23.XX) so the accurancy is not so great. geo-location-javascript though 
found my exact place in the first place.

Is there any way to get more than 2?

Original issue reported on code.google.com by [email protected] on 17 Dec 2011 at 7:52

Questions on webOS Support

Do you have guide on how to use this on webOS App?

Try to develop apps using Geo location. Please help.

Thanks


Original issue reported on code.google.com by [email protected] on 1 Aug 2011 at 12:48

open group

i think you should create group so that we can discuss geo location with
members that interested

Original issue reported on code.google.com by [email protected] on 22 Jul 2009 at 7:13

http://www.merkwelt.com domain has expired; samples no longer available

It looks like domain http://www.merkwelt.com expired a couple of weeks ago.
 As a result, the sample files for this project are no longer available. 
Can this be fixed, or is there another place to get these files?  In
particular I was looking for the Nokia WRT example that used to be at
http://www.merkwelt.com/people/stan/geo_js/geo-location-js-sample.wgz



Original issue reported on code.google.com by [email protected] on 25 Jan 2010 at 11:22

Sample web pages was loading and no response

What steps will reproduce the problem?
1.I use the browser on the android phone

2.connect to these two  sample web pages
http://www.merkwelt.com/people/stan/geo_js/sample_with_map.html
http://www.merkwelt.com/people/stan/geo_js/sample.html
3.when I connect to the page,the GPS using icon on the phone will show for 2 or 
3sec.When I connect the sample web pages,the map on the page is not loading,and 
the browser loading bar stop ,and no map response. 
What is the expected output? What do you see instead?
The expected output is see the map and my position.
I see the loading and no response page. 

What version of the product are you using? On what operating system?
HTC Magic.Android ver 1.5.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 27 Oct 2010 at 2:36

Refresh for Accuracy?

I am using this framework, which is called on pageload, to write lat/long
to session vars for access by PHP on the next pageload, as a way to provide
pervasive "where is the user" for downtown directory mobile web applications.

my issue is that it often takes awhile on the iPhone to get a good read on
the GPS.  The initial read is often poor.

is there a way to continue polling until a vertical level of horizontal
accuracy has been reached?  Or just to continue polling in general
(guessing each successive read of the GPS will be maybe better but no
worse?) while the page is open (not just on page load?)

Jim Blakeslee
Geocentric


Original issue reported on code.google.com by [email protected] on 16 Aug 2009 at 5:14

Firefox brings back nothing, not even the error callback

What steps will reproduce the problem?
1. Go to http://adamzwakk.com/geolocate/
2. Click "click me"
3. Watch as nothing happens... but sometimes it works

What is the expected output? What do you see instead?
A list of places in order of how far away they are

What version of the product are you using? On what operating system?
0.4.8

Please provide any additional information below.
I posted this issue with code on StackOverflow here: 
http://stackoverflow.com/questions/4973170/html-not-showing-up-on-firefox

Original issue reported on code.google.com by [email protected] on 11 Feb 2011 at 10:52

Response was malformed.

What steps will reproduce the problem?
1. Download example code. Open the sample.html file.
2.
3.

What is the expected output? What do you see instead?
Expected: Location could not be determined
Instead: Network location provider at 'https://www.google.com/loc/json' : 
Response was malformed.

What version of the product are you using? On what operating system?
geo-location-javascript v0.4.3
Ubuntu 2.6.32-23-generic

Please provide any additional information below.
I'm using it from my laptop. I assume the problem is that it cannot determine 
my position due to be using only my IP and a having very low accuracy. If I try 
to determine my position in google maps it says "Your location could not be 
determined".

Original issue reported on code.google.com by [email protected] on 21 Jul 2010 at 10:17

i have a blackberry 8900 and whenever i download an apllication such as blackberry messenger etc.it says it have been installed successfully but when it trys to load , there is an error message "a problem occured when trying to render page" can you please help. There are a bunch of applications on my application list but they are not showing on the menu to run.

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 24 Sep 2010 at 11:03

N97 does not work because of small mistake in code


This line:

   else if (typeof(Mojo.Service.Request)!="Mojo.Service.Request")

Generally breaks N97 devices - because Mojo is undefined, Service generating 
error that throws out function outside. This makes N97 not initialising 
properly. Easy fix:

   else if (typeof(Mojo)!="undefined" && typeof (Mojo.Service)!="undefined" 
&& typeof(Mojo.Service.Request)!="Mojo.Service.Request")

Original issue reported on code.google.com by [email protected] on 3 Nov 2009 at 11:20

Is geo.js library also intented to work in desktop browsers?

... If so then it's not working in the current stable Chrome (8.05....).
Using geo.js in Chrome simply does nothing, no errors are thrown.

I changed a few lines as smooth as possible so that it also works in Chrome.
I've added a tar.gz file tested in Firefox 3.6, Opera and Chrome.
(Safari doesn't seem to have Geolocation API implemeted completely yet, but I 
don't know for sure.)

Don't know if this change affects gears based phones. I'm mainly interested in 
a reliable library for desktop browsers.


... If not not then you take this as a request.



Original issue reported on code.google.com by [email protected] on 11 Jan 2011 at 5:49

Attachments:

Shouldn't depend on 'console' being defined

Open any page with geo.js in Opera (sample.html or 
http://diveintohtml5.org/detect.html).
Scripts following the geo_init() call won't run (on 
http://diveintohtml5.org/detect.html, you won't have the info about geolocation 
support, *and* nothing about supported input types either!); there's a 
ReferenceError 
in Opera's error console, about 'console' being undefined.

That's caused by line 201 in geo.js (r54)
http://code.google.com/p/geo-location-javascript/source/browse/trunk/js/geo.js#2
01

Original issue reported on code.google.com by t.broyer on 9 Sep 2009 at 9:49

Not working in iPhone OS4

I'm a sucker for punishment and am testing iPhone OS4 beta.

Looking at my site, http://FindStuffNear.me, which uses your framework and
it doesn't work as planned.

I get asked permission, which I grant and the 'My Location' arrow displays
in the tool bar. However, that's about it!

I know it's still early beta and I'm in no way suggesting you look at this
with any priority, but it's more of a 'heads up' or 'warning'. I'll keep
you posted as further beta's are released.

MaFt

Original issue reported on code.google.com by [email protected] on 20 Apr 2010 at 2:57

Is it ilegal to use google maps with directions inside Safari Webview?

I have read the terms of agreement for google maps but still I'm unsure if it's 
legal or not. With Interface Builder you can add a UIWebView instance which 
displays embedded content and enables content navigation from the web. So when 
I load it am I allowed to use directions? I heard that you are only allowed to 
use it directions when your app opens safari with google maps url.

Original issue reported on code.google.com by [email protected] on 1 Sep 2011 at 10:55

Support getting GPS data via Franson's GPSGate browser interface

> How about supporting Franson's GPSGate?
> It gives javascript in a browser access to the Windows machine's
> hardware GPS device: http://gpsgate.com/products/gpsgate_client

http://forum.gpsgate.com/topic.asp?TOPIC_ID=6102

Currently it is the only way to get GPS data in browser in Windows XP and Vista.


Original issue reported on code.google.com by [email protected] on 26 Oct 2011 at 10:31

Use IP Address when all fails

I recommend exposing an option to rely on the IP address if geolocation fails.

Google AJAX API provides a method for IP Address location lookup: 
http://code.google.com/intl/de-DE/apis/ajax/documentation/#ClientLocation .

Original issue reported on code.google.com by msaeed43 on 7 Aug 2009 at 7:51

No watchPosition with gears dep

What steps will reproduce the problem?
1.insert gears js dep in html head
2.use watchPosition call with geo_location proxy class and js console opened
3.notice the undefined method

I've just checked gears watchPosition implementation, and copy pasted the
implementation code for non gears dep provider.


Original issue reported on code.google.com by [email protected] on 28 Mar 2010 at 3:09

android 1.5 geolocation support

What steps will reproduce the problem?
Android 1.5 uses the deprecated form of the position object - it returns it 
with Position.latitude and Position.longitude instead of 
Position.coords.latitude and Position.coords.longitude.  Therefore the returned 
object is not universally accessible. 

I have solved this on my own project by simply duplicating the conditional code 
you have for the W3C geolocation (ie navigator.geolocation) and it works just 
fine.  I just thought you might want to update the google gears portion.

Original issue reported on code.google.com by [email protected] on 3 Apr 2011 at 7:14

Does not work on BlackBerry Storm 2 & Bold 2.

What steps will reproduce the problem?
1.  Attempt to access:  http://www.merkwelt.com/people/stan/geo_js/sample.html
2.  Pop-Up comes with null value on Storm 2.
3.  No pop-up on Bold 2.

What is the expected output? What do you see instead?
Should show Lat/Lng.  As a consolation - I tried a simple
Blackberry.location & received Lat/Lng of 0,0.
Checked Browser Settings & it appears that in 5.0 of Blackberry OS it comes
with Google Gears.  So - probably a conflict there.

What version of the product are you using? On what operating system?
Storm 2
Verizon
Version:  5.0.0.320

Bold 2
AT&T
Version:  5.0.0.321



Original issue reported on code.google.com by [email protected] on 8 Dec 2009 at 10:57

a minor typo

I guess the "sampe"_with_open_map" should be "sample"_with_open_map. 

Original issue reported on code.google.com by [email protected] on 28 Dec 2011 at 2:51

geo-location doesn't work on Android 2.1 and IE9 but it works on Firefox

What steps will reproduce the problem?
1. open Internet Explorer 9 or Android 2.1 browser
2. http://html5demos.com/geo
3. it asks for permission on IE9 but then... Finding your location: failed

What is the expected output? What do you see instead?
I expected it to actually work

What version of the product are you using? On what operating system?
Android 2.1, Windows Vista

Please provide any additional information below.

The GeoLocation provided by this site, or Gears, or the W3C standard never 
works on my Android 2.1 Xperia X10, or on Internet Explorer 9. But it works on 
Firefox. Check it for yourself at http://html5demos.com/geo for a simple 
example.

Sometimes on Android 2.1, if I have GPS turned on, the test page doesn't fail, 
seems like it's searching for the satellite but then nothing happens, on 
Firefox it gives me the Lat and Long values. Other times, on Android, it gives 
me the message: The Last Provider Was Disabled or something alonge those lines. 
On IE9 it never works as well. Can someone help me? Thanks.

Original issue reported on code.google.com by [email protected] on 13 May 2011 at 1:40

freezing when behind an authentication proxy in firefox

What steps will reproduce the problem?
1. Use Firefox behind a proxy with authentication
2. Run geo_position_js.getCurrentPosition(success_callback, error_callback);
3. Allow share location

What is the expected output? 
Sending xhr request to get location.  

What do you see instead?
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) 
[nsIXMLHttpRequest.send]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: 
"JS frame :: file:///C:/ooo/ff/components/NetworkGeolocationProvider.js :: 
anonymous :: line 322"  data: no]
http://code.google.com/apis/gears/gears_init.js
Line 49


What version of the product are you using? On what operating system?
Firefox 3.6.6 behind a proxy

Please provide any additional information below.
The issue seems to be coming from Firefox as Chrome works well under the same 
conditions. error_callback is not called. The calling page is authenticated 
with the proxy. 

Original issue reported on code.google.com by [email protected] on 19 Jul 2010 at 7:50

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.