geolocation

Calculating the distance of geo locations [duplicate]

与世无争的帅哥 提交于 2019-12-08 01:54:47
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Distance Between Two GEO Locations How can I calculate the distance between two geo locations. (Latitude and Longitude) 回答1: This site might help you http://www.movable-type.co.uk/scripts/latlong.html 来源: https://stackoverflow.com/questions/5304692/calculating-the-distance-of-geo-locations

Geocoding - Grouping multiple addresses into major cities

╄→гoц情女王★ 提交于 2019-12-08 01:43:01
问题 Been hunting through previous questions on Geocoding and while many are helpful I'm not finding one to my needs. I need to group multiple addresses to the nearest city centers. My only address information is city, country, and state (if applicable). For example, all addresses in San Francisco and within miles should be listed as San Francisco. I'll need to know the count of addresses rolled-up to San Francisco. I'm open to suggestions on how to approach this. I don't particularly want to

Parse SDK unable to fetch location in background, always time out exception

邮差的信 提交于 2019-12-08 00:13:39
问题 Here is the code I am using : ParseGeoPoint.getCurrentLocationInBackground(10000, new LocationCallback() { @Override public void done(ParseGeoPoint geoPoint, ParseException e) { if (e!=null) Print("location not found " + e.getLocalizedMessage()); else { Print("location found "); } } }); I have added permissions in manifest both access fine and access coarse location. Also, is it going to behave differently for android 6.0 with run time permissions. Please let me know if I am doing something

navigator.geolocation.getCurrentPosition no longer working in Safari mobile after iOS9 update

只愿长相守 提交于 2019-12-07 23:14:45
问题 I have a web app that has this code for getting the user's coordinates: if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { But the moment I updated to iOS9 it ceased to work. I'm not even getting the Safari prompt anymore asking permission to get my location. Anyone else having this issue after updating to iOS9 and was able to resolve it? 回答1: I've noticed this myself and i'm wondering if iOS 9 Webkit has started to prevent this working via HTTP as I

Iphone 802.11 Scan

て烟熏妆下的殇ゞ 提交于 2019-12-07 19:36:34
问题 I'm developing a system of indoor position use wifi. however I am having problems with relation to this library of apple. was once private is now public. where I use the code. libHandle = dlopen(”/System/Library/SystemConfiguration/IPConfiguration.bundle/IPConfiguration”, RTLD_LAZY); apple80211Open = dlsym(libHandle, “Apple80211Open”); apple80211Bind = dlsym(libHandle, “Apple80211BindToInterface”); apple80211Close = dlsym(libHandle, “Apple80211Close”); apple80211Scan = dlsym(libHandle,

Calculate distance between current location and and a different location using Google Maps API V3

旧街凉风 提交于 2019-12-07 18:18:28
问题 I'm trying to calculate the distance between my location and a different location, but all I get is NaN. I'm pretty sure I placed the code in the wrong place in the script. Can somebody help me figuring this issue? <!DOCTYPE html> <html> <head> <script src="http://maps.google.com/maps/api/js?sensor=false&v=3&libraries=geometry"></script> </head> <body> <p id="demo"></p> <button onclick="getLocation()" id="demo">get current location</button> <button onclick="console.log(distance)">get ditance

How to get HTML5 position in WebView updated at a regular interval (with FINE_ACCURACY)

走远了吗. 提交于 2019-12-07 17:35:16
问题 I'm developing an application to track my phone at regular intervals (not only the first time) with navigator.geolocation.getCurrentPosition() running in an HTML5 page running in a webkit webview running in an android 2.1 application. I already read responses to the following questions: Using navigator.geolocation.getCurrentPosition in WebView on Android 2.0+ (PhoneGap related) Android: Using html5 to determine geolocation in webview with javascript api Geolocation cannot be load on webview

IP localization: mapping ip->location fixed over time?

倖福魔咒の 提交于 2019-12-07 16:36:23
问题 I'm administering a web platform and want to get some statistical data, where my users come from. I can store the remote IP and I know that there are localization services that map an IP to a geolocation. How is this mapping done? Are there fixed tables, which IP address was given to which region? Must I request the mapping in the moment of the access or can I request it days/months/years later? In other words: Is the mapping from IP to location fixed or does it change over time? 回答1: The

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

北城余情 提交于 2019-12-07 16:30:51
问题 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. 回答1: 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

Check if an address is within an area map

三世轮回 提交于 2019-12-07 13:44:48
问题 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