Discussion: new API method: players.location Staff Topic

Just FYI!

Until now, the only way to tell whereabouts a player is in the game was to call players.getFullInfo ... but that call returns a bunch of other stuff, all of which taxes our servers in ways that are unnecessary if you're only interested in one particular piece of data.

So I've just added a new API method, players.location, which will just return the following info. Note, all these fields are named in the same way as the data returned from players.getFullInfo, so if you only use this data from that call, you should just be able to change the method name you call and everything else will work fine.

players.location returns:

   * is_online (bool)
   * last_online (timestamp, 0 if they're online)
   * location (details of their current location, but missing if they're somewhere "hidden")
   * pol (pointers to their home street/house)

Hopefully this is useful to some of you who are writing primarily game-location-based apps.
MOOOAARRRRR!! http://bit.ly/PKrFMk
It's nice to see the API getting some TLC; now it's just for someone or something coming up with an awesome app to utilise it, and I'm outta' ideas.. and awesomeness.. and apparently "Stalking someone's location" is illegal. At least in real life. I hope that doesn't influence Glitch. >:] 
Perfect!!!
Oh, good one ^^
This will be useful indeed!

Now I wonder how cool it would be to create our "own" custom API methods
Like, there is only ONE API method and the available data cut into smaller blocks, you just tell what you need in the args, and retrieve all that in one single call
No idea if that is even technically possible though :p
the other thing that will be usefull is, if player.stats() returns the amount of imagination of the signed in player. right now the only way to get it is through .fullinfo(). anyway this isn't information that needs to be refreshed too much.
Really like Lemo's idea! It would be nice to only select certain combos of player info with something like api.glitch.com/simple/players.custom?tsid=TSID&avatar=1&num_achievements=1 to return only player's avatar and player's number of achievements, instead of everything from players.fullInfo; right now this method is very helpful for cases needing just location, but for other cases, it's back to players.fullInfo again.
another API (from FriendFeed) used something like ?include=a,b,c,d
where a,b,c,d are the property names you want to include in the API call result