Skip to main content

Geolocation, Google Gear, Html5

The Gears Geolocation API can make use of network servers to obtain a position fix. The server determines the client's position using a set of data provided by the client. This data includes the client's IP address and information about any cell towers or WiFi nodes it can detect. This document describes the protocol used to send this data to the server and to return a response to the client.


http://code.google.com/apis/gears/geolocation_network_protocol.html

http://code.google.com/intl/zh-CN/apis/maps/documentation/javascript/examples/index.html
map-geolocation.html



// Try W3C Geolocation method (Preferred)
  if(navigator.geolocation) {
  browserSupportFlag = true;
  navigator.geolocation.getCurrentPosition(function(position) {
  initialLocation = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);
  contentString = "Location found using W3C standard";
  map.setCenter(initialLocation);
  infowindow.setContent(contentString);
  infowindow.setPosition(initialLocation);
  infowindow.open(map);
  }, function() {
  handleNoGeolocation(browserSupportFlag);
  });
  } else if (google.gears) {
  // Try Google Gears Geolocation
  browserSupportFlag = true;
  var geo = google.gears.factory.create('beta.geolocation');
  geo.getCurrentPosition(function(position) {
  initialLocation = new google.maps.LatLng(position.latitude,position.longitude);
  contentString = "Location found using Google Gears";
  map.setCenter(initialLocation);
  infowindow.setContent(contentString);
  infowindow.setPosition(initialLocation);
  infowindow.open(map);
  }, function() {
  handleNoGeolocation(browserSupportFlag);
  });
  } else {


Comments

Popular posts from this blog

Web synchronization option for merge replication

http://msdn2.microsoft.com/en-us/library/ms151319.aspx SQL Server 2005 Books Online Implementing Replication over the Internet Replicating data over the Internet allows remote, disconnected users to access data when they need it using a connection to the Internet. Replicate data over the Internet using: A Virtual Private Network (VPN). For more information, see Publishing Data over the Internet Using VPN . The Web synchronization option for merge replication. For more information, see Web Synchronization for Merge Replication . All types of Microsoft SQL Server replication can replicate data over a VPN, but you should consider Web synchronization if you are using merge replication.

Request Signatures in Blackberry

Request Signatures in Blackberry need copy sigtool.db, sigtool.csk to SDK/component/Bin folder for example V 4.2.1 ../eclipse\plugins\net.rim.eide.componentpack4.2.1_4.2.1.17\components\bin