geolocation

Which DLL has the Windows.Devices.Gelocation namespace?

柔情痞子 提交于 2019-12-02 12:07:42
问题 I'm using VS 2012 and I need to write code that uses the classes in the Windows.Devices.Gelocation namespace. I downloaded the sample program but it won't load in VS2012 as it requires VS 2013. And the documentation for the class does not indicate which DLL that namespace is in. Can someone tell me which DLL contains that namespace? Is it available in .NET 4 or do I have to use .NET 4.5? Edit My project is a console application which runs in the background as a Windows service. The searching

Google maps API geolocation + radar places search

99封情书 提交于 2019-12-02 11:55:02
问题 I am trying to use both Geolocation and Places from the google maps API to display a map (at my location) with the nearest places around me. The two examples work seperately but not together. Can anyone tell me why there is a problem with this? am I overwriting the map with another or doing something else wrong? <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyA93l5zPyIvGB7oYGqzLSk28r5XuIs2Do8 &sensor=true&libraries=places"></script> <script> var

how to use map.locate with Polymer 1.0 / leaflet-map 1.0

天大地大妈咪最大 提交于 2019-12-02 11:39:22
问题 I am new to both Polymer and Leaflet's web component. I would like to have a button that toggles the geolocation function given by Leaflet. Using Leaflet in a Javascript/HTML/css application I would know how to do this but I can't get it to work using Polymer 1.0. Here is my map element. My attempt to call map.locate is commented out in the element registration: <dom-module id="my-maps"> <style> ... </style> <template> <leaflet-map id="thismap" latitude="{{latitude}}" longitude="{{longitude}}

Android: How often does getLastKnownLocation(LocationManager.NETWORK_PROVIDER) return null in real life?

久未见 提交于 2019-12-02 11:06:21
问题 Do the Android users have the chance to reset the NetworkProvider, so that the location will be null? I came up with the idea, that its only possible to have that location null, after starting the device the very first time. But also than google will check the location right away for my opinion. Sure, I'm implementing a default location for this rare case. I just want to know how seldom this case is. 回答1: It returns 'null', when the Service is disabled in Settings > Location and Security >

Location object passed into onLocationChanged is null?

和自甴很熟 提交于 2019-12-02 10:39:34
I have an activity that implements LocationListener in my application and my onLocationChanged method has been working perfectly up until recently. For some reason the Location object being passed into the method is null. My question is, why is it null? Does it pass in a null object if it cannot acquire a location? My GPS is on and I have it set to pull a location from the GPS, and I know my GPS can get a fix on me as I used Maps and had it locate me. Also, I have the permission for my app set as: <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name=

Appcelerator Could not find method android.app.Activity.checkSelfPermission

℡╲_俬逩灬. 提交于 2019-12-02 10:12:40
I cant seem to get geo location to work on Android just seem to get the following bug. [INFO] : dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method ti.modules.titanium.geolocation.GeolocationModule.hasLocationPermissions [WARN] : dalvikvm: VFY: unable to resolve virtual method 32: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I [INFO] : dalvikvm: Could not find method android.app.Activity.requestPermissions, referenced from method ti.modules.titanium.geolocation.GeolocationModule.requestLocationPermissions [WARN] : dalvikvm: VFY:

Retrieving Current Location and Zip using Geolocation Button

百般思念 提交于 2019-12-02 09:50:04
I want to place a Geolocation button near my UISearchBar , which on clicking, it should return the zip (eg. 20043). I will be using the value from the ZIP to get the list of buildings near me. I would appreciate it if someone could help me with the location Button, and what are the methods to implement to return just the ZIP ( integer ) ? And would a custom UIButton work for the location button ? Thank you! In iOS 4 there is no forward geocoded (turning an address into lat/long), there are some enhancements to this in iOS 5 (this is under NDA, so you'll need to visit the Apple developers site)

How to retrieve a set of locations within particular range from user's location from SQLite database

青春壹個敷衍的年華 提交于 2019-12-02 09:42:47
I have some location coordinates stored in my SQLite database table. I want to retrieve the locations within 1 km range from the use's current location. Right now I am fetching all values from database and have written a method to retrieve the values within my range. This leaves me great overhead as my table might contain more than 1000 coordinates. So i am looking for a better way to do this. Is it possible to directly retrieve locations within my range directly using SELECT query? I found question 1 and question 2 but couldn't find a possible workaround.Any help will be greatly appreciated.

Finding user location

别说谁变了你拦得住时间么 提交于 2019-12-02 09:28:53
I am trying to get user location for my weather app. I am currently unable to do so and have tried to follow both the Google Last known location guide, as well as https://guides.codepath.com/android/Retrieving-Location-with-LocationServices-API . import android.Manifest; import android.content.Context; import android.content.pm.PackageManager; import android.graphics.drawable.Drawable; import android.location.Location; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation

How to get location of android device by its android id

萝らか妹 提交于 2019-12-02 09:26:43
I am new in android and recently start learning about Android and I am trying to get location of any android device by its unique android id. By that I can track the approx or exact location either by GPS or network provider. In detail I mean to say that whenever i enter any Android id in my app i can get device location in my application. Thanks for your kind help. Finally I am able to do with this code: public class MyService extends Service implements LocationListener{ String GPS_FILTER = ""; Thread triggerService; LocationListener locationListener; LocationManager lm; private static final