# Calculator:Coordinates

The following are calculators to convert between Developer Coordinates, interative map coordinates and geographical coordinates, especially useful when working with interactive maps on the wiki.

## Text Dev-Map

Templates used Calculator:Template/TextCoords

Converts developer to map coordinates and vice-versa, type automatically determined. Values should be comma separated and order should be: `x,y`, `z,x,y`, or `z,x1,y1,x2,y2`. Coordinates from developer console can be copy pasted into the field. Will also convert the integer type coordinates from the cache (eg 51891488).

```  template = Calculator:Template/TextCoords
form = FormText
result = ResultText
param = text|String|0,38,49,8,2|string
```

## Expected vs Actual Coordinates

Templates used Calculator:Template/CoordTransform

Transforms interactive map coordinates based on position and mapID for those map areas that are not on the same place in RuneScape as they are on the rs wiki interactive maps. This functionality is integrated into the other calculators on this page, and is mostly for use with large coordinate dumps where specific transforms were not accounted for, or when copying coordinates between maps using different map IDs.

```  template = Calculator:Template/CoordTransform
name = Untransformed > RS Wiki Coordinates
form = FormTrans
result = ResultTrans
param = dir || 1 | hidden
param = z || 0 | int | 0-99
param = x || 1373 | int | 0-9999
param = y || 5645 | int | 0-19999
param = mapID || 28 | int | -1-11000 || 28 is the regular runescape surface, for a full list see [[RuneScape:Map/mapIDs]]
```

## Developer & Map

Templates used Calculator:Template/DevToMapCalculator:Template/MapToDev

Converts between developer coordinates and interactive map coordinates.

```  template = Calculator:Template/DevToMap
name = Dev to Map
form = FormDtoM
result = ResultDtoM
param = z || 0 | int | 0-199
param = x1 || 38 | int | 0-199
param = y1 || 49 | int | 0-199
param = x2 || 8  | int | 0-63
param = y2 || 25 | int | 0-63
```
```  template = Calculator:Template/MapToDev
name = Map to Dev
form = FormMtoD
result = ResultMtoD
param = z || 0 | int | 0-199
param = x || 2440 | int | 0-9999
param = y || 3161 | int | 0-9999
```

## Geographical And Developer

Templates used Calculator:Template/DevToGeoCalculator:Template/GeoToDev

Convert between developer and geographical coordinates.

```  template = Calculator:Template/DevToGeo
form = FormDtoG
result = ResultDtoG
param = x1 || 38 | int | 0-199
param = y1 || 49 | int | 0-199
param = x2 || 8  | int | 0-63
param = y2 || 25 | int | 0-63
```
```  template = Calculator:Template/GeoToDev
form = FormGtoD
result = ResultGtoD
param = nd | degrees n/s | 0 | int |
param = nm | minutes n/s | 0 | int | 0-59
param = ns | north/south | n | select | n,s
param = ed | degrees e/w | 0 | int |
param = em | minutes e/w | 0 | int | 0-59
param = ew | east/west   | e | select | e,w
param = quadrant | map quadrant | surface | select | q1,dungeon,surface,q4
```