Convert a coordinate
Convert between WGS 84 and the supported UK national grids while keeping the transformation and any precision caveat visible.
/coordinates:convertGood to know
- Use
crs=EPSG:27700for British National Grid easting/northing or a grid reference. - The result is a horizontal position; it does not infer elevation or a terrain value.
lngstringoptionalLongitude in WGS 84 decimal degrees, -180 to 180.
lonstringoptionalAlias for
lng, the WGS 84 longitude in decimal degrees.longitudestringoptionalAlias for
lng, the WGS 84 longitude in decimal degrees.latstringoptionalLatitude in WGS 84 decimal degrees, -90 to 90.
crsstringoptionalThe input coordinate reference system. The default
EPSG:4326useslngandlat;EPSG:27700uses British National Grideastingandnorthingor an Ordnance Surveygridref;EPSG:29902uses Irish Grideastingandnorthing.One ofEPSG:4326EPSG:27700EPSG:29902DefaultEPSG:4326tostringoptionalThe requested output CRS.
pointis always WGS 84; choose a national grid here to addtargetwith easting and northing. The API rejects a point that falls outside its supported range for the requested grid.One ofEPSG:4326EPSG:27700EPSG:29902DefaultEPSG:4326gridrefDigitsinteger 1–5optionalWith
to=EPSG:27700, the maximum number of digits per coordinate intarget.gridReference. The API may return fewer digits when the input or transformation uncertainty requires a coarser cell. It is invalid with another target CRS.Default5eastingstringoptionalEasting in grid metres. Required with
crs=EPSG:27700orcrs=EPSG:29902; do not combine it with WGS 84lng/lat.northingstringoptionalNorthing in grid metres. Required with
crs=EPSG:27700orcrs=EPSG:29902; do not combine it with WGS 84lng/lat.gridrefstringoptionalA two-letter Ordnance Survey National Grid reference, followed by an even number of digits from 2 to 10, for example
TQ 30000 80000. Use only withcrs=EPSG:27700; do not combine it witheastingornorthing. A grid reference denotes a square, represented by its cell centre with the cell's half-diagonal included in uncertainty.accuracynumberoptionalHow far the true position may lie from the coordinate, in metres, such as a GPS fix's reported accuracy. Without it, uncertainty is half the coordinate's last written decimal place, which overstates it where a client drops trailing zeros.
Returns
CoordinateConversionEnvelopeThe normalised WGS 84 coordinate, and an optional requested national-grid coordinate, with transparent precision.
apiVersionv1requiredatlasReleasestringrequiredThe immutable
/atlas-releasereleaseIdfor the artifacts that produced this response.metaobjectrequiredShowHide1 child field
nextCursorstring | nullrequiredOpaque cursor for the next page, or null at the end.
dataCoordinateConversionrequiredShowHide4 child fields
pointLookupPointrequiredShowHide5 child fields
lngnumberrequiredlatnumberrequiredcrsEPSG:4326requiredprecisionobjectrequiredShowHide3 child fields
decimalPlacesobjectrequireduncertaintyMnumberrequiredHow far the true position may lie from the coordinate, in metres.
basisstringrequiredOne ofstated-accuracydecimal-placesstated-accuracy-and-transformationdecimal-places-and-transformationgrid-reference-and-transformationstated-accuracy-and-grid-reference-and-transformation
inputobjectoptionalPresent when British National Grid or Irish Grid input was transformed to WGS 84.
ShowHide5 child fields
crsenumrequiredOne ofEPSG:27700EPSG:29902eastingnumberrequirednorthingnumberrequiredgridReferenceobjectoptionalPresent when an Ordnance Survey National Grid reference was supplied.
transformationobjectrequired
targetCrsenumrequiredOne ofEPSG:4326EPSG:27700EPSG:29902targetobjectoptionalPresent when
torequests a national grid. The named EPSG transformation is used in its inverse direction from WGS 84.ShowHide6 child fields
crsenumrequiredOne ofEPSG:27700EPSG:29902eastingnumberrequirednorthingnumberrequireduncertaintyMnumberrequiredInput uncertainty plus the transformation's stated accuracy, in metres.
gridReferenceobjectoptionalA British National Grid cell containing the target coordinate, present only for an encodable EPSG:27700 target. Its cell is no finer than the target uncertainty permits.
ShowHide4 child fields
valuestringrequireddigitsintegerrequiredcellSizeMnumberrequiredpositioncontaining-cellrequired
transformationobjectrequiredShowHide5 child fields
namestringrequiredepsgstringrequiredaccuracyMnumberrequiredareaOfUsestringrequireddirectioninverserequired
notestringrequired
- 400A query parameter is malformed or its cursor is not valid for this result set.
Every error has the same shape. See Errors for how to handle them.
Show the precise behaviourHide the precise behaviour
Converts one horizontal coordinate without reading a boundary release. Its point is always normalised to WGS 84. By default that is the full response; select to=EPSG:27700 or to=EPSG:29902 to also receive a British National Grid or Irish Grid coordinate. Supply default WGS 84 lng and lat, British National Grid easting and northing or an Ordnance Survey gridref with crs=EPSG:27700, or Irish Grid easting and northing with crs=EPSG:29902.
The answer keeps the input form and named transformation. An Ordnance Survey grid reference denotes a square, not a point: the coordinate is the cell centre and uncertainty includes the square's half-diagonal. A British National Grid target also supplies its containing National Grid cell when one can represent the coordinate without overstating uncertainty; gridrefDigits can request a coarser cell. This route only converts horizontal position; it neither determines altitude nor implies an administrative-area relationship.