geolocation

Finding a gps location at a certain time given two points?

霸气de小男生 提交于 2019-12-11 23:35:53
问题 If I have two known locations and a known speed, how can I calculate the current position at distance d (in km)? For example, given: Two gps locations in ES4236: 37.783333, -122.416667 # San Francisco 32.715, -117.1625 # San Diego Traveling at 1km/min in a straight line (ignoring altitude) How can I find the gps coordinate at a certain distance? A similar SO question uses VincentyDistance in geopy to calculate the next point based on bearing and distance. I guess, more specifically: How can I

Android Geocoder not returning City

a 夏天 提交于 2019-12-11 21:20:59
问题 I need help. Im stuck in getting cityname using Geocoder api. Anthing that I did wrong here. One thing that work is if I used this in the onLocationChanged(Location loc). However that require me to update my coordinate by moving around. I only want to use coordinate from network. Any help is very much appreciated. public void DisCityName(Location loc){ /*----------to get City-Name from coordinates ------------- */ String cityName=null; Geocoder gcd = new Geocoder(getBaseContext(), Locale

Getting Repeated Current Location inside a Service in android?

て烟熏妆下的殇ゞ 提交于 2019-12-11 21:09:39
问题 I am calling a service were i will get current location at some interval and match the location with a location passed to the service.and if it is in a close range it will buzz the phone.Now i tried to get the current location by FusedLocationApi .But i got error when i write this portion mGoogleApiClient = new GoogleApiClient.Builder(getApplicationContext()) .addApi(LocationServices.API) .addConnectionCallbacks(this)//here i got the error .addOnConnectionFailedListener(this) .build();

navigator.geolocation support in web server

做~自己de王妃 提交于 2019-12-11 20:15:02
问题 this is my first time to give question on stackoverflow , because I can't find the answer.. I recently have 3 host (if ok to mention ) : Hostgat**.com inmotionhost***.com ipag*.com -- this is the basic code if(navigator && navigator.geolocation) { navigator.geolocation.getCurrentPosition( function(pos) { if (is_echo){ return; } is_echo = true; success(pos.coords.latitude,pos.coords.longitude); }, function() { if (is_echo){ return; } is_echo = true; fail(); } ); } else { fail(); } This code

What is the best way to get longitude and latitude for an address via Google in java

℡╲_俬逩灬. 提交于 2019-12-11 19:21:18
问题 I'm trying to write some java codes getting locations from address. (not in android environment.) If possible, I want it to be permanent way as long as Google provides geo-location services in somehow. I think I cannot say Google javascript geolocation apis uses permanent URL to do that, since the api's Object is to come from Google server at runtime. However I think it seems to be possible that Android might use a permanent URL to do that since Google is not able to change every device's

Could i store user geolocation data lat/lng unencrypted but cutted on my database

拟墨画扇 提交于 2019-12-11 19:15:10
问题 For a well performance on my server it`s essential that i can store latitude and longitude unencrypted . My application is based on location searches, almost every query needs to be filtered on location. This means i have to decrypt each row of each query first before im able to get the correct rows. Thats a really big problem if there are many rows. This way i tought for privacy i could store the values lat and lng cutted. For example: lat: 52.52835 lng: 13.40547 -> lat: 52.528 lng: 13.405

Understanding geolocation example

£可爱£侵袭症+ 提交于 2019-12-11 19:04:45
问题 I am looking at a geolocation example which gives a user directions to Alexanderplatz, Berlin from their geolocation but I'm having trouble understanding the two separate fallbacks: function () { // Gelocation fallback: Defaults to Stockholm, Sweden createMap({ coords : false, address : "Sveavägen, Stockholm" }); } ); } else { // No geolocation fallback: Defaults to Lisbon, Portugal createMap({ coords : false, address : "Lisbon, Portugal" }); Here is the full code: <script src="http://maps

Defining a threshold for Distance between two GEO Locations?

偶尔善良 提交于 2019-12-11 18:53:24
问题 I am getting two GEO locations in my application and I have to calculate distance between them and after distance calculation I have to compare that result with the a defined threshold which is in my case 50 meters , how would I define that threshold in float. Also, Currently I my android fone is at the same location, but I always get the calculated distance between my 2 two geolocations determined after an interval to be more than 50 meters. How is it possible? I am taking threshold of 50

Intel XDK Geolocation won't find Lat/Long if location services off

久未见 提交于 2019-12-11 18:37:04
问题 I am using the Intel XDK to develop an app where i am specifically testing with android (Nexus 6P). I have added the Cordova Geolocation plugin as well as Google Location Services for Cordova and have tested with my location services switched on and it correctly gets the position for both plugins. However, when i switch off location services, nothing appears at all. Here is the code i am currently using to get the location: document.addEventListener("deviceready", onDeviceReady, false);

Unable to get location with gps location provider on android device

不打扰是莪最后的温柔 提交于 2019-12-11 18:35:54
问题 I am developing small location based android application in which I need users current location. I am also updating users current location as soon as some change in location is occurred.My code looks like: private final LocationListener locationListener = new LocationListener() { public void onLocationChanged(Location location) { updateWithNewLocation(location); } public void onProviderDisabled(String provider) {} public void onProviderEnabled(String provider) {} public void onStatusChanged