Click here to Skip to main content
15,917,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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@
Posted

1 solution

this is encode polynomial location with set of points in a map. read below reference
https://developers.google.com/maps/documentation/utilities/polylinealgorithm[^]
if you need to decode this string and check the real location in the google map go to
https://developers.google.com/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 : https://gist.github.com/shinyzhu/4617989[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900