geolocation

Center google map on kml, not location

烂漫一生 提交于 2019-12-14 03:34:34
问题 I have this simple script on a web page, loading a small kml file, but when I add geolocation, it always centers the map on the current location. And I want to load the map centered on the kml file. User location should only be displayed if he is in the area of the kml, or if he drags the map to the area where he is located. Accessorily, is there a way to easily refresh the user location on the map with javascript (maps api 3), without re-centering the map ? var map; function initialize() {

How to learn location of the web user?

有些话、适合烂在心里 提交于 2019-12-14 03:33:56
问题 We have started developing an application for location aware emergency service. The users can connect through computer,smart phone or even through WAP. The problem we are facing is, we don't know how to get the location of the user who is asking for service. If it is GPS enabled smart phone, it can be located though the app. I have seen google map locating the cell phone using BTS tower's location in GPS-less smart phones (Like Nokia E-series). But I couldn't find any API in Nokia site which

Trying to get Geolocation on a map element in windows phone 8 using emulator

随声附和 提交于 2019-12-14 03:03:22
问题 I couldnt find an answer to this question anywhere so I thought id ask here. Basically Iam following along with channel 9's tutorial on windows 8 phone for absolute beginners. Trying to follow along with the 'Around me' app tutorials. I create a Map element in the xaml. I create a geolocator object and attempt to set the view on my map to my current geocordinates. This doesnt work, the map view seems to show the location of microsofts headquarters in Redmond Washington each time I run the app

setFastestInterval(long milis) not working

时间秒杀一切 提交于 2019-12-14 02:38:37
问题 I want to slow the update rates as soon as I got a location precise enough for my needs: @Override public void slowUpdateRate() { /* * Set the update interval */ Dbg.v(TAG,"****************************"); Dbg.e(TAG, "-- SLOW update rate"); Dbg.v(TAG,"****************************"); stopUpdates(); mLocationRequest.setInterval(1500000); mLocationRequest.setFastestInterval(150000); mLocationClient.requestLocationUpdates(mLocationRequest, this); The method is called but I still got updates every

Is it possible to geo-locate a 3g usb stick?

别说谁变了你拦得住时间么 提交于 2019-12-14 02:34:54
问题 Everything's in the question title I guess... I tried the findmyip kind of site, but the IP addresses for 3g usb sticks are no good to indicate the device's position... 回答1: It is possible yes, but it depends on what you're limitations are and how the routing of the traffic is done by the provider and what distance you're willing to consider accurate. If you're talking street-corner accuracy, then you aren't going to see that without using the device to gather information on "landmarks" (i.e.

Geoencode Address to GPS Coordinates

两盒软妹~` 提交于 2019-12-14 00:27:01
问题 I'm looking to geoencode an address and convert it to GPS Coordinates. Basically, var address; // Google/Yahoo/whatever program to convert address to GPS coordinates var output=xx.xxxxxxx,xx.xxxxxxx I've researched Google and Yahoo APIs, but can't seem to get their codes to work in my Google Gadget. Any suggestions? Thanks in advance! 回答1: Here's what I did for my address-to-gps-coords needs: function get_coords(address) { var gc = new google.maps.Geocoder(), opts = { 'address' : address };

Embeded google maps does not show in chrome

久未见 提交于 2019-12-13 23:34:05
问题 I have a web page where I use a the google maps api, I was working fine a time ago but recently it doesnt shows up un google Chrome, i think it is becouse of some new release, but I really cant find the glitch. Thanks <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Google Maps</title> <link rel="stylesheet" href="https://ajax.googleapis

Geolocation, loop with for and javascript

孤街醉人 提交于 2019-12-13 21:46:46
问题 I'm working on a Geolocation tool for a mobile website and so far i got this: The Geolocation verification from here: if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(successFunction, errorFunction); } else { console.log('Geolocation not enabled in your browser.'); } The toRad() function from Caspar's answer here: if (typeof(Number.prototype.toRad) === "undefined") { Number.prototype.toRad = function() { return this * Math.PI / 180; } } and the successFunction() from the

IP GeoLocation in VB

与世无争的帅哥 提交于 2019-12-13 20:53:12
问题 How I can geolocate an IP in VBNET? I want to know the city and country of an IP (better if I can get more dates but I only need that two) I can do it with any Class? or I need to found a good service to send Post data? in that case, can give a easy service to send/receive the data? Any example of how to do this using a web API or Classes please? PS: For VB.NET Thanks 回答1: There is no class that will do that for you. It is too high level task and too specific at the same time. You can choose

multiple regionDidChangeAnimated calls - what gives?

泪湿孤枕 提交于 2019-12-13 20:10:49
问题 I have a MKMapView inside a UITableView as a custom cell (don't ask ;) - don't know if it matters really), for which I register a regionDidChangeAnimated delegate method. This method gets called three times when the UITableView is loaded - once with the actual region and then two more times with a region that is way off. In the simulator, I consistently get a region with center (+37.43997405, -97.03125000). On the device, it seems to depend on the location reported by the location manager,