geolocation

location detection in web browser [closed]

北城余情 提交于 2019-12-04 14:09:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am searching for a method to locate the user location while visiting my website, i have tried Maxmind but they seems to be inaccurate in the city level. the information i want is (Country, City, longitude, latitude) i want the country and the city to be very accurate if possible. I have also used HTML5 but the

How to simulate latitude and longitude values in my browser (for geolocation testing)?

半城伤御伤魂 提交于 2019-12-04 14:07:24
I'm developing a web app where it requires me to simulate the latitude and longitude values in my browser for geolocation testing. Has anybody has experience in testing gelocation based apps? Thanks in advance! Faking geolocations There are many reasons why you would want to fake your location in firefox. One good reason would be “un-faking” your location on computers with no wlan cards, e.g. at work, or where there’s no data available for the WLANs around you. All you need for faking is a text file (eg. /home/username/.mynewlocation.txt) somewhere on your computer with the following content:

how do I get the bounds of a static google map?

会有一股神秘感。 提交于 2019-12-04 14:02:41
I am trying to plot geo coordinates (lat/lon) on an image I retrieve via Googles static Map API. I want to do this offline directly on the image via Ruby because I want to plot about 20,000 coordinates. However, for this task, I need to specify the corner (top left & bottom right) coordinates. here is the link to my map: http://maps.google.com/staticmap?center=51.0,10.0&zoom=6&size=640x640&format=png&sensor=false How can I get coordinates for the top left and bottom right corners of this map? Thanks in advance :) PS: My code for Lat/Lon -> X/Y is this for now: def get_img_coords(lat, lon, w, h

How can I get the position (lat, lon) of a foursquare checkin posted on twitter?

血红的双手。 提交于 2019-12-04 13:52:13
问题 I search with the twitter API all the public tweets with "4sq.com": http://search.twitter.com/search.json?q=4sq.com so I get all the check-in on Foursquare that actually shared on Twitter. {"created_at":"Sun, 08 Jan 2012 20:05:27 +0000","from_user":"fenavergara","from_user_id":50876086,"from_user_id_str":"50876086","from_user_name":"Fernanda Vergara Ch","geo":null,"id":156104246239051776,"id_str":"156104246239051776","iso_language_code":"lt","metadata":{"result_type":"recent"},"profile_image

Mobile GPS web application

天大地大妈咪最大 提交于 2019-12-04 12:35:16
问题 I need to develop a web app. (PHP) 100% for mobile phones and need to get the information from the mobile phone GPS, in order to get the user's current position. My question is, what should I do? I know PHP but I'm completely clueless about the GPS part (never worked with them before). All i'm looking is for headsup to see if I can handle the job or just reject it. I've heard that the W3 geolocation API does a very good job but after testing it i'm not convinced about the accuracy and browser

not able to get alert in geofencing

萝らか妹 提交于 2019-12-04 12:34:19
I have run a sample of Geofence and I have assigned two set of Lat , Lng and radius and run the sample. When I tap over register geofence I am getting following things in my log Location Services is available Client connected Add Geofences: Success GeofenceRequestIds=[1, 2] com.example.android.geofence.ACTION_GEOFENCES_ADDED but nothing happens after that, I don't know what the issue I am passed the current location by enabling gps but no effect. I don't know when I am gonna get the notification when a fence is crossed, to test it I have passed the same geo coordinates that are in fencing but

Convert pixel location to latitude/longitude & vise versa

穿精又带淫゛_ 提交于 2019-12-04 12:33:31
问题 I need to convert latitude longitude values into pixel positions as well as do the opposite. I've found many solutions to go from lat/lng->pixel, but can't find anything on the reverse. A couple of notes: The map is a fixed size, no zooming, no tiles. I don't need anything super accurate, its not important. Preferably mercator projection, but not required. I'm not actually display the result. (Any 2D projection) I can't rely on any web based API's, ie: no Google Maps A solution in almost any

Rounding Lat and Long to Show Approximate Location in Google Maps

旧时模样 提交于 2019-12-04 12:18:57
问题 I'm displaying a Google map in my Rails app's view and will be using a marker/overlay. The coordinate data will be coming from a phone (GPS) and stored in my Rails app's db. The problem is, I don't want the precise lat/long visible in the source of my web page ... i.e. I want to mark an approximate location without giving away the true lat/long. How can I round/truncate the lat/long values so they are still accurate (say, within a mile)–but not too accurate? (Example: how would you round 35

how to get the client/user location details

巧了我就是萌 提交于 2019-12-04 12:04:08
In my application I want to track the client/user location to store in database. I'm using this code to get the user IP Address string VisitorsIPAddr = string.Empty; if (HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != null) { VisitorsIPAddr = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString(); } else if (HttpContext.Current.Request.UserHostAddress.Length != 0) { VisitorsIPAddr = HttpContext.Current.Request.UserHostAddress; } ipAddress = VisitorsIPAddr; Using above code I'm getting the IP address. now the next step to get the timezone, Region,

iOS - Geofencing with WiFi turned off

二次信任 提交于 2019-12-04 12:00:57
问题 I have code that creates a geofence on my iPhone that will trigger some code to be executed when didExitRegion gets called. However, I have found that when I have WiFi switched off that didExitRegion never gets triggered. Is WiFi required for monitoring region changes on iOS? My desired accuracy is set to kCLLocationAccuracyHundredMeters. I am testing on iOS 6.1 and iPhone 4. Here is my code for setting up location monitoring: - (id)init { self = [super init]; if (self) { CLLocationManager