GPS Module

From WebDisplays
Jump to: navigation, search

The GPS Module is an upgrade which allows web pages to get the world position of the screen.


Upgrade gps.png

The item on the left is a Blank Upgrade.

How to use

Like any other upgrades, install it by right-clicking on a screen with the upgrade in your main hand. You will need the "Link & upgrade" permission to do that.


The upgrade name returned by GetUpgrades is webdisplays:gps. For more information on how to use these queries, check out Screen#JavaScript


This upgrade adds the following queries:

Query name Arguments Return value Comment
GetLocation None {"x":int,"y":int,"z":int,"side":string} Side can be BOTTOM, TOP, NORTH, SOUTH, WEST or EAST