Google地图WebService API - 在地图上显示路线结果 [英] Google Maps WebService API - show directions result on map
问题描述
编辑:
-
如何从Google Maps Web Service APIv3中获取DirectionsResult json对象而不破坏如果是这样,如何解析该结果并将其显示在地图上(在我使用DirectionsRenderer的js API中)?
我可以使用js API来完成上述操作,但是使用Web服务失败了。也可以使用JQuery / JQM。
任何想法?
听起来你实际上并不想执行Javascript,你只是想解析JSON。有许多图书馆可以做到这一点。
EDIT:
How is it possible to get a DirectionsResult json object from Google maps Web Service APIv3 without breaking the "laws" of xss?
if so, how is it possible to parse that result and show it on a map (in the js API I use DirectionsRenderer) ?
I can do the above with the js API, but am failing miserably with the Web Service. also, use of JQuery / JQM is available.
Any ideas?
Sounds like you don't actually want to execute Javascript, you just want to parse JSON. There are many libraries available to do this.
这篇关于Google地图WebService API - 在地图上显示路线结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!