Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18718] Windows: Implement Ti.Geolocation

GitHub Issuen/a
TypeEpic
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-09-30T23:30:45.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.0.0
ComponentsWindows
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2015-03-20T13:40:25.000+0000
Updated2017-03-16T22:39:56.000+0000

Description

http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Geolocation

Constants

- ACCURACY_BEST R O - ACCURACY_BEST_FOR_NAVIGATION R O - ACCURACY_HIGH R O - ACCURACY_HUNDRED_METERS R O - ACCURACY_KILOMETER R O - ACCURACY_LOW R O - ACCURACY_NEAREST_TEN_METERS R O - ACCURACY_THREE_KILOMETERS R O - ACTIVITYTYPE_AUTOMOTIVE_NAVIGATION R O - ACTIVITYTYPE_FITNESS R O - ACTIVITYTYPE_OTHER R O - ACTIVITYTYPE_OTHER_NAVIGATION R O - AUTHORIZATION_ALWAYS R O - AUTHORIZATION_AUTHORIZED R O - AUTHORIZATION_DENIED R O - AUTHORIZATION_RESTRICTED R O - AUTHORIZATION_UNKNOWN R O - AUTHORIZATION_WHEN_IN_USE R O - ERROR_DENIED R O - ERROR_HEADING_FAILURE R O - ERROR_LOCATION_UNKNOWN R O - ERROR_NETWORK R O - ERROR_REGION_MONITORING_DELAYED R O - ERROR_REGION_MONITORING_DENIED R O - ERROR_REGION_MONITORING_FAILURE R O - ERROR_TIMEOUT R O - PROVIDER_GPS R O - PROVIDER_NETWORK R O - PROVIDER_PASSIVE R O

Properties

- accuracy - activityType - distanceFilter - hasCompass R O - headingFilter - lastGeolocation R O - locationServicesAuthorization - locationServicesEnabled R O - pauseLocationUpdateAutomatically - purpose - showCalibration - trackSignificantLocationChange

Methods

- forwardGeocoder - getAccuracy - getActivityType - getCurrentHeading - getCurrentPosition - getDistanceFilter - getHasCompass - getHeadingFilter - getLastGeolocation - getLocationServicesAuthorization - getLocationServicesEnabled - getPauseLocationUpdateAutomatically - getPurpose - getShowCalibration - getTrackSignificantLocationChange - reverseGeocoder - setAccuracy - setActivityType - setDistanceFilter - setHeadingFilter - setLocationServicesAuthorization - setPauseLocationUpdateAutomatically - setPurpose - setShowCalibration - setTrackSignificantLocationChange

Events

- authorization - calibration - heading - location - locationupdatepaused - locationupdateresumed

Comments

  1. Fokke Zandbergen 2015-08-27

    All child issues have been resolved and the docs say its done as well, but is it working? https://community.appcelerator.com/topic/869/geolocation-services-in-windows-phone/2
  2. Christopher Williams 2015-09-30

    [~fokkezb] The user's issue likely had to do with enabling the geolocation capability in the appx manifest, which is now possible through adding Capability tags in the windows portion of the tiapp.xml.
  3. Marian Kucharcik 2015-11-22

    @Chris: How to add Capability tag into tiapp.xml? Can you please post example code with working GPS loacation? Thank you.
  4. Christopher Williams 2015-11-23

    [~max87] You can add capabilities to the tiapp.xml under the windows tag:
       
       <windows>
           <manifest>
             <Capabilities>
               <Capability Name="internetClient" />
               <DeviceCapability Name="location" />
             </Capabilities>
           </manifest>
       </windows>
       
  5. Fokke Zandbergen 2015-11-23

    https://appcelerator.github.io/appc-docs/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference-section-29004921_tiapp.xmlandtimodule.xmlReference-Addcapabilities
  6. Marian Kucharcik 2015-11-24

    Thank you guys, I added above code into tiapp.xml, it shows error mark, that windows tag is unexpected, but when I run app and ask for gps, gps icon shows up in status bar and successfully returns location. Thank you for your help.
  7. Fokke Zandbergen 2016-04-04

    [~bimmel] the information in these comments are undocumented. The Windows SDK has a lot of undocumented APIs. We should give that a boost before the 5.3 release since that'll be all about Windows.
  8. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source