Dmitry Lobov Dmitry Lobov - 29 days ago 23
Node.js Question

Steam API - how to decode location codes

Good day!
Users of our site signups by steam OpenId, and when app gets their person info in JSON. An information about user location is provided as set of ISO(?) codes, like this: "loccountrycode": "RU", "locstatecode": "47", "loccityid": 41795. Steam API is wery badly documented, so i can't find any method to decode this to a string. Is there a some method in Steam API to do this, and if not, are there any convinient web-api's to do this? We use nodejs.
Thanks!

Answer

Resolved, just wanted to share. https://github.com/Holek/steam-friends-countries