geolocation

Determine location using Microsoft Location Service API in Windowsphone7

谁都会走 提交于 2019-12-12 04:58:04
问题 I submit my app on windows-phone7 store, Microsoft need following requirement to certify the app. The following requirements apply to applications that receive the location of a user's mobile device: 2.7.1 Your application must determine location using Microsoft Location Service API. 2.7.2 The privacy policy of your application must inform users about how location data from the Location Service API is used and disclosed and the controls that users have over the use and sharing of location

MobileFirst 6.3 - Enabling location trigger in Background in Hybrid Applications for iOS environment

霸气de小男生 提交于 2019-12-12 04:56:57
问题 I'm using MobileFirst Platform 6.3, I'm trying to implement a Hybrid Application for Android and iOS, where I have created enter/exit location triggers in it, with "enableHighAccuracy=true", the application should always listen to the triggers when it is in the foreground and background. After adding the right permissions for both environments (Android, iOS), as stated in the KnowledgeCenter link: http://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.dev.doc/dev/r_wl

Blackberry 10 Webworks with Worklight Geolocation

孤街醉人 提交于 2019-12-12 04:46:41
问题 I'm working with Worklight 6.1 and WebWorks SdK 2.1 for BlackBerry 10. my issue is when I try to get the User location invoking this function : navigator.geolocation.getCurrentPosition( onSuccessGeo, onErrorGeo, {enableHighAccuracy: true}); I get this error : TypeError: 'undefined' is not an object (evaluating 'e.code') geolocation.js:115 Though when I run a sample project based on Webworks SDK 2.1, with cordova, the geolocation works fine. I made the same configuration and permissions for

Search distance between 2 points CakePHP [closed]

不羁的心 提交于 2019-12-12 04:37:40
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . Im trying to build a small CakePHP website which has some lat and longitudes in the DB. A user performs a search query to locations (with giving her/his address) and the results needs to be ordered by distance

Get the user's current city

只愿长相守 提交于 2019-12-12 04:26:23
问题 Hi I posted a question concerning the same topic a while ago, after following your advices I can feel that I'm getting closed to solving my problem. The App does is now crashing as I click on the button with the following error message in the monitor: FATAL EXCEPTION: main Process: com.example.apple.myapp1, PID: 10081 java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList

Send device's current location to Azure service in Windows 8.1

时光怂恿深爱的人放手 提交于 2019-12-12 04:18:43
问题 I am developing a location tracking windows mobile app and I want to send my current location to azure service as a background task. Getting current location is done. Currently I show the current location in the app tile. Likewise showing location in the tile I want to send location to the azure service. But how can I send my current location to azure service continuously so rest of the devices can see the device's location. So far my code public sealed class BackgroundGeofenceTask :

Retrieving Current location using Google Maps

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 04:17:54
问题 My code checks current user position and then loads all nearby stores including distance to location using cordova's geolocation plugin. This is my code: .factory('GSSearchLocationService',['$cordovaGeolocation', '$q',function($cordovaGeolocation, $q){ function _getLocation(options){ var callStart = options.callStart; var deferred = options.deferred; var attempt = options.attempt; var othOptions = options.othOptions; deferred.notify({attempt: attempt, message:'Searching attempt '+attempt,

Using a Sitecore CMS pipeline processor, how do I redirect a user based on their IP address?

喜你入骨 提交于 2019-12-12 04:08:40
问题 I am trying to do this with an httpRequestBegin pipeline processor, but I don't seem to be able to access the user's IP address from the given HttpRequestArgs parameter. When I implement a class that has this method public void Process(HttpRequestArgs args) { string ipAddress = args.Context.Request.UserHostAddress; // Not working string state = GetState(ipAddress); // already implemented elsewhere RedirectUserByState(state); // already implemented elsewhere } I thought that this might hold

2 Phones closeby position tracking without GPS

北城以北 提交于 2019-12-12 03:54:50
问题 Is there any way of getting any location data between two closeby devices (distance, direction etc.) using any of the phone capabilities without internet or GPS? If I have two phones that are in a building. Can they find each other without GPS? 回答1: One of the most important capabilities that smartphones now have is knowing where they are. More than desktops, laptops, personal navigation devices or even tablets, which are harder to take with you, a smartphone can combine its location with

Sorting multiple JavaScript array

不羁的心 提交于 2019-12-12 03:48:56
问题 I have created this script with the help of the Haversine formula, the problem is that it keeps directing me to the first location on the array, no matter how many time I swap them about. Any ideas? var locations = new Array( Array("Brighton", 50.82253, -0.137163), Array("Chichester", 50.83761, -0.774936), Array("Portsmouth", 50.8166667, -1.0833333), Array("Worthing", 50.81787, -0.372882) ); function deg2rad(degrees){ radians = degrees * (Math.PI/180); return radians; } function haversine