Web服务获取GPS坐标 [英] Web service to get the GPS Coordinates

查看:309
本文介绍了Web服务获取GPS坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序(jsp / strtus2),它需要一个地方的GPS坐标。我想知道的是,是否有任何免费的Web服务可以通过将地址或邮政编码传递到服务器来获取某个地点的GPS坐标。



感谢advance,
Nuwan

解决方案

Yahoo的地理编码器易于使用。基本上可以改变一些查询字符串,并输出一个简单的解析xml文件。



谷歌在我们的地区有几个问题,坐标返回的时候有时令人难以置信地不准确。雅虎倾向于实际上在有问题的街道上登陆,但可能不会打到包裹本身。

这就是说,只要注意这些服务不会是最准确的。


I'm developing an web application (jsp/strtus2) which requires the GPS coordinates of a place. What I want to know is, whether there are any free web services that I can get GPS coordinates of a place by passing address or zip code to the server.

Thanks in advance, Nuwan

解决方案

Yahoo's Geocoder is easy to use. Basically change a few query strings and it outputs an easy to parse xml file.

Google's had a few issues in our area with the coordinates being returned being incredibly inaccurate at times. Yahoo tends to actually land on the street in question, but probably wont hit the parcel itself.

That said, just note these services aren't going to be the most accurate.

这篇关于Web服务获取GPS坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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