开发者

QUrl Class's *addQueryItem* method

I want to query the Google map for all the roads leading to a given GPS c开发者_如何学编程oordinate.

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?


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:

  • http://code.google.com/intl/de/apis/maps/documentation/staticmaps/#Addresses
  • http://code.google.com/intl/de/apis/maps/index.html
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜