location

Order Facebook Places results by distance

爷,独闯天下 提交于 2019-12-18 14:47:01
问题 Does anyone know how to order Facebook places by distance from a search location? Note that I don't want to order results in my client app. I want the Facebook server to provide me with ordered results to facilitate pagination. I always want to append places from subsequent queries to the end of my array. This does not seem possible using the graph API query such as: https://graph.facebook.com/search?q=coffee&type=place&center=37.76,-122.427&distance=1000&.... because there is no way to tell

Change window location Jquery

左心房为你撑大大i 提交于 2019-12-18 14:11:17
问题 I am using ajax to load my website content and want to update the window location when ajax is successful. How can I update the window location to "/newpage"?? I need users to be able to go back and to refresh. Is this possible?? 回答1: I'm assuming you're using jquery to make the AJAX call so you can do this pretty easily by putting the redirect in the success like so: $.ajax({ url: 'ajax_location.html', success: function(data) { //this is the redirect document.location.href='/newpage/'; } });

Is location provider really a battery drain?

蹲街弑〆低调 提交于 2019-12-18 13:36:39
问题 I need to implement location-based service. I don't need fine location, so no GPS is needed. Easiest would be to start listening for locations updates at app start, and leave it ON: mLocationMgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 10000, 100, mPendingIntent); Since I don't need much accuracy, I set max frequency of updates, to 10s, and 100m instead of default 0, 0. When we think location, we think battery drain, but I guess this is a shortcut and that only GPS really

Get Location From Center of Screen Swift MapKit

ぃ、小莉子 提交于 2019-12-18 13:34:52
问题 I'm new on Swift Programming, and I'm trying to build an app that I can get the coordinates of the center of the view with MapKit and Swift 2. I already can get the current location, but I need if I move on the map, the location set to the new point which will be the center of the screen. Can you help me with this please?. Regards, 回答1: You can use the regionDidChangeAnimated delegate method and call mapView.centerCoordinate. It will look like the following: func mapView(mapView: MKMapView,

How to stop the viewForAnnotation method from overriding the default user location blue beacon in iOS

时光毁灭记忆、已成空白 提交于 2019-12-18 12:15:23
问题 Right now I am populating a map view with annotations, and also displaying the user's current location. With the viewForAnnotation method, it overrides all annotations with the default red pin, but I want to return the views for the other annotations, but keep the user location the default blue beacon. Is there a way to do this simply or do I have to create a new annotation view and return the right one depending on the annotation? Right now I have something like: - (MKAnnotationView *

iOS background polling without location services

跟風遠走 提交于 2019-12-18 12:07:51
问题 this is a question we've all wondered about a number of times, and no one seems to have a good answer. How do apps like DataMan run on a regular basis in the background, indefinitely, and still get into the app store? The app allows a user to turn on "precise data tracking" and select a frequency at which the app updates it's data usage counters with zero user interaction - the intervals are once every minute, once every 10 minutes, and once every 20 minutes. Yes, I've read all the associated

Pulse ring animation around a Google Maps marker in Android

允我心安 提交于 2019-12-18 12:00:28
问题 I want to add a pulse ring animation on blue dot current user location in Android google mapFragment (like Uber). Can anybody help me with this thing? 回答1: I have found a solution to add pulsating animation to a marker. Here is the map part, Here variable "map" denotes your map. private Circle lastUserCircle; private long pulseDuration = 1000; private ValueAnimator lastPulseAnimator; private void addPulsatingEffect(LatLng userLatlng){ if(lastPulseAnimator != null){ lastPulseAnimator.cancel();

requestLocationUpdates interval in Android

两盒软妹~` 提交于 2019-12-18 11:59:37
问题 I try to get the correct speed in updates for the function onLocationChanged, this is my class: public class LocationService extends Service implements LocationListener { Putting the minTime on 6000 does not help, it wil keep updating constantly, what am i doing wrong? public void requestLocationUpdates (String provider, long minTime, float minDistance, LocationListener listener, Looper looper) { Greetings 回答1: The minTime is just a hint for the LocationProvider, and it doesn't mean that your

The Difference Of Location Storage File in air

非 Y 不嫁゛ 提交于 2019-12-18 11:58:01
问题 I want to ask the difference between air.File.documentsDirectory.resolvePath, File.userDirectory.resolvePath, air.File.applicationDirectory.resolvePath.. Can anybody explain when does the file will be store..... especially in windows 回答1: AIR's applicationStorageDirectory will automatically target these locations depending on which OS the application is running: Windows 7 / Vista: c:\users\USERNAME\appdata\roaming\APPLICATIONNAME Windows XP: c:\Documents and Settings\USERNAME\Application Data

City Country State Database [closed]

£可爱£侵袭症+ 提交于 2019-12-18 11:36:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am looking for a good City, Country State database It does not have to be crazy detailed, something that has a good coverage of Cities and their corresponding State,Countries in the world will do it for me. Appreciate if you can point me some links. Thanks 回答1: http://www.maxmind.com/app/geolitecity Although