geolocation

Requesting single location update, AVD crashes

喜夏-厌秋 提交于 2019-12-04 03:51:38
问题 I'm trying to request a single location update using the new LocationManager.requestSingleUpdate() method, but once the device gets an update from the GPS the OS crashes and seems to try to reboot. At least I get the usual Android boot screen, but it never finishes booting. I've tried running the code on a 2.3, 2.3.1, 2.3.3 and 2.2 AVD, with the same result on all. ***** Update ***** I tried an old location based app that I have made, and that is running just fine on a few hundred units, and

How to expand the shared location URL from Google Maps?

空扰寡人 提交于 2019-12-04 03:31:21
问题 I am trying to get the location from google map shared location link so I am using Google Shorten URL API to expand the URL but when I shared URL from Google Map application from the android device it gives me https://maps.app.goo.gl/eEhh3 this kind of URL. It does not give me actual expanded URL to provide Location information. how to expand this: https://maps.app.goo.gl/eEhh3 In this link: https://www.google.com/maps/place/Siddique+Trade+Center/@31.5313297,74.3504459,17z/data=!3m1!4b1!4m5

Initiating a Phonegap plugin after device restart

天大地大妈咪最大 提交于 2019-12-04 03:19:26
I am in the process of developing a hybrid Phonegap app for Android. The app uses just the one plugin which I am developing as well. The plugin does three things Watches for geo-location changes (both foreground and background) Sets up a half-hourly alarm to perform certain periodic tasks Listens for push messages. I use the pushy.me service and the code I use follows their documentation . I had implemented the code to get the application to tune in to device reboots with some trepidation but it turned out to be easy (thanks to information I found in other threads on SO) package com.example

Is there a reason that Cassandra doesn't have Geospatial support?

元气小坏坏 提交于 2019-12-04 02:43:36
Since Cassandra is based off of the Dynamo paper (distributed, self-balancing hash table) + BigTable and there are spatial indexes that would fit nicely into that paradigm ( quadkey or geohash ). Is there a reason that Geospatial support hasn't been implemented? You could add a GeoPoint datatype as a tuple with an internal geohash and specify a CF as containing geo data. From there you can choose the behavior as having the geo data being a secondary index, or a denormalized SCF. That could lay the ground work for geospatial development and you could start by implementing some low hanging fruit

GeoTag Images from image picker swift 3

只愿长相守 提交于 2019-12-04 02:29:20
问题 I want to get geotag location from image which is selected from image picker. I am using this code if picker.sourceType == UIImagePickerControllerSourceType.PhotoLibrary { if let currentLat = pickedLat as CLLocationDegrees? { self.latitude = pickedLat! self.longitude = pickedLong! } else { var library = ALAssetsLibrary() library.enumerateGroupsWithTypes(ALAssetsGroupAll, usingBlock: { (group, stop) -> Void in if (group != nil) { println("Group is not nil") println(group.valueForProperty

What is the maximum and minimum radius that can be set for regions in iOS geofencing

坚强是说给别人听的谎言 提交于 2019-12-04 00:22:24
I was working on geofencing in iOS. I actually want to set different regions on the map with different radius for each regions. I actually want to know the Min and Max radius for Regions in iOS geofencing. Thanks, In iOS there is no minimum radius specified. Apple says, "The specific threshold distances are determined by the hardware and the location technologies that are currently available. For example, if Wi-Fi is disabled, region monitoring is significantly less accurate. However, for testing purposes, you can assume that the minimum distance is approximately 200 meters." (source: https:/

Converting lat/long to JTS?

走远了吗. 提交于 2019-12-03 22:32:04
I am trying to integrate hibernate spatial with JPA for Geo searches. I have been referencing the tutorial on the official site (I am not associated with hibernatespatial). The tutorial, unfortunately, does not cover how to create a Point instance from a latitude/longitude pair. I'm attempting to do this here, but I am still not sure if this is this the right way to convert a latitude/longitude pair to a JTS Point instance: import com.vividsolutions.jts.geom.Coordinate; import com.vividsolutions.jts.geom.GeometryFactory; import com.vividsolutions.jts.geom.Point; import org.geotools.geometry

Google map's marker not center after resize on bootstrap tab

强颜欢笑 提交于 2019-12-03 21:51:14
I bought a geolocation map script and when applied to bootstrap tab it will only shown small top left span. I added resize to overcome it. $(document).ready(function() { $(‘a[href=”#tab2”]’).click(function(e) { setTimeout(initialise, 1000); }); </script> function initialise() { var myMap = document.getElementById('map-myid1'); google.maps.event.trigger(myMap, 'resize'); }; }); The problem I am facing is the marker of map not center, it will hide left outside of map. How to fix it? See in real action In bootstrap 3.x.x , this script will help: var map; google.maps.visualRefresh = true; //

Find nearest places by latitude and longitude

无人久伴 提交于 2019-12-03 21:47:17
I have this website that stores latitude and longitude of some places and I want to display the nearest places (lets say, in a radius of 10km) of a specific place. How do I search on my MySQL table for these places? I answered this kind of question some years ago at Google Answers and again more recently at Uclue . I should note that the preferred technical convention is to represent longitudes in the West as negative values, but this is sometimes not observed. It won't make much difference unless you are calculating across the meridian opposite to the Prime Meridian (where longitude wraps

Android WebView using GeolocationPermissions

那年仲夏 提交于 2019-12-03 21:34:47
I’ve looked at the various questions regarding this problem on here such as: Using navigator.geolocation.getCurrentPosition in WebView on Android 2.0+ (PhoneGap related) android webview geolocation Android: Using html5 to determine geolocation in webview with javascript api But I’m still a bit confused, I know that I am supposed to create my own class from the abstract class WebChromeClient . Which gets the location, but how exactly from there does this object send the webView the geolocation/how do they communicate? Here is my code: (is this at least on the right track?) import android.app