Results 1 to 7 of 7

Thread: Get GPS location of device?

  1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
      0  

    Default Get GPS location of device?

    Hi,
    Is there any way in touch 2.0 to get the GPS location from the device and use it?

    I couldn't find any answers in the forums or examples on how to do this. Perhaps it needs the native bundle?

    thanks

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,608
    Vote Rating
    874
      0  
    Evan Trimboli
    Twitter - @evantrimboli

  3. #3
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
      0  

    Default

    That's not global positioning system? I meant the GPS latitude/longitude.

  4. #4
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
      0  

    Default

    nm. I see how it works now. Thanks!

  5. #5
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
      0  

    Default

    I tried this on android phone and it doesn't seem to work.

  6. #6
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    We have an Ext.util.GeoLocation class that uses the HTML5 geolocation spec. There is the locationupdate event that fires when the coords are returned.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  7. #7
    Sencha User
    Join Date
    May 2012
    Posts
    9
    Vote Rating
    -1
      0  

    Default

    Please could you give me an short example, how can I use the Ext.util.Geolocation class in the Ext.MAp class. I cant get this work at the andriod device. useCurrentPosition works perfect on iOS but not on android. Ive been searching for hours for an solution. Im using ST 2 / anroid 2.2.. It is possible without building a native app, just running on the android browser and get the current possition via GPS?

    Thanks a lot....really great job this framework !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •