gps

How to translate a given coordinate into a bounding box of “diameter” x?

三世轮回 提交于 2019-12-10 10:45:30
问题 For example, I have a latitude and longitude in decimal format (as opposed to Degrees-Hours-Minutes like lat=44.1° 9.5' 30''). To search for nearby objects, I must specify the search "radius" as a rectangle with four values: north = 44.1; south = -9.9; east = -22.4; west = 55.2; Is there a formula or rule of thumb how to convert decimal lat/long values into a rectangular bounding box, such that the given latitude/longitude is in the center of that box? Must I fiddle around myself with a WGS84

Getting Zipcode using GPS android [closed]

╄→гoц情女王★ 提交于 2019-12-10 10:27:22
问题 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 . I am developing an application where I need to find zipcode using GPS. Can anyone help me in this regard? 回答1: Look into using Geocoder. Specifically Geocoder.getFromLocation. Once you get the List of Address(es)

GPS app stopped working on iOS 5 - Location Manager not updating

给你一囗甜甜゛ 提交于 2019-12-10 10:26:37
问题 I have developed an app targeted for iOS 4.3. It worked fine. But since I migrated to iOS 5.0, the app has started showing strange behavior. The location manager is not showing updates on change in position. Has anyone encountered this kind of problem? Thanks for any help. 回答1: I had my fare share with CLLocation manager weird updating issues when moving from iOS 4.x to 5: Have you subclassed the CLLocationManager object ? problem : In that case sometime the delegate methods sometime don't

How Google Chrome knows my current GPS location and how to use it in my code?

别说谁变了你拦得住时间么 提交于 2019-12-10 10:01:28
问题 today i realize that some pages can locate me (im using a laptop with no gps built-in) using google chrome with a an very impresive exactitude, i know that using my IP you can locate me, but not with such presision. Now in google maps you will see a button on top of the yellow men (street view) who locates you using google chrome . How does this work? There is an API to use that? 回答1: It's also possible with the actual HTML 5 Geolocation functions (only if your browser supports): if

Calculate the distance from point A to line segment using Lat /Lon

佐手、 提交于 2019-12-10 09:34:12
问题 I am working on an Android app that uses the GPS. I would like to know if there is a way I can throw out GPS Location data if the "new location" (point C) is too far away from line segment AB. I am using the Point to Line Segment formula found on Wikipedia. So far, the code I have is returning NaN when I try to use Latitude and Longitude coordinates. private void verifyGPSLocation(Location start, Location end, Location current){ final double errorValue = 0.0000216; double normalLength = Math

Android. How to know if location detected is from GPS or Network provider

邮差的信 提交于 2019-12-10 09:24:17
问题 I'm trying to implement an application which senses position from both GPS and the network provider and shows it on a Google Map. I succeeded in doing this, but I have a question: I get the provider in the onCreate() of my Activity (it extends LocationListener) locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Criteria criteria = new Criteria(); provider = locationManager.getBestProvider(criteria, false); location = locationManager.getLastKnownLocation(provider);

sharing data between threads

不想你离开。 提交于 2019-12-10 07:54:02
问题 I have a java app with two different threads that does the following thing: 1.The first thread(which is a ThreadPool)- Listens to one port for incoming connections from five different users. Let's call them : user1 user2 user3 user4 user5 each of them sending GPS data. 2.The second thread In the same time my java app listens to a second port where waits for another client(different from those who send GPS data) to connect to it. Now...I have a second app that connects to the java app that I

Is Fused Location Provider good choice?

与世无争的帅哥 提交于 2019-12-10 04:33:46
问题 I am developing an application where I want to use Fused Location Provider. But I have some doubts, and couple of questions. When GPS is off and I set priority to HIGH, does that mean that the GPS will be automatically turned on, or not? Can I set UpdateLocation with Fused provider with HIGH priority on demand to save battery at least a little bit? How can I know what Fused provider is using (is it a GPS or a network provider)? And finally Is Fused provider really the best choice for android

adb -s emu geo fix not works without using telnet

 ̄綄美尐妖づ 提交于 2019-12-10 04:22:38
问题 My app works on Google Apis 17. I want to set the gps location after an emulator is being launched. I try to this follow how-to-emulate-gps-location-in-the-android-emulator. 1st. get the serials number of the emulator. >adb devices emulator-5554 2nd run adb -s emulator-5554 emu geo fix 121.4961236714487 31.24010934431376 There are no warnings and errors. I am programming on windows7. It not work. However when I send gps info manually in eclipse(ADT22.6), it works. My app can locate the

How to set the location in the iOS simulator without writing code?

半城伤御伤魂 提交于 2019-12-10 03:59:55
问题 My problem was how to set the gps location of my app when running in the iOS simulator The home screen in my app displays sunrise and sunset times based on gps location and I wanted a screen shot with sensible values - I'm in the UK and the sunrise times were showing UK times for American sunrise and sunset. As it is on the launch screen one solution, going to Debug -> Simulate Location, is too late for me. Took me a while to work out and I wasn't finding the answer when I searched here