QUrl 类的 *addQueryItem* 方法
我想在 Google 地图上查询通往给定 GPS 坐标的所有道路。
为此,我必须放置一个“查询”,可以通过以下方式完成: http ://doc.qt.io/qt-4.8/qurl.html#addQueryItem
现在我想知道如何弄清楚这里的键及其对应的值应该是什么?
关键应该是“道路”/“道路”吗?有什么方法可以决定呢?我想要所有的道路而不是特定的一条!
有什么提示吗?
I want to query the Google map for all the roads leading to a given GPS coordinate.
For that I'll have to place a "query" which can be done by: http://doc.qt.io/qt-4.8/qurl.html#addQueryItem
Now I want to know how to figure out that what should be the key and its corresponding value here?
Should the key be "road"/"roads"? Whats the way to decide that? And I want all the roads not a particular one!
Any hints?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
HTTP URL 具有以下格式:
http://some/address?key=value&more=values
后面的部分'?'是你的查询。您必须确定生成的 URL 的外观并相应地添加键/值对。
我并不完全清楚你想要完成什么。您可能需要查看这些 Google Maps API 链接:
An HTTP URL has the following format:
http://some/address?key=value&more=values
The part behind the '?' is your query. You have to determine how the resulting URL should look like and add key/value pairs accordingly.
It isn't completely clear to me what you want to accomplish. You might want to check out these Google Maps API Links: