geolocation

Does Google Location Services return old locations?

本小妞迷上赌 提交于 2019-12-13 04:37:43
问题 I am trying to track my location every 2 mins to check the distance from me to my house. However the results I have been getting have been odd. When I would travel about 700 meters away (to another building) and stay there for 2 hours the results would say that I was always within 40 meters of my home. They would change but the distance never got bigger than that. private void locationSetup(){ int interval = 120000; // Create the LocationRequest object mLocationRequest = LocationRequest

mLocationClient cannot be resolved

感情迁移 提交于 2019-12-13 04:35:22
问题 I have a problem using the Google Play location services. I was trying to follow http://developer.android.com/training/location/retrieve-current.html more or less. However Eclipse tells me that it cannot resolve my LocationClient. My code looks like this: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); overridePendingTransition(0,0); mLocationClient = new LocationClient(this, this, this); if

Find the three letter country code using HTML and Javascript

放肆的年华 提交于 2019-12-13 04:32:41
问题 I am trying to find user's location meaning in which country he is browsing. I need to use HTML and Javascript for this. I have seen various posts on stackoverflow on this in which people have suggested to use different different API's. I am mostly interested in any free API's and which can give me three letter country code not two. Any other API's is fine with me, it's not mandatory that I need to use IPInfo, I can als use geonames as well. And after finding the user's country code, I need

Yii Emongodocuments near queries ignoring maxDistance

我的未来我决定 提交于 2019-12-13 04:28:25
问题 I am trying to use $near to find places that are near my users. $places = Places::model ()->findAll(array ( "conditions" => array ( 'location' => Array('near' => array((float)$this->latitudeUser,(float)$this->longitudeUser)), ), "maxDistance" => 1, "limit" => 5, )); Everything seems to work except that it finds places as far as Texas USA and I am in Montreal Canada. I have no idea what I can do to make maxDistance work. It seems I cannot use GeoNear or nearSphere since EMongoDocuments does

Excluding Google Maps, What is the best way to Geo Code 1000+ addresses in Python?

做~自己de王妃 提交于 2019-12-13 03:54:42
问题 I have to Geo Code 1000s of addresses to obtain Lats and Longs so that I can later run some data and geo analysis on those addresses. In the past, I used Google's API to obtain this information, however, now Google requires Credit card information to generate API key. Even then it has limit of about 60 address per hour or per day (can't remember exact limit). I was wondering if someone can guide me how to go about obtaining Lat and Long for 1000s of address with python? 回答1: SmartyStreets has

How to Sort Geo-points according to the distance from current location in Android

北城余情 提交于 2019-12-13 03:53:49
问题 I have a "Place" object with a LatLng coordinate for each: import com.google.android.gms.maps.model.LatLng; public class Place{ public String name; public LatLng latlng; public Restaurant(String name, LatLng latlng) { this.name = name; this.latlng = latlng; } } and I have an ArrayList of these Places, something like this: ArrayList<Place> places = new ArrayList<Place>(); places.add("Place 1", LatLng(90.0,90.0)); places.add("Place 2", LatLng(93.0,93.0)); places.add("Place 3", LatLng(83.0,92.0)

Get Latitude/Longitude Button to Fill Input Boxes

本秂侑毒 提交于 2019-12-13 03:36:34
问题 I have two text boxes that I want users to fill with geolocation data (latitude and longitude). I want to have a button, so when users click it, the text boxes are filled instantly with the geolocation data. Thanks to w3schools, I can replace the text in two paragraph tags to the locations, but I'd like the button fill up the text boxes. Here's what I have now. Anyone have an answer? <!DOCTYPE html> <html> <body> <form> Latitude: <input type="text" name="Latitude" /> <br /> Longitude: <input

app store approval for location-based app if server has data for only one city

假如想象 提交于 2019-12-13 03:36:04
问题 I've built an app which depends heavily on downloading data from a server. This data only has value within a specific area. The server will only have data for one city to start with (and it's not Cupertino), so unless the app approver person is physically in that city, they'll get no data. (The app still works in this case, but it's terribly uninteresting). Is that grounds for rejection? If not, how would Apple know if the app works or not? TIA, -Mike 回答1: Ok, now that you've all had a chance

geolocation with both bing and google because of Internet Explorer

一个人想着一个人 提交于 2019-12-13 03:00:52
问题 Hi I am currently playing with geolocation and it works great with everything except IE as it doesn't seem to support Google and wants to use Bing does anyone know how to make the directions IE friendly...its been bugging me for days!! Heres my code: function fallback() { var myOptions = { center: new google.maps.LatLng(51.43255949795703, - 0.461750328540802), zoom: 14, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("Map_Canvas"), myOptions);

navigator.permissions.query not working in android/ios webview

ⅰ亾dé卋堺 提交于 2019-12-13 02:42:43
问题 I need to check for geolocation permissions and update status after prompt in webview. The permissions api query works in web browsers but not in webviews of android or ios. Working in Browsers : navigator.permissions.query({name:'geolocation'}) Android/iOS Web views navigator.permissions is undefined. 回答1: I have suspicion that it's by design to not mix web permissions with OS app permissions which have different granularity when WebView is bundled inside an app. For example: giving app