geolocation

GeoCouch query badmatch error

半腔热情 提交于 2019-12-25 02:14:27
问题 After installing Couchbase Single Server Community Edition fonr Windows, and following the instructions for "Using Geocouch" i've found in the readme from couchbase/geocouch Github, I only get the error: {"error":"{{badmatch,{ok,11780}},\n [{vtree_bulk,omt_write_tree,4},\n {vtree_bulk,omt_write_tree,2},\n {vtree_bulk,bulk_load,4},\n {vtree,add_remove,5},\n {couch_spatial_updater,'-write_changes/4-fun-2-',5},\n {lists,zipwith,3},\n {couch_spatial_updater,write_changes,4},\n {couch_spatial

How does the HTML5 Geolocation API work?

ε祈祈猫儿з 提交于 2019-12-25 01:47:05
问题 I am wondering how the HTML5 Geolocation API works. What I need to know is, the obtained latitude and longitude belongs to whom? Is it the location of the ISP, as I think there is no GPS device attached to my PC or the laptop? Also if it is obtained from the SSID of the WiFi device? Does the WiFi device know it's coordinates? 回答1: From the W3C Geolocation API Specification (emphasis mine): The Geolocation API defines a high-level interface to location information associated only with the

Measure GPS distance between two points without using almost any math? (accuracy is not needed at all)

岁酱吖の 提交于 2019-12-25 01:46:58
问题 I'm programming an application where I save GPS location (lat and long) into each user info. I need to search the nearest users, I can only search using a between() function provided by my database, this function only checks if a number is between a range min and max, it's a very limited tool. Can I use this to find near users? This is a pseudo-code example of what I could do, this example finds users that their lat and long values are not more or less than 2 comparing with the target user:

Is there a way to bypass Chrome geolocation dialog in Protractor tests?

十年热恋 提交于 2019-12-25 01:38:47
问题 I faced this problem, when automating an application with protractor. Once I open a home page I get geolocation dialog with Block/Allow buttons, which didn't let proceed without selection either option It turned out, that this dialog is not an instance of alert, that's why browser.switchTo().alert().confirm() didn't work Passing '--disable-notifications' argument to Chrome also didn't solve the problem Research online didn't give any positive results. How to solve it? 回答1: The solution to the

How can I check for GPS support in-App to add a feature for those with Location services enabled?

感情迁移 提交于 2019-12-25 00:37:37
问题 How can I check for GPS support in-App to add a feature for those with Location services enabled? My concern is, I know I'd have to specify the tag in the manifest to declare that the app uses location services, but I still want the app to function for those without. I just want to check and, if the service is available, use it; otherwise just ignore that one feature. Thanks. 回答1: You can check if any Location services are enabled by looking to see if any location providers are enabled. I'm

Given a lat/long, find the nearest lat/long pair from a list of lat/long in c#

橙三吉。 提交于 2019-12-24 23:43:47
问题 From a List of lat/long pairs, I am trying to find nearest lat/long pair w.r.t to a given Lat/Long . For ex- List of {42_-72,42,-75,43,-76} and a given point 42,-71 The Point 42,-72 is the nearest to 42,-71, hence output => 42,-72. 回答1: I would start by creating a method that can get the distance between two points. If we consider that in any right triangle, a^2 + b^2 = c^2 , and the distance from point P1 to point P2 is c , then we can use this formula to get the distance between two points

Positioning API support on desktop platforms

Deadly 提交于 2019-12-24 21:54:01
问题 I've tried to build a webkit app using HTML5 geoposition APIs to get the current coordinates. I've also turned on the geolocation feature but it fails to start with error Failed to start Geolocation service Then I've tried to use QGetPositionInfoSource , but it can't find any available source to use. I wonder, is Positioning API supported on desktop applications? 回答1: That's a big no-no . Directly from the documentation: The Qt Positioning API provides positioning information via QML and C++

Location-aware applications on WP7.5

泄露秘密 提交于 2019-12-24 20:22:14
问题 I would like to create a location-aware application on WP7.5 Is it possible to automatically get a trigger on location change without our application running on background? For example: I would like to know if a user has moved in a new location. If the user has moved I would like to trigger a specific event from my application. My only concern is that if I do that from my application I will consume a significant amount of battery. Is it a specific WP7 service which can inform my application

Updating user's location

泄露秘密 提交于 2019-12-24 20:16:40
问题 I'm having some trouble with Google Maps. I need to display user's location on the map and then update it. I'm using a default marker. However, the way my code is currently set up, it adds a new marker every time OnLocationChanged is called. I want it to just update that one marker or remove old one as it adds a new one with current location. Here's the code: public class GoogleMapActivity extends FragmentActivity implements LocationListener { Double longitude_user, latitude_user; LatLng

Coordinates.speed always returns as 'null'

我们两清 提交于 2019-12-24 19:36:54
问题 I am trying to develop a system where the particles on the background change their speed accordingly to the speed of the device (while you are in a car or bus, for example). For this, the Geolocation API sounded like a great option, with the Coordinates.speed property. The problem is that my speed is always returning as null . From what I've read, it should be a device-related issue, but I have tried with a Nexus 6p, a Mac, a Samsung tablet and an iPad, always with the same null answer in the