geolocation

Getting user location with google.loader.ClientLocation working for me but not others

醉酒当歌 提交于 2019-12-03 09:47:37
问题 Am trying to use google.loader.ClientLocation along with the maps api to get the location of the visitor and center a map on it. The following is working fine for me (on Safari, Firefox and Chrome), but a friend I got to test it (in Safari and Firefox) just sees a white box with the Google logo. <script type="text/javascript" src="http://www.google.com/jsapi?key=MykeyHere"></script> <script type="text/javascript"> google.load("maps", "2"); </script> <script type="text/javascript"> function

get location without google play services -android

允我心安 提交于 2019-12-03 09:41:11
I know some phones do not preinstall google play sevice. I want to ask is there possible way to get location without Google Play Services , just use LocationManager. Not LocationClient. you can use LocationManager LocationManager locationManager = (LocationManager) getApplicationContext().getSystemService(LOCATION_SERVICE); Location location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); Just use the location manager like you said http://developer.android.com/guide/topics/location/strategies.html USe a LocationManager and set the appropriate provider, GPS or NETWORK.

How to Fetch the Geotag details of the captured image or stored image in Windows phone 8

北城以北 提交于 2019-12-03 09:36:26
问题 I want to fetch the information from the image regarding the Geolocation as shown in the image below void cam_Completed(object sender, PhotoResult e) { if (e.TaskResult == TaskResult.OK) { Image cameraImage = new Image(); BitmapImage bImage = new BitmapImage(); bImage.SetSource(e.ChosenPhoto); cameraImage.Source = bImage; e.ChosenPhoto.Position = 0; ExifReader reader = new ExifReader(e.ChosenPhoto); double gpsLat, gpsLng; reader.GetTagValue<double>(ExifTags.GPSLatitude, out gpsLat)) reader

Network location provider at 'https://www.googleapis.com/' : Returned error code 403 in Webapp

烂漫一生 提交于 2019-12-03 09:21:00
I am using Geolocation.watchPosition() and I get the following error on callback Network location provider at ' https://www.googleapis.com/ ' : Returned error code 403. This seems to be only happening in chrome desktop browser. firefox seems to be fine. This is also just started happening today, I have never come across this error before within my web app using the Geolocation.watchPosition() . Update: bug https://bugs.chromium.org/p/chromium/issues/detail?id=753242 This happened to me too. I had to enable location services on my Mac. After looking for an answer, I think there is something

Django : is GeoDjango a Good Fit for my Website?

折月煮酒 提交于 2019-12-03 09:14:34
I'm building a real estate site in Django and have a Home model, which stores various information including the address. Database backend is using MySQL. Want to create a Yelp like search. A search where users can enter in zip code or city name, then get Home results in that area. Users can also choose the radius(5 mi, 10 mi...) from the point and get more/less results. Search results will be on google map and users can zoom in/out to get new search results within the map. Is Geo Django a good fit here? Guessing not too many people use GeoDjango, because I can't find many docs to solve

Send user's geolocation to server every minute

旧时模样 提交于 2019-12-03 09:12:55
I'm trying to write a application that sends user's geolocation to MYSQL database every minute or so. This is the code I have right now, but it's not working. How do i need to change this to make it work? JS: <!DOCTYPE html> <html> <head> <script src="js/jquery.js"></script> </head> <body> <script> setInterval ( "onPositionUpdate()", 10000 ); function onPositionUpdate(position) { var lat = position.coords.latitude; var lng = position.coords.longitude; jQuery.ajax({ type: "POST", url: "myURL/location.php", data: 'x='+lat+ '&y='+lng , cache: false, }); } if(navigator.geolocation) navigator

Using both Mongodb and Mysql in one project

无人久伴 提交于 2019-12-03 09:09:49
I have been working to learn Mongodb effectively for one week in order to use for my project. In my project, I will store a huge geolocation data and I think Mongodb is the most appropriate to store this information. In addition, speed very important for me and Mongodb responds faster than Mysql. However, I will use some joins for some parts of the project, and I'm not sure whether I store user's information in Mongodb or not. I heard some issues can occur in mongodb during writing process. should I use only mongodb with collections (instead of join) or both of them? In most situations I would

Get longtitude latitude combination based on distance and degree

ε祈祈猫儿з 提交于 2019-12-03 09:02:41
I am trying to get geo combinations of a grid which is covered a certain area (My city). The grid is 500m * 500m. So I wanna enter starting long/latitude combination,distance (500m), degree (90 or 270) and get the next long/latitude combination. I am so unaware of mathematical formulas, and hard to find a solution. I had found some php functions that return distance in between two long/latitude combinations. http://www.zipcodeworld.com/samples/distance.php.html http://www.phpro.org/tutorials/Geo-Targetting-With-PHP-And-MySQL.html#3 But still I cannot rebuild this thing according to my need (I

Get gps location of a photo

和自甴很熟 提交于 2019-12-03 08:52:33
I know how to get the current GPS location of a mobile phone. I also know how to save the GPS location to the photo when you take it. (Camera option Samsung galaxy s2). But how can I get the GPS location of that photo (later)? When I open the photo on the computer, I can see the GPS location data, but got no idea how to extract them later in android. So could someone put me in the good direction? To make question more clearly: How can I get the GPS location of a photo that is already taken? Thanks already, Bigflow josnidhin made this answer possible, so be sure to give him credit too :) Here

How do I get an addresses latitude-longitude using HTML5 geolocation or Google API?

泄露秘密 提交于 2019-12-03 08:51:33
问题 I am getting baffled with a problem that is, I can get the location of a user from Facebook and all I need is to get the latitude and longitude of that location, but I still couldn't find a solution. It will help if I can get that latitude and longitude using an HTML5 geolocation or any Google API. What is the solution? 回答1: if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(successFunction, errorFunction); } else { alert('It seems like Geolocation, which is required for