geolocation

Rails geocoder gem issues

为君一笑 提交于 2019-12-25 06:39:55
问题 I am using the geocoder gem and I need to code a start and end address for a model, however I am not sure if I can accomplish this using this gem and if I can whether I am doing it correctly. If this cannot be done with the gem, is there another resource that will allow me to geocode two locations on the same form? This is an example of what I am trying to do, but it just passes the second address to be geocoded. geocoded_by :start_address before_validation :geocode geocoded_by :delivery

Spring data mongoDB GeoNear query with excluding fields

点点圈 提交于 2019-12-25 04:17:45
问题 I don't know if I am doing something wrong or it is a bug. I have the following code: Query criteria = new Query(Criteria.where("locationTime").gte( "date-time")); criteria.fields().exclude("friends"); NearQuery query = NearQuery.near(point).maxDistance(maxDistance) .num(limit).query(criteria); GeoResults<Profile> result = mongoTemplate .geoNear(query, Profile.class); I am executing the query and profiles near by retrieved correctly according to distance and the "locationTime" criteria but it

Geolocation API - wait for getting position

谁说我不能喝 提交于 2019-12-25 04:15:47
问题 I just wonder what is the correct Geolocation API usage for the following use case: I have website (targeted to mobile phones) with some form. User enters some text and press "Submit". I need to record user's location (GPS coordinates) together with the entered data and (important!) raise some warning message if user didn't give permission or we were unable to determine his\her position. From my point of view the problem is that Geolocation API is asynchronyous. So after pressing "Submit"

Javascript geolocation - GPS settings - FINE vs COARSE

南笙酒味 提交于 2019-12-25 03:57:07
问题 I am creating a geolocation app with Intel XDK (iPhone and Android) and have 2 questions: How can I display the geolocation settings of the device if the GPS is not active on the phone? How do I know if the latitude and longitude values returned are from the GPS or from the wifi/data coords? I figured that wifi/data returns a short value (eg: 43.475748) and GPS returns a longer value (eg: 43.47573849384) Am I correct in thinking this? 回答1: 1.) Most devices will cache the last known geo

Android Geopoint: Sim toolkit stopped

寵の児 提交于 2019-12-25 03:37:16
问题 Hi Friends today its the second question i am posting in the forum. I am a beginner in programming. So its very hard for me to find the error in the code when nothing is displayed in the Logcat. My problem is i am doing a gps based application to notify me when i reach 10 meters away from a place. but when i install the program me in my device it shows "sim toolkit stopped" and it shuts down ...i am pasting my whole code and console data below this. please have a look and tell me the errors

Successive markers with navigator.geolocation.watchPosition

你。 提交于 2019-12-25 02:46:40
问题 I use Leaflet and OpenStreetMap. In addition, I send geolocation data with socket.io in nodejs. The position of the user is displayed successfully with the code: navigator.geolocation.getCurrentPosition(.........) Now I want the position of the user is updated on the map every X seconds. So I replaced the code: navigator.geolocation.watchPosition(.........) My problem is that a new marker is added geolocation every X seconds, and the oldest markers are not removed. Could someone help me

Windows Phone 8: get current Address -Data (from your current location)

谁说胖子不能爱 提交于 2019-12-25 02:42:31
问题 Im trying to implement a button which fills after click Latitude Longitude Street Streetnumber Postalcode City myGeoposition.CivicAddress. gives me City and Postalcode myGeoposition.Coordinate. gives me the Lati/Longitude where do I get the rest? I am using a Map-Control (not bing map!) from: Microsoft.Phone.Maps.Controls;assembly=Microsoft.Phone.Maps try { Geolocator geolocator = new Geolocator(); geolocator.DesiredAccuracy = PositionAccuracy.Default; IAsyncOperation<Geoposition>

How to show chooser Intent with my own android app on click of WhatsApp location?

与世无争的帅哥 提交于 2019-12-25 02:26:19
问题 If there's a WhatsApp chat which has location shared, when clicked it shows a chooser intent with some set of applications. I want to write an intent filter so that my application will also be listed there. 回答1: You can do it by supporting implicit intent to your Activity . Define intent-filter to Activity to which you want to open after clicking to your Application from options. <activity android:name=".BrowserActivitiy" android:label="@string/app_name"> <intent-filter> <action android:name=

jquery .submit();

早过忘川 提交于 2019-12-25 02:15:53
问题 Since Instamapper is closing down and I am doing this project where I am trying to get to the Moon counting how much km I have walked I tried to make my web app, which I could use instead. I got everything working except I wanted to automatically submit my form with data every 5 sec. I tried to use .submit() but it isn't working. EDIT: The submit() function is not working, here is the error from the console: Uncaught TypeError: Property 'submit' of object # is not a function Here is the code:

Cloudmade Status

允我心安 提交于 2019-12-25 02:14:41
问题 I've been looking at using Cloudmade, but it feels rather unloved. There has been a single blog entry since June, the forums are suspiciously quiet and its iOS examples page carries information about preparing for iOS4. Is Cloudmade a dying/abandoned project or is it something worth looking at? 回答1: Couple weeks ago we've launched new website http://cloudmade.com/ We no longer provide old iOS SDK, but we working on new one. 来源: https://stackoverflow.com/questions/7928199/cloudmade-status