geolocation

Get Windows TimeZoneInfo from Latitude and Longitude

懵懂的女人 提交于 2019-12-02 23:19:32
In a web app I have people enter their address, then I use Google's geocode API to get their latitude and longitude. Next, I would like to get their Windows time zone name using these coordinates so I can deal with Daylight Savings Time correctly via the .Net TimeZoneInfo object. I played with several of the available time zone web services to get the time zone name such as: http://www.askgeo.com/ http://www.geonames.org/ http://www.earthtools.org/ The issue is that these all return either just the offset from GMT, or the TZID (a.k.a. Olson) time zone name, not the Windows Time Zone name .

get location on iphone ONLY from the GPS - not the wifi network

蓝咒 提交于 2019-12-02 22:52:49
i am creating an app that uses location- everything works swimmingly except one thing- when i come home my iphone connects to my local wifi network and instead of getting my location using the gps in the phone it tries to get it by figuring out where my wifi network is connected to- if i turn my wifi off it keeps an accurate location point- as soon as my phone is connected to my wifi network it starts telling me my location is several km/miles from my actual point. i would like my app NOT to use the wifi network to try get my location- is there a way i can- a. tell if a location point has been

Google Api Get nearest locations

白昼怎懂夜的黑 提交于 2019-12-02 21:31:06
I want to get the List of nearest locations of by passing an address of location. like: Los Angeles, should give me the list of all locations near to it either in json or xml format Is there any Google api for that purpose? Google Places API has lists of places near a given point. For example you can search for bookshops near Convent Garden, London, UK. A good example can be found in the Google Maps Javascript API V3 Places Library documentation . You can also use the Geonames.org data dump and roll your own geo queries or use their REST API . Using their database you can search for various

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

大城市里の小女人 提交于 2019-12-02 21:28:18
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? if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(successFunction, errorFunction); } else { alert('It seems like Geolocation, which is required for this page, is not enabled in your browser. Please use a browser which supports it.'); } If the browser

Geofence in the Background Windows Phone 8.1 (WinRT)

独自空忆成欢 提交于 2019-12-02 21:19:48
Issue I'm trying to trigger a BackgroundTask when a Geofence Event (Enter / Exit) occurs in WP8.1 (WinRT). I've written a sample application to try to get it working, but can't seem to be able to do so. So far, these are the steps I've taken to try to get Geofences working in the background: Check for Location Capabilities Create + Register a Geofence Create + Register a BackgroundTask that listens for LocationTrigger(LocationTriggerType.Geofence); In my background task, trigger a simple popup notification Things I have done to Troubleshoot I have enabled in my app.manifest: Toast Capable =>

Can we locate a user via user's phone number in Android?

佐手、 提交于 2019-12-02 21:06:45
Is it possible to locate a user via user's phone number in Android? If an SMS can be sent to the user then we can also retrieve or get to know the location of the user who we sending the SMS. I mean is it possible to program the following functionality: App sends SMS to user's phone App recieves SMS at user's phone from the SMS sender App gets location coordinates of the user's phone App sends location coordinates to the SMS sender via SMS Also is it possible to retrieve the required location of the user via user's phone number via any other means apart from SMS, EMAIL or CALL? How come Viber

Reverse wikipedia geotagging lookup

时光总嘲笑我的痴心妄想 提交于 2019-12-02 20:55:24
Wikipedia is geotagging a lot of its articles . (Look in the top right corner of the page.) Is there any API for querying all geotagged pages within a specified radius of a geographical position? Update Okay, so based on lost-theory's answer I tried this (on DBpedia query explorer ): PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> SELECT ?subject ?label ?lat ?long WHERE { ?subject geo:lat ?lat. ?subject geo:long ?long. ?subject rdfs:label ?label. FILTER(xsd:float(?lat) - 57.03185 <= 0.05 && 57.03185 - xsd:float(?lat) <= 0.05 && xsd:float(?long) - 9.94513 <= 0.05 && 9.94513 - xsd:float(

Country/State/City Database? [duplicate]

柔情痞子 提交于 2019-12-02 20:49:16
This question already has answers here : Of Countries and their Cities [closed] (10 answers) Possible Duplicate: Database of Countries and their Cities Ok, this one is a non technical question. I am creating a business directory and I'd like to categorize listings by location. Instead of giving users an option to enter the location, I am going to provide them with a list of locations which follow a Country/State/City format. I tried GeoWorldMap by GeoBytes. It looked promising in the beginning and I felt that is exactly what would get the job done until I realized it provided a list of around

Geolocation IP in Java [closed]

依然范特西╮ 提交于 2019-12-02 20:44:20
问题 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 3 months ago . Is there any way to get the country, city (generally: geolocation information) from IP address. Note that my application is java. I visisted and tried many web services, but I didn't find suitable one and I prefer to write my own. Also, I found some CSV DBs but also this solution is not preferable at all.

A rails app which gets users location using HTML5 geolocation and saves to data base

ε祈祈猫儿з 提交于 2019-12-02 19:51:41
Seems pretty simple but I'm struggling. Here's what I have so far in the view. I display the location coords just to test its working. But I also want to persist on Database, hence the ajax call. Am I doing this the right way or is there an easier or better way? <p id="demo">Click the button to get your coordinates:</p> <button onclick="getLocation()">Try It</button> <script> var x=document.getElementById("demo"); var lat; var long; function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } else{x.innerHTML="Geolocation is not supported by