geolocation

Sorting users by distance in mysql using st_distance

﹥>﹥吖頭↗ 提交于 2020-01-04 10:12:49
问题 I've done a bit of reading on this but there's hardly any information on doing it using points and the st_distance function in mysql. I suppose this makes sense since according to http://bugs.mysql.com/bug.php?id=70494 it wasn't even documented until halfway through last year. Almost every solution I've seen instead uses separate long and lat columns, and then puts them into the haversine formula like this: sorting distance in MySQL PHP This seems like a really messy way of doing it though

Sorting users by distance in mysql using st_distance

一世执手 提交于 2020-01-04 10:11:45
问题 I've done a bit of reading on this but there's hardly any information on doing it using points and the st_distance function in mysql. I suppose this makes sense since according to http://bugs.mysql.com/bug.php?id=70494 it wasn't even documented until halfway through last year. Almost every solution I've seen instead uses separate long and lat columns, and then puts them into the haversine formula like this: sorting distance in MySQL PHP This seems like a really messy way of doing it though

Location from GPS_PROVIDER or NETWORK_PROVIDER in android is not consistent

こ雲淡風輕ζ 提交于 2020-01-04 06:00:29
问题 What I am trying to do Get users location at specified interval using a Service so that as long as application is running Location can be retrieved Problem I am facing Even if I am in same location for long time, each time the Latitude , Longitude changes with different Accuracy levels Due to this, even if user has not changed his location, if I am plotting the Location in GoogleMap it makes jump to very near by places being my zoom level 18.0f mGoogleMap.animateCamera(CameraUpdateFactory

Kibana 4 detects geodata but doesn't display any results on the map

六月ゝ 毕业季﹏ 提交于 2020-01-04 04:12:10
问题 I have created an Elasticsearch index from a data set containing geodata. I have set up mapping for the data. Then I tried to create Kibana visualisation using this data set. Kibana detects the geodata property but finds no result even though there plenty of. Then I ran a test on another data set with different and much simpler layout, and Kibana properly visualised geodata. Here's the sample that works: "location": { "lat": 56.290525, "lon": -30.163298 }, and this is its mapping: "location":

Module '“ ”' has no exported member 'NativeGeocoderReverseResult' in ionic 3 Geolocation

南笙酒味 提交于 2020-01-04 03:16:31
问题 Module '" "' has no exported member 'NativeGeocoderReverseResult'. L13: import { Geolocation } from '@ionic-native/geolocation/ngx'; L14: import { NativeGeocoder, NativeGeocoderOptions,NativeGeocoderReverseResult} Error In Console getUserLocation(){ let options: NativeGeocoderOptions = { useLocale: true, maxResults: 5 }; this.geolocation.getCurrentPosition().then(resp => { this.nativeGeocoder.reverseGeocode(resp.coords.latitude, resp.coords.longitude, options) .then((result:

Longitude and Latiude null in android

隐身守侯 提交于 2020-01-04 02:33:28
问题 I have a GPSTracker file but in the android M iam geting a zero on the locations... i ask for your help to solve this problem...see the code below Fragment with the location and a webview to google maps public class ComoChegar extends Fragment { EmpresaID item; public ComoChegar() { // Required empty public constructor } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View tela = inflater

How to test IP address geolocation service

荒凉一梦 提交于 2020-01-03 19:35:32
问题 There is a IP address geolocation service that will tell the viewer city or country based on IP address. and we might set the default country on menu based on the result of this location service. I wonder how can i test on this such as i am in Thailand but want to test it by stimulating Hongkong ip address so that i can see if that website provide proper feedback based on geolocation service. 回答1: Try using a socks proxy http://sockslist.net/. 回答2: They way we're validating IP geolocations

Geolocation not working in device ionic3

泪湿孤枕 提交于 2020-01-03 08:42:27
问题 I am working with ionic 3 location-based work. I am not able to get current location of latitude and longitude here. I mentioned my usable code. It's working fine in browser level but not working in a mobile device. code $ ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you" $ npm install --save @ionic-native/geolocation import { Geolocation } from '@ionic-native/geolocation'; constructor(private geolocation: Geolocation) {} this

Geolocation not working in device ionic3

☆樱花仙子☆ 提交于 2020-01-03 08:42:10
问题 I am working with ionic 3 location-based work. I am not able to get current location of latitude and longitude here. I mentioned my usable code. It's working fine in browser level but not working in a mobile device. code $ ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you" $ npm install --save @ionic-native/geolocation import { Geolocation } from '@ionic-native/geolocation'; constructor(private geolocation: Geolocation) {} this

Allow HTML5 web app to access location when browser isn't focused (iOS)

微笑、不失礼 提交于 2020-01-03 05:18:03
问题 I have recently built an HTML5 web app that is designed to notify the user when approaching a set destination. I have set it up to cache so it can be used without web-access in devices with a GPS or AGPS functionality. So, to set the picture, it is a web app that I have cached and added to the homescreen to make it like a native app, but it is really just an HTML5 app (with Javascript). The app itself seems to be working (insofar as detecting the user's location as it isn't returning any