谷歌地理位置API库 [英] Google Geolocation API library

查看:182
本文介绍了谷歌地理位置API库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个图书馆,在那里,将使用谷歌的服务( https://www.google.com让你您的大致位置/禄/ JSON )?

Is there a library out there that will get you your approximate location using the google service (https://www.google.com/loc/json)?

谷歌齿轮具有对它的支持http://code.google.com/p /gears/wiki/GeolocationAPI\">http://code.google.com/p/gears/wiki/GeolocationAPI 也有对Web服务请求/响应模式好DOCO。

Google Gears has support for it as described here http://code.google.com/p/gears/wiki/GeolocationAPI There is also good doco on the web service request/response schema.

Firefox和Safari浏览器iPhone使用的服务以及和他们有自己的实现。我想用我自己的C#应用​​程序的服务,所以我想,我可以使用库(任C / C ++ / C#一个)。目前,我的同事得到它的工作的唯一方法是使用齿轮插件IE和托管在我们的WPF应用程序嵌入IE浏览器窗口。这是有点麻烦和不良重新分配。

Firefox and iPhone Safari use the service as well and they have their own implementations. I would like to use the service in my own C# application so I would like a library that I can use (either one of C/C++/C#). Currently the only way my colleague got it working is using a gears plugin for IE and hosting the embedded IE window in our WPF app. This is a bit cumbersome and poorly re-distributable.

任何想法

修改这是从上面的页面评论?

Edit This is a comment from the above page:

由steveblock@google.com评论,2008年12月2日

Comment by steveblock@google.com, Dec 02, 2008

谢谢所有的意见。一些回应...

Thanks for all the comments. A few responses ...

解答许多关于使用API​​的问题可以在地理位置上找到>在http://code.google.com/apis/gears/api%5Fgeolocation.html 。这个Wiki页面的目的是记录工作正在进行中那些开发齿轮,而不是服务于API作为最终文件。

Answers to many of the questions about use of the API can be found in the Geolocation >API documentation at http://code.google.com/apis/gears/api%5Fgeolocation.html. This Wiki page is intended to document work in progress for those developing Gears, not to serve as definitive documentation of the API.

关于JSON的协议,我已经更新了这个文件以反映齿轮当前的行为。需要注意的是该协议的正式文件将很快加入到地理位置API文档。

Regarding the JSON protocol, I've updated this document to reflect the current behaviour in Gears. Note that official documentation of the protocol will soon be added to the Geolocation API documentation.

Gears的服务条款禁止直接使用谷歌位置服务器(的http://www.google.com/loc/json )通过HTTP请求。此服务可能只有通过地理位置API进行访问。

The Gears Terms of Service prohibits direct use of the Google location server (http://www.google.com/loc/json) via HTTP requests. This service may only be accessed through the Geolocation API.

这有点儿吸。那么,如何火狐逃脱直接使用这项服务通过一个HTTP请求。​​

This kinda sucks. So how does Firefox gets away using this service directly via a HTTP request.

推荐答案

请看看索尼PlaceEngine,它会得到你基于它可以访问的WiFi信号的位置。不利的一面是,用户必须安装客户端的PE。向上的一面是,它可以通过网站和/或本地应用程序进行访问。有一个在线服务器数据库可以查询的详细信息,以及本地数据库选项,您可以查询位置的估计时,有没有网络连接。这是用于一串导航软件的,包括作为后备于GPS在索尼公司的导航-U单位。此外,您还可以自行更新数据placeEngine(即增加新的接入点)

please take a look at Sony PlaceEngine, it will get you the location based on the WiFi signals it can access. The down side is that users have to install the PE client. The up side is that it can be accessed by web sites and/or local apps. There is an online server DB you can query for detailed information, and a local DB option you can query for location estimates when there is no internet. This is used for a bunch of Navigation software, including as a back-up to GPS in Sony's Nav-U units. Also, you can update the placeEngine data yourself (i.e. add new access points).

选项2是苹果公司的CoreLocation - 目前使用一种被称为天钩的服务。我相信你可以,如果你想在非苹果平台上使用的Skyhook。

Option 2 is Apple's CoreLocation - which currently uses a service known as SkyHook. I am sure you can use SkyHook on non-Apple platforms if you wish.

谷歌的Latitude服务使用Gears不知何故,而且它必须是使用WiFi,因为它太准确到仅基于IP地址。他们可能使用PlaceEngine或数据库的Skyhook自己对后端...

Google's Latitude service uses Gears somehow, and it must be using WiFi, because it's much too accurate to be based only on IP Address. They are probably using the PlaceEngine or Skyhook databases themselves on the back-end...

这篇关于谷歌地理位置API库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆