Getting driving instructions in android application using Google Directions API
-
30-10-2019 - |
Question
I have this android app where I am supposed to show the driving directions to the users. I am using Google Directions API for this. This involves making request to their url and getting the JSON in result. Now, the problem is : the driving directions are inside the TAG/Name - "html-instructions". Here I get the directions, but it's embedded with unicode characters for eg.
"html_instructions": "Take the 1st \u003cb\u003eleft\u003c/b\u003e toward \u003cb\u003eBannerugatta Rd\u003c/b\u003e"
How do I get rid of these unicode values and get the plain text out of it.
Please help
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow