geolocation

Alert when two users/friends are near to each other - Android Proximity

前提是你 提交于 2019-12-05 18:55:38
I tried searching but i couldn't find anything. My Question is " How can i alert 2 or more users if they are nearby each other? " in android using Geo-fencing or something else. Say, If a UserA is in football ground and UserB walking nearby that football ground. Then UserA and UserB automatically gets notification that UserA/UserB are somewhere nearby. Rafique Mohammed Finally after spending a couple of hours thinking, I thought a better way to do this: Setup a database (MySQL,SQL etc) in your server which have users table and location table which have the locations data In Android create a

Check if an address is within an area map

我只是一个虾纸丫 提交于 2019-12-05 18:41:46
The need I have is that a user (client) can put his/her address and to validate if it is within our delivery area. Currently I have designed this layer on google maps: https://www.google.com/maps/d/u/0/viewer?mid=1E3bcIm6Dy4icmTA4S-hEqOZeHpU What is the technology that I use? I just need an input text of a formulary to write the address and respond with an OK or a sorry. All the information that I find are questions and solutions to calculate routes and only need to verify an address within an area. Now I know as autofill and get save the address to verify. Now I just need to know how I can

Calculate the center of latitude and longitude coordinates

£可爱£侵袭症+ 提交于 2019-12-05 17:52:13
I'm looking for a elegant solution that calculates the center between several latitude-longitude coordinates (for example, to simply center a map to the center of a google-maps polygon). Table: locations : id | city | latitude | longitude ----------------------------------------------- 1 | Berlin | 52.524268 | 13.406290 ----------------------------------------------- 2 | London | 51.508129 | -0.1280050 ----------------------------------------------- 3 | Hamburg | 53.551084 | 9.9936817 ----------------------------------------------- 4 | Amsterdam | 52.370215 | 4.8951678 ------------------------

Phonegap Android and GPS satellite

人走茶凉 提交于 2019-12-05 17:51:30
问题 It seems phonegap does not use GPS satellite instead geolocation from cellular network. I am not satisfied with the accuracy, always between 150-1000 meters. GPS activity logo is not displayed as well. Is there any way to force an android app to use GPS satellites even if other methods are available? Is there any way to override the default function to activate the GPS sat usage? Thanks in advance 回答1: PhoneGap actually uses GPS satellite geolocation just as Android platform does. You should

iOS: How to convert MKMapPoint or CLLocationCoordinate2D to UTM?

亡梦爱人 提交于 2019-12-05 17:06:04
From what I have read this takes some complicated Math that I am not good at. So, I am asking here. Does anyone have experience converting a MKMapPoint or CLLocationCoordinate2D to a UTM value? I found this resource ( http://www.uwgb.edu/dutchs/usefuldata/UTMFormulas.HTM ) but the math is overwhelming. You could use one lib to do that, or analyze the code of one lib to understand the algorithm and do it yourself. This is a c++ lib that does the job: http://geographiclib.sourceforge.net/html/ http://geographiclib.sourceforge.net/html/classGeographicLib_1_1UTMUPS.html I found this website (http:

How do I query by geolocation in Laravel 5?

♀尐吖头ヾ 提交于 2019-12-05 16:46:37
I am looking to add a geolocation attribute to my "Candidate" Eloquent model. I want to find Candidates based on their location. For instance, find all Candidates within 20 miles of San Francisco. What should my Eloquent model look like to store a Candidate's location in the database? How do I query for Candidates based on their location? I am using Laravel 5.3. Personally, I have achieved this previously by storing a set of latitude and longitude coordinates. You can use something called the Haversine formula to calculate "as the crow flies" distance between a specified set of coordinates and

Permission denied - geolocation in React Native

懵懂的女人 提交于 2019-12-05 16:20:42
I've been playing around with React Native, getting custom locations to work and setting the "NSLocationWhenInUseUsageDescription" key. The error, when running on the ios simulator, is this: { "code": 2, "message": "Unable to retrieve location.", "PERMISSION_DENIED": 1, "POSITION_UNAVAILABLE": 2, "TIMEOUT": 3 } This is what I have, pretty much straight from the Geolocation example page https://facebook.github.io/react-native/docs/geolocation.html /* eslint no-console: 0 */ 'use strict'; var React = require('react'); var ReactNative = require('react-native'); var { StyleSheet, Text, View, } =

Convert between coordinate systems with GeoDjango

拥有回忆 提交于 2019-12-05 15:22:43
I'm trying to add coordinate information to my database, adding django.contrib.gis support to my app. I'm writing a south data migration that takes the addresses from the database, and asks Google for the coordinates (so far I think my best bet is to use geopy for this). Next I need to convert the returned coordinates from WGS84:4326 , Google's coordinate system, to WGS84:22186 , my coordinate system. I'm lost among the GeoDjango docs trying to find a way to do this. This far, I gather I need to do this: gcoord = SpatialReference("4326") mycoord = SpatialReference("22186") trans =

How to plot geolocated RGB data faster using Python basemap

雨燕双飞 提交于 2019-12-05 14:53:43
I'm having an issue plotting an RGB image using Python's Basemap module with latitude and longitude data. Now, I am able to make the plots that I want, but the problem is how slow it is, since it is able to plot single channel data much faster than the RGB data, and in general, plotting RGB images on their own is also fast. Since I have lat/lon data, that is where things get complicated. I've checked out the solution to this problem: How to plot an irregular spaced RGB image using python and basemap? which is how I got to where I am right now. It essentially comes down to the following issue.

Unable to simulate location data in Android emulator

被刻印的时光 ゝ 提交于 2019-12-05 14:24:26
I'm trying to test my app, which uses geolocation using the emulator. Several methods are described here . I'm going to Window->Open Perspective->DDMS , then entering lat. and long. one in Location Controls and then I hit "Send". But it doesn't work. Instead I see the following error: Unable to send command to the emulator. Why is this happening!? I don't think my app is the problem because I tested with the emulator's default browser and it also cannot access location info. Details: OSX 10.9.4 AVD_for_Nexus_4_by_Google targeting v4.4.2 Eclipse IDE for Android Developers 23.0.2.1259578 Update: