geolocation

Google+ API : Get Profile's currentLocation

孤者浪人 提交于 2019-12-02 16:59:15
I'm currently building a test and trying to get a google+ user location. I'm testing on myself and have set my position to public. I was originally planning to use Google Latitude, however, since Google is deprecating this API in a few days, my only option is to use the Google+ API. The parameter currentLocation was added a few months ago I'm therefore trying to get it. But could not manage to do it. I've tested on my own server using the PHP API and then the JS API with Oauth2.0, but this damn parameter is never sent back. I can get any other parameter but definitely not that one. Then I've

Current URL To Download KML Data From Google Location History?

久未见 提交于 2019-12-02 16:48:56
I need to download google location history data in kml for a period of time. Up until August 26, 2015, a URL in this format worked: https://maps.google.com/locationhistory/b/0/kml?startTime=$start_seconds&endTime=$end_seconds Now a link in that format fails. I suspect the problem is related to google changing the way its website displays location history , though that change happened nearly a month earlier on July 22. A commenter on the google products forum suggested this: [T]he KML generation can do multiple days, so just edit the URL Eg https://www.google.com/maps/timeline/kml?authuser=0&pb

Google Geolocation API - Use longitude and latitude to get address in textbox?

痴心易碎 提交于 2019-12-02 16:46:35
I have noticed a lot of information about how to get your location using Google geolocation looks, based on IP address. But I am wondering if and how I could use this service to input a location (longitude and latitude) and get back the current address, or at least a city, state. I would like to do this in C#, but I'll work with any language. Any advice? What you describe is called Reverse Geocoding . Google provides a Geocoding Web Service API which you can call from your server-side application (using any language) to do reverse geocoding . For example, the following request: http://maps

Google Maps Geolocation API for China

社会主义新天地 提交于 2019-12-02 16:29:54
问题 I am using Google Maps Geolocation API to get location address in china with the help of MCC, MNC, Lac Id and Cell Id. But Api returns "Not Found" error for all the sets of MCC, MNC, Lac Id and Cell Id of China. So, is there an issue with Google Api or some other issue? Please let me know. 回答1: Since March 2 2011, China started to block Google HTTPS Server periodically. The 443 port on Google server was blocked for 15 minutes and available for another 15 minutes as a cycle. You can try to use

How to simulate browsing from various locations?

假如想象 提交于 2019-12-02 14:27:40
I want to check a particular website from various locations. For example, I see a site example.com from the US and it works fine. The colleague in Europe says he cannot see the site (gets a dns eror). Is there any way I can check that for my self instead of asking him every time? Sometimes a website doesn't work on my PC and I want to know if it's the website or a problem local to me(e.g. my ISP, my router, etc). The simplest way to check a website and avoid using your local network resources(and thus avoid any problems caused by them) is using a web proxy such as Proxy.org . This is a bit of

Geo location getCurrentPosition() and watchPosition() not work on insecure origins

天涯浪子 提交于 2019-12-02 14:18:34
问题 I need user's Lattitude and longitude using php. try following code. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Example of HTML5 Geolocation</title> <script type="text/javascript"> function showPosition(){ if(navigator.geolocation){ navigator.geolocation.getCurrentPosition(function(position){ var positionInfo = "Your current position is (" + "Latitude: " + position.coords.latitude + ", " + "Longitude: " + position.coords.longitude + ")"; document.getElementById(

Why use the SQL Server 2008 geography data type?

怎甘沉沦 提交于 2019-12-02 13:51:00
I am redesigning a customer database and one of the new pieces of information I would like to store along with the standard address fields (Street, City, etc.) is the geographic location of the address. The only use case I have in mind is to allow users to map the coordinates on Google maps when the address cannot otherwise be found, which often happens when the area is newly developed, or is in a remote/rural location. My first inclination was to store latitude and longitude as decimal values, but then I remembered that SQL Server 2008 R2 has a geography data type. I have absolutely no

How to get location that isn't out of date?

为君一笑 提交于 2019-12-02 13:36:37
问题 After GPS is enabled, it will take some time before the GPS is ready. So use this code may get a location that is out of date: location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER); I can't use the location that is out of date. How can I get the location that I need? Here is a similar question: Android: getLastKnownLocation out-of-date - how to force location refresh? From it, I can use LocationListener to get the updated location, which should be not out of date. It's

Parse User name for extracting user location Twitter

限于喜欢 提交于 2019-12-02 13:35:24
I am trying to scrape user location with respect to user names from twitter. Input: The user list has more than 50K User names AkkiPritam,6.77E+17,12/15/2015,#chennaifloods AkkiPritam,6.77E+17,12/15/2015,#bhoomikatrust AkkiPritam,6.77E+17,12/15/2015,#akshaykumar gischethans,6.77E+17,12/15/2015,#chennaifloods mid_day,6.77E+17,12/15/2015,#bollywood mid_day,6.77E+17,12/15/2015,#chennaifloods Nanthivarman16,6.77E+17,12/15/2015,#admkfails Nanthivarman16,6.77E+17,12/15/2015,#jayafails Nanthivarman16,6.77E+17,12/15/2015,#stickergovt Nanthivarman16,6.77E+17,12/15/2015,#chennaifloods AdilaMatra,6.77E

Keep getting error Warning: PDOStatement::execute() expects at most 1 parameter, 2 given in config.php line 15

心已入冬 提交于 2019-12-02 12:29:48
问题 This is my index page for my geo location page <!DOCTYPE html> <html> <head> <script src="js/jquery.js"></script> </head> <body> <script> setInterval ( "onPositionUpdate()", 10000 ); var currPosition; navigator.geolocation.getCurrentPosition(function(position) { updatePosition(position); setInterval(function(){ var lat = currPosition.coords.latitude; var lng = currPosition.coords.longitude; $.ajax({ type: "POST", url: "myURL/location.php", data: 'x='+lat+'&y='+lng, cache: false }); }, 2000);