Comment on GeolocationApi in gwt-mobile-webkit

3 views
Skip to first unread message

gwt-mobi...@googlecode.com

unread,
Dec 6, 2009, 3:21:45 PM12/6/09
to gwt-mobi...@googlegroups.com
Comment by jvanderdoes:

This wiki would be more helpful if it included a description of a typical
installation of the GeolocationApi library.


For more information:
http://code.google.com/p/gwt-mobile-webkit/wiki/GeolocationApi

gwt-mobi...@googlecode.com

unread,
Dec 7, 2009, 6:33:01 AM12/7/09
to gwt-mobi...@googlegroups.com
Comment by bguijt:

@jvanderdoes What do you mean exactly?

gwt-mobi...@googlecode.com

unread,
Dec 16, 2009, 6:57:08 PM12/16/09
to gwt-mobi...@googlegroups.com
Comment by jvanderd...@gmail.com:

I am using the Eclipse plugin and have a difficult time integrating the
Geolocational API with my existing project. I would like to see a tutorial
that includes setting up the project and importing the API correctly.

gwt-mobi...@googlecode.com

unread,
Dec 17, 2009, 11:43:09 AM12/17/09
to gwt-mobi...@googlegroups.com
Comment by armel.n...@etapix.com:

I have downloaded the API but found it a bit difficult integrating with my
app too. Can you tell me which name should I inherit in Main.gwt.xml. What
I am looking for is something on the line of
<inherits name="com.google.code.gwt.Geolocation"/>. Looking forward to your
reply.

gwt-mobi...@googlecode.com

unread,
Dec 17, 2009, 11:47:21 AM12/17/09
to gwt-mobi...@googlegroups.com
Comment by bguijt:

Aha!

I forgot to document that part! Will amend to wiki pages with that. Thanks!

gwt-mobi...@googlecode.com

unread,
Dec 17, 2009, 12:15:31 PM12/17/09
to gwt-mobi...@googlegroups.com
Comment by armel.n...@etapix.com:

@bguit, thanks but I found the following "<inherits
name="com.google.code.gwt.geolocation.Html5Geolocation" />" in the
HelloGeolocation samples.

Good project!

gwt-mobi...@googlecode.com

unread,
Mar 5, 2010, 9:53:04 AM3/5/10
to gwt-mobi...@googlegroups.com
Comment by reidlai:

It's excellent code segment to help us understanding Geolocation API.
However, in your example, we could only obtain Latitude and Long Latitude
information in OnSuccess method. How about to obtain both value out
Callback function, for example, to bind in GWT UI components say Label or
textbox? Thanks for your advice.

gwt-mobi...@googlecode.com

unread,
Mar 5, 2010, 11:00:24 AM3/5/10
to gwt-mobi...@googlegroups.com
Comment by bguijt:

@reidlai The actual Javascript API to obtain geolocation data is
asynchronous; this means we *have* to use callback methods to get the data,
there is no way around that. If you need that, you should 'pre-fetch' the
location, and in the `onSuccess()` method construct and bind the widgets
with the data, just like you would do using GWT's RPC.

gwt-mobi...@googlecode.com

unread,
Mar 29, 2010, 6:09:49 PM3/29/10
to gwt-mobi...@googlegroups.com
Comment by daniel.simons1:

Has anyone attempted using the GeographicalArea object. It seems to be
returning values much greater than expected for getDistance method...This
seems to be unrelated to the UnitType parameter.

gwt-mobi...@googlecode.com

unread,
Feb 23, 2011, 10:23:17 PM2/23/11
to gwt-mobi...@googlegroups.com
Comment by t3hef...@gmail.com:

for those still facing issues getting this working

it's not your gwt.xml file
it's your PROJECTNAMEHERE.gwt.xml file

and "add the jar file to your class path" means
http://stackoverflow.com/questions/179024/adding-a-jar-to-an-eclipse-java-library

Reply all
Reply to author
Forward
0 new messages