geolocation

Tag huge list of elements with lat/long with large list of geolocation data

爱⌒轻易说出口 提交于 2019-12-06 08:12:51
I have a huge list of geolocation events: Event (1 billion) ------ id datetime lat long And a list of point of interest loaded from open street map: POI (1 million) ------ id tag (shop, restaurant, etc.) lat long I would like to assign to each to each event the tag of the point of interest. What is the best architecture to achieve this problem? We tried using Google BigQuery but we have to do a cross join and it does not work. We are open to use any other big data system. Jeremy Lewi Using Dataflow you can do a cross join pretty easily using CoGroupByKey . Using this approach only the Event

Html5 Geolocation clearWatch() is not responding

亡梦爱人 提交于 2019-12-06 08:06:38
I compile and adjust this demo script for learning tracking with geolocation from parts of other scripts. So far so good... but the functions clearWatch() to stop searching or tracking are not responding because the alert() after it is not showing up. Something I forgot? <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0px; padding: 0px } #map_canvas { height: 100% ; width:100%;} </style> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor

not able to get alert in geofencing

柔情痞子 提交于 2019-12-06 07:32:03
问题 I have run a sample of Geofence and I have assigned two set of Lat , Lng and radius and run the sample. When I tap over register geofence I am getting following things in my log Location Services is available Client connected Add Geofences: Success GeofenceRequestIds=[1, 2] com.example.android.geofence.ACTION_GEOFENCES_ADDED but nothing happens after that, I don't know what the issue I am passed the current location by enabling gps but no effect. I don't know when I am gonna get the

Swift: Geofencing / geolocations near user location

安稳与你 提交于 2019-12-06 07:24:08
问题 Problem: I'm trying to make it so that it uses the user's location all the time and constantly checks to see if it is within 5 miles of the CLLocationCoordinate2D points I have set. If so, it sends a alert if the app is open or a notification if the app is closed. Useful Information: In my project I have 4 swift files: Locations.swift holds the CLLocationCoordinate2D points. Utilities.swift holds a simple alert. UserLocation.swift retrieves and updates the user's location

Why is HTML5 geolocation slower than native on Android?

梦想与她 提交于 2019-12-06 07:01:13
I've been dabbling with hybrid app development using Cordova (an extendable web view wrapper for those who haven't used it). One thing that I've noticed is that whenever I request the user's location with window.geolocation , the location fix almost always takes longer compared to a native app. For instance, it will take 5 or 6 seconds to get a suitable fix with window.geolocation from a "cold start", but the Google Maps app will pan to my location within 2 seconds or less. The same seems to happen with other native apps. This is kind of confusing as I'd imagine they both source data from the

Converting Southing/Easting GPS coordinates to Latitude/Longitude

折月煮酒 提交于 2019-12-06 06:38:14
I am developing a web application using JQuery Framework and am using Geolocation to determine the locations of our hardware stations to display on Google Maps. In our database the locations of the sites are stored in Southing/Easting format. I need a way to convert Southing/Easting coordinates to Latitude/Longitude that Google Maps can understand. Can anyone please tell me the formula or the best way to approach this problem? I have done searches on Southing/Easting however nothing came up, more like northing/westing etc and even then, not much info.. The programming part I don't really need

I set geolocation permission in the manifest, but every page still asks to share location

99封情书 提交于 2019-12-06 06:34:33
I'm using a content-script in a chrome extension that I'm writing. I included geolocation in my list of permissions, but on every webpage I still get asked if I want to share my location. I thought if I set geolocation in the list of permissions, I would avoid this? Here's the relevant code from my manifest.json : "permissions": ["geolocation"], "content_scripts": [ { "matches": ["<all_urls>"], "js": ["main.js"] } ] And how I'm using it: navigator.geolocation.getCurrentPosition(function(position) { console.log("latitude=" + position.coords.latitude + ", longitude=" + position.coords.longitude)

how do I get the bounds of a static google map?

﹥>﹥吖頭↗ 提交于 2019-12-06 06:30:19
问题 I am trying to plot geo coordinates (lat/lon) on an image I retrieve via Googles static Map API. I want to do this offline directly on the image via Ruby because I want to plot about 20,000 coordinates. However, for this task, I need to specify the corner (top left & bottom right) coordinates. here is the link to my map: http://maps.google.com/staticmap?center=51.0,10.0&zoom=6&size=640x640&format=png&sensor=false How can I get coordinates for the top left and bottom right corners of this map?

Programmatically Get a List of Wireless Access Points

旧城冷巷雨未停 提交于 2019-12-06 06:15:58
问题 This is a general programming question although I would prefer a Node.js -geared solution. Are there any JavaScript or .NET APIs for retrieving a list of wireless access points and their associated data (SSID, MAC address, etc.)? I used TamperData to see what happens when you share your location with Firefox and got this request URL: https://maps.googleapis.com/maps/api/browserlocation/json?browser=firefox&sensor=true&wifi=mac:b8-c7-5d-07-6e-cf|ssid:TV2 Network|ss:-58&wifi=mac:00-13-10-8d-a7

Location update rate in Google Maps (Android)

梦想的初衷 提交于 2019-12-06 06:05:16
I'm writing a simple GPS based app for location awareness. Whenever GPS is enabled, the app requests location updates and prints latitude and longitude in a TextView . If GPS is disabled, the location provider fall-backs to LocationManager.NETWORK_PROVIDER for triangulating device position relative to neighboring cell-towers. The aim is whenever device movement is detected, it should start populating the TextView with lat/long. When there is no movement, the process should stop. In order to do so, I've implemented the location update rate as: locationManager.requestLocationUpdates