Skip to content

Commit

Permalink
JariBakken: Document the geo location wire command.
Browse files Browse the repository at this point in the history
r15737
  • Loading branch information
jarib committed Jan 30, 2012
1 parent d14fc79 commit 1316017
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wire.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,13 @@ def main():
AddJsonParameter('ySpeed', '{number}', 'The y speed in pixels per '
'second.'))

resources.append(
SessionResource('/session/:sessionId/location').
Get('Get the current geo location.').
SetReturnType('{latitude: number, longitude: number, altitude: number}', 'The current geo location.').
Post('Set the current geo location.').
AddJsonParameter('location', '{latitude: number, longitude: number, altitude: number}', 'The new location.'))

logging.info('Generating %s', wiki_path)
f = open(wiki_path, 'w')
try:
Expand Down

0 comments on commit 1316017

Please sign in to comment.