location

User's location and battery's consumption

允我心安 提交于 2019-12-22 09:29:15
问题 I am working on an iOS app that's focuses on pedestrians in a block of buildings (campus). I have developed a good enough (I believe) user's location update but, I would like anyone more expert than me to give me some tips, advices on accurate location, battery's issues etc. In addition, is it possible to stop the location update and start it again after n seconds? Is a thought that I did in order to save energy. As it is at the moment, app is detecting current location, but, blue dot (user)

More than one location provider at same time

旧街凉风 提交于 2019-12-22 08:37:59
问题 I have some problems with location systems. I have a service that implements locationlistener. I want to get the best location using network when possible, gps if network is not enough accurate (accuracy greater than 300mt). The problem is this. I need location (accurate if possible, inaccuarte otherways) every 5 minutes. I start with a : LocationManager lm=(LocationManager)getApplicationContext().getSystemService(LOCATION_SERVICE); Criteria criteria = new Criteria(); criteria.setAccuracy

Fused Location sometimes STOPS

别说谁变了你拦得住时间么 提交于 2019-12-22 08:37:21
问题 I've been working on an app that tracks the user's position. For this I have used the google play services location module (a.k.a. fused location). All in all everything works fine. BUT sometimes, completely random, I no longer receive location updates from the google location services, at all! I mean, my app is working fine, but no location updates. Not only that,if I start up google maps it can't get a fix on my location (even with GPS turned on). Reinstalling my app doesn't fix the issue.

Not receiving location data from thread

孤者浪人 提交于 2019-12-22 08:24:43
问题 I'm trying to send text messages containing the users location every so often using the timer. Initially, I ran into a nullpointerexception which was due to a simple mistake I made. Once this was fixed everything seemed to be running fine. However, it never gets my location, so, the text that keeps sending is saying "Could Not receive location". What I am asking is why is it not getting my location? And what can I do to fix the problem? There are no logcat errors and I am using two emulators

Get nearby street addresses within a radius

与世无争的帅哥 提交于 2019-12-22 08:02:14
问题 I would like to retrieve a list of all the street addresses within a small range on a geopoint. A scenario for use is for a user to select his/her current address from a list of addresses (within say 50 meters) of current location, since location retrieval is not going to be accurate enough. I am wondering if that is possible using Google maps API? Otherwise does anyone knows an alternative API that I can use for this purpose? From what I've seen, although the Google maps reverse geocoding

Location is accessed in Chrome, doesn't work in WebView

倖福魔咒の 提交于 2019-12-22 06:34:12
问题 I have a WebView that opens a URL that requires access to the user's location. It can determine the location when using Google Chrome outside the app, but in the app, it says I am not allowing the application to use location. Currently I have added <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android

Get *coarse* location from GPS provider on Android

夙愿已清 提交于 2019-12-22 05:47:15
问题 My app only needs very rough location data, so I originally set my manifest permissions to ACCESS_COARSE_LOCATION , and set up a location listener for NETWORK_PROVIDER . This gave me exactly the kind of rough location estimate I needed, but only with Google Location Services turned on. I was expecting that if the user only had GPS enabled, that I would still receive a rough estimate of their location. But it seems like the only way to get ANY location information from the GPS_PROVIDER is by

How did google get the outline for postcodes on maps?

ぐ巨炮叔叔 提交于 2019-12-22 05:40:48
问题 For example: http://g.co/maps/2dpkj has the outline around the postcode area. I understand this is unavailable through the API , but where else can I get this data, eg in a KML format. This is for UK Data 回答1: Most likely Google have a licensing agreement with Ordnance Survey that allows them to use the Code Points with Polygons data - I imagine they've then done some processing of the data to generate a KML file. Depending on your GIS skills and your ability to read the source file (ESRI

解析MATLAB中的SFM

自作多情 提交于 2019-12-22 02:58:26
close all; clear all; %% 预处理 % 导入数据 imageDir = 'C:\Users\lenovo\Desktop\卫星测试'; imds = imageDatastore(imageDir); % 灰度图转化 images = cell(1, numel(imds.Files)); for i = 1:numel(imds.Files) I = readimage(imds, i); if ndims(I)==3 images{i} = rgb2gray(I); else images{i} = I; end end % 导入相机参数,相机定标 [iR, iC] = size(images{i}); IntrinsicMatrix = [(iR+iC)/2 0 0; 0 (iR+iC)/2 0; iR/2 iC/2 1]; cameraParams = cameraParameters('IntrinsicMatrix',IntrinsicMatrix); %% 参考帧(第一帧)提取参考稀疏点,主要用来估计相机外参 % 1、镜面扭曲还原 I = undistortImage(images{1}, cameraParams); % 2、提取特征 border = 5; roi = [border, border, size(I, 2)- 2*border

cannot resolve symbol 'LocationServices'

柔情痞子 提交于 2019-12-22 01:34:05
问题 I am trying to build an android app using android studio that uses the userlocation. I am trying to import the google play services LocationServices api, but it says it can't resolve symbol 'LocationServices'. I tried searching for an answer but I can't figure out what the problem is. here is a picture of my error and code: Thanks in advance 回答1: You need to import: import com.google.android.gms.location.LocationServices; And in build.gradle : implementation 'com.google.android.gms:play