geolocation

Ionic app works with both “ionic serve” and in ionic view, but not with “ionic build ios”

倾然丶 夕夏残阳落幕 提交于 2019-12-13 02:38:10
问题 My ionic app uses google api geolocation service and works fine when I run it using "ionic serve" and with Ionic View app. However, when I run "ionic build ios" and run the app on my ios device, the geolocation service does not work. I thought it was because location service was not on. I went to setting > Privacy > Location Service to allow location service however, I realized that the app I am working on is not listed there. (But there is ionic view app icon and the location service is

Display website in a user's native language based on the IP address

混江龙づ霸主 提交于 2019-12-13 02:35:05
问题 I want my website to be opened in a visitor's native language as determined by the IP address where the user has logged in from. By default the page opens in English, but I want my customers from France to read the site in French. I have gone through www.ipinfo.io for information, but I am still a bit confused and would like to know the json format. 回答1: You should use the accept-language header that the user's browser passes to your site to determine the language, rather than the user's

Retrieving geo location in my app is far less accurate than what Google Maps app shows in the same time on my device

喜你入骨 提交于 2019-12-13 02:15:37
问题 In my app, I've tried two ways of accessing location: a) Using LocationManager and GPS_PROVIDER. I accept location to be processed if it has accuracy 50 or less. App receives location however most of the time receives no location at all - while Google Maps when I start it to try it out gets my location constantly and more precise than my app. Here are parts of the source related to this: Start to listen to locations: // in service class, function to start listening for locations. // class

latitude & longitude as coordinates adequate for point in polygon algorithm

 ̄綄美尐妖づ 提交于 2019-12-13 02:15:17
问题 Given a database of long/lat coordinates representing targets and a series of lat/long representing the bounding coordinates of polygons representing "zones". Using a simple ray casting algorithm is it safe to treat the lat/long as cartesian coordinates for determining if the target is within the zone? 回答1: Provided the edges are short, it should work well enough. It won't be "correct" though. Imagine a triangle with two points a and b on the equator and one just short of the north pole.

Geolocation in Phonegap using GPS

二次信任 提交于 2019-12-13 01:48:05
问题 I am working with geolocation in phonegap application. I get the location easily when High Accuracy and Battery saving mode is ON. But it gives error while working in GPS. Please help. I am stuck in it. I applied the timeout upto 60000 milliseconds. But it didnot work even then. The code is - function Geolocation(){} Geolocation.options = { maximumAge: 60000, timeout: 15000, enableHighAccuracy: true }; Geolocation.errorMessage = 'Unable to get location data. Ensure that the location services

How to get address from latitude and longitude android?

淺唱寂寞╮ 提交于 2019-12-12 23:52:09
问题 I have an application that will get the latitude and the longitude of the users location. What I need to know is how do I take the latitude and the longitude of the location and convert it into just the address of the user? Thanks for any help. 回答1: You can use GeoCoding. Follow the instructions on this link where it says Geocoding and Reverse Geocoding You can find code there that you can try it out on your own app (copy/paste) I hope it helps :) 回答2: Try using Geocoder 回答3: try { Geocoder

Overpass api to find the speed limit for a co-ordinate?

折月煮酒 提交于 2019-12-12 20:50:03
问题 I receive coordinate of a vehicle and I need to find out the speed limit of that road at which this vehicle is at?. I know you can find maxspeed for a certain bounded box like this www.overpass-api.de/api/xapi? [maxspeed= ][bbox=5.6283473,50.5348043,5.6285261,50.534884] but that is if this bounded box area has ONLY one speed limit. So say suppose there was an area which had two speed limit within the bounded box? My second concern is how should i make the bounded box since I am just getting

'queryForTable' cannot return 'nil' In Swift

人走茶凉 提交于 2019-12-12 18:13:37
问题 I am using PFQueryTableViewController as part of ParseUI to load a table of objects based on the currentUser's geolocation. I have seen several other (older) forum posts (like here) detailing that the queryForTable function should return nil if a value like currentLocation:PFGeoPoint? is nil. Then wait on the background process in viewDidLoad to get the PFGeoPoint and loadObjects() , thus calling the queryForTable function again. I am seeing others say that Swift's ParseUI libraries may not

Place Picker closes after launching

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 15:13:01
问题 I am not able to launch Google Place Picker from my fragment. Followed all the steps and forums for the root cause but not able to resolve my issue. Links Google Place Picker Already checked following without any success Android Place Picker closes immediately after launch Place Picker Automatically close after launch I have created Google Places API for Android key and added to manifest I have even tried a release build. Only error message I receive is 03-18 12:02:32.524 1679-1900/? E

Reading Geolocation from Quicktime Movies with Java (Xuggler)?

﹥>﹥吖頭↗ 提交于 2019-12-12 14:47:01
问题 I need to retrieve geolocation data from QuickTime MOVs recorded on the iPhone/iPad, from a Java application. I am currently investigating the Xuggler media framework; I was hoping I could use Xuggler's IMetaData interface to read out the UserData portion of the Quicktime file. Unfortunately, the only fields retrieved by Xuggler are "major_brand", "minor_version", "compatible_brands", "year", and "year-eng". I know from viewing the video's info in Quicktime that GPS coordinates are embedded.