gps

How do I use the Google Maps API GPS sensor?

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: All I've been able to find is how to specify the sensor parameter: http://code.google.com/apis/maps/documentation/v3/#SpecifyingSensor But nowhere does it say how to actually USE it. Isn't the whole point to be able to get the user's current lat/long coordinates through the device GPS, or am I mistaken? 回答1: That sensor parameter is only there to indicate to Google that you are using a GPS sensor to determine the user's location. Unless using the W3C Geolocation API in browsers that support it, it remains your responsibility to get the

Can iPhone web apps get GPS position?

老子叫甜甜 提交于 2019-12-03 02:04:37
问题 Is there an easy way to design a website to facilitate an iphone user providing gps coordinates to the site? I am wondering if there might be a naming convention for form fields for example, to let the user input in an automated way. I am considering building a location based website and would like to tailor it for iphone (and other mobile users). I realize an iphone app could do this but I'm not equipped to create one. 回答1: Here's a snippet on how to read location from the iPhone. Looks like

how to create maps which detect automatic location in React-Native

妖精的绣舞 提交于 2019-12-03 02:04:12
I have created maps in react-native referring to https://github.com/lelandrichardson/react-native-maps map is created but i want to detect automatic location using gps. Here is the code which renders map with static latitude and longitude. Here's my updated code. But it still not rendering perfect location getInitialState() { return { initialPosition: 'unknown', lastPosition: 'unknown', }; }, componentDidMount() { navigator.geolocation.getCurrentPosition( (position) => { var initialPosition = JSON.stringify(position); this.setState({initialPosition}); }, {enableHighAccuracy: true, timeout:

How to solve Xcode 4.1 (LION) GPS error?

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My project worked perfectly on simulator+device, but now, after upgrading to lion os and xcode 4.1 , I get this error when gps is active! server did not accept client registration 68 It's a gps based application, and i'm nervous to not debug app in simulator! Any idea to solve this issue? UPDATE : Gps on Simulator doesn't work also on Xcode 3.2.6 + LION. EDIT : Apple response on bug tracker: After further investigation it has been determined that this is a known issue, which is currently being investigated by engineering. This issue has been

Android Studio : fetching GPS coordinates of the current marker location in Google Maps

匿名 (未验证) 提交于 2019-12-03 01:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have the following that needs to be included into an Android application, I'm hoping someone could provide some coding samples to illustrate what exactly I'm attempting to achieve here. The Android App has a Google Maps interface on the screen. User of the App can browse through the opened Google Map interface and select a particular location. I want to fetch the GPS coordinates of this location. Thanks in advance!! 回答1: Here, Answer. It's working fine. I also found this solution from stack overflow with some problem. But now all

Get GPS Status on location changed

匿名 (未验证) 提交于 2019-12-03 01:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am using GPS services to derive latitude & longitude in my App. I am able to get the latitude and longitude when the signal is avialable. Once i get a fix, if i have to go to a place where the GPS is not able to get a location fix, it still shows the last location. I want to get the current location and not otherwise. I have tried using onLocationChanged() and onGpsStatusChanged() both to get the GPS status but it isnt giving me the result. @Override public void onGpsStatusChanged ( int arg0 ) { // TODO Auto-generated method stub

GPS on emulator doesn't get the geo fix - Android

匿名 (未验证) 提交于 2019-12-03 01:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm developing an application for the android OS, I'm just starting, but I can't get the GPS on the emulator to work. I've read on the internet that you need to send a geo fix to the emulator in order to enable the gps locationProvider. I'm both using the DDMS and telnet to try to send it, but logcat never tells me the it recived a new fix, and my apolication still sees the gps as disabled here's my code package eu.mauriziopz.gps; import java.util.Iterator; import java.util.List; import android.app.Activity; import android.content.Context;

“gps” location provider requires ACCESS_FINE_LOCATION permission for android 6.0

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In the android manifest file I have added the below permissions for gps to access the location I am fecthing Location Updates as below using Location Manager Class private static final long MIN_DISTANCE_CHANGE_FOR_UPDATES = 10; // 10 meters private static final long MIN_TIME_BW_UPDATES = 1000 * 60 * 1; // 1 minute locationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, this ); But the above line is giving an exception stating "gps" location provider requires ACCESS_FINE

Google map's turn by turn gps navigation for ios development

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: My app required to include turn by turn gps navigation. Can anybody tell how to integrate google map for turn by turn gps navigation. I can found it in android development. But i can't found navigation from google map's iOS development documentation. https://developers.google.com/maps/documentation/ios/intro Please anybody help to resolve my problem. 回答1: The google map ios Sdk does not have any turn-by-turn navigation api or navigation api's,yet. Please refer link https://developers.google.com/maps/documentation/ios/urlscheme for

Android “gps requires ACCESS_FINE_LOCATION” error

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using SDK-23, and every time I run the application, my SecurityException gets thrown and the error from the debugger reads as so: java.lang.SecurityException: "gps" location provider requires ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission. This seems like a simple mistake, however, my manifest file is completely correct. Here it is, and here is my MapActivity code as well: package com.buahbatu.salesmonitoring; public class MainActivity extends AppCompatActivity implements View.OnClickListener { final static String TAG =