无法理解API输出

编程入门 行业动态 更新时间:2024-10-24 21:28:51
本文介绍了无法理解API输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用API​​,当我拨打某些电话时,会返回一些难以理解的内容: {id:100,name:Manhattan,level:1,city:New York,state:NY,path:manhattan PARENT_ID:1, boundary_encoded_points_string:kfqwFzkwbM} uAwM_iAmIgi @ yQyfDm {BqmGc`Eon @き@ IR @ {OGT @ cCcSia @ {吨@ e` @}沃顿} LWI @ K [QBE [〜的Fc]李} KzEcO ^ aUxFgN〜I {的Gd] pEff @ XE @ RA @ H [PZ @ TJ @ HJA一b @ loAoFfhAdAdf @ EA @ JK @ {@ VC @ HH @ DK @〜[PB @ lEfX_HtQ | CjWzWv | @vp @ NH @ VJ @ bYde @ BF @ DORI @ HVN @ wBvtAtf @ rS的| Y @ zEzfA |奥法@ TE @〜| @ {B | O @ _Wd\\} n的@小号@ small_image_uri: /images/no_photo_small.png\",\"title\":\"Manhattan\",\"subtitle\":\"in NYC,details:} 具体到底是什么: kfqwFzkwbM} uAwM_iAmIgi @ yQyfDm {BqmGc `宙@き@ IR @ {OGT @ cCcSia @ {吨@ e` @}沃顿} LWI @ K [QBE [〜的Fc]李} KzEcO ^ aUxFgN〜I {的Gd] pEff @ XE @ RA @ H [PZ @ TJ @ HJA一b @ loAoFfhAdAdf @ EA @ JK @ {@ VC @ HH @ DK @〜[PB @ lEfX_HtQ | CjWzWv | @ VP @ NH @ VJ @ bYde @ BF @ DORI @ HVN @ wBvtAtf @ rS的| Y @ zEzfA |奥法@ TE @〜| @ {B | O @ _Wd \\} n @ s @

I am working with an API and when i make certain calls it returns some incomprehensible stuff like this: {"id":100,"name":"Manhattan","level":1,"city":"New York","state":"NY","path":"manhattan","parent_id":1,"boundary_encoded_points_string":"kfqwFzkwbM}uAwM_iAmIgi@yQyfDm{BqmGc`Eon@ki@ir@{Ogt@cCcSia@{t@e`@}k@}Lwi@k[qBe[~Fc]lI}KzEcO^aUxFgN~I{Gd]pEff@xe@ra@h[pz@tj@hjA~b@loAoFfhAdAdf@ea@jk@{@vc@hh@dk@~[pb@lEfX_HtQ|CjWzWv|@vp@nh@vj@bYde@bf@dOri@Hvn@wBvtAtf@rS|y@zEzfA|Ofa@te@~|@{B|o@_Wd\\}n@s@","small_image_uri":"/images/no_photo_small.png","title":"Manhattan","subtitle":"in NYC","details":""} what exactly is this: kfqwFzkwbM}uAwM_iAmIgi@yQyfDm{BqmGc`Eon@ki@ir@{Ogt@cCcSia@{t@e`@}k@}Lwi@k[qBe[~Fc]lI}KzEcO^aUxFgN~I{Gd]pEff@xe@ra@h[pz@tj@hjA~b@loAoFfhAdAdf@ea@jk@{@vc@hh@dk@~[pb@lEfX_HtQ|CjWzWv|@vp@nh@vj@bYde@bf@dOri@Hvn@wBvtAtf@rS|y@zEzfA|Ofa@te@~|@{B|o@_Wd\\}n@s@

推荐答案

这是在地图中具有一组点的编码多项式位置。请参阅以下参考 developers.google/maps/documentation/utilities /折线算法 [ ^ ] 如果您需要解码此字符串并检查谷歌地图中的真实位置,请转到 developers.google/maps/documentation/utilities/polylineutility [ ^ ] 并将上面编码的字符串放在编码折线:输入中,然后点击解码多边形线按钮。 C#解码代码可以在这里找到: gist.github/shinyzhu/4617989 [ ^ ] this is encode polynomial location with set of points in a map. read below reference developers.google/maps/documentation/utilities/polylinealgorithm[^] if you need to decode this string and check the real location in the google map go to developers.google/maps/documentation/utilities/polylineutility[^] and place the above encoded string in the Encoded Polyline: input and click decode poly line button. C# decode code can be found here : gist.github/shinyzhu/4617989[^]

更多推荐

无法理解API输出

本文发布于:2023-07-27 14:01:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222747.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!