This API provides coordinates between EPSG 3414 (SVY21), EPSG 3857 and EPSG 4326 (WGS84) formats.
This API converts coordinates from EPSG:4326 to EPSG:3857.
400 - Please send the access token in the request header as a bearer token.
400 - Please input both latitude and longitude coordinates.
401 - Token has expired: Session expired. Please refresh your token (if still within refresh window) or re-login.
401 - Invalid token: Could not decode token: The token xxx; is an invalid JWS.
403 - Access Forbidden. GET access to component 'xxx' of service 'xxx' is not allowed by this user's role.
429 - API limit(s) exceeded.
API token provided by the Authentication Service.
Latitude coordinates in WGS84 format.
Longitude coordinates in WGS84 format.
1const url = "https://www.onemap.gov.sg/api/common/convert/4326to3857?latitude=1.319728905&longitude=103.8421581";
2const authToken = '**********************'; // Replace with your access token
3
4fetch(url, {
5 method: 'GET',
6 headers: {
7 'Authorization': `${authToken}`, // API token for authorization
8 }
9})
10.then(response => response.json()) // Parse response as JSON
11.then(data => console.log(data)) // Log the data to the console
12.catch(error => console.error('Error:', error)); // Log any errors
1{
2 "Y": 146924.54200324757,
3 "X": 11559656.16256661
4}
This API converts coordinates from EPSG:4326 to EPSG:3414.
400 - Please send the access token in the request header as a bearer token.
400 - Please input both latitude and longitude coordinates.
401 - Token has expired: Session expired. Please refresh your token (if still within refresh window) or re-login.
401 - Invalid token: Could not decode token: The token xxx; is an invalid JWS.
403 - Access Forbidden. GET access to component 'xxx' of service 'xxx' is not allowed by this user's role.
429 - API limit(s) exceeded.
API token provided by the Authentication Service.
Latitude coordinates in WGS84 format.
Longitude coordinates in WGS84 format.
1const url = "https://www.onemap.gov.sg/api/common/convert/4326to3414?latitude=1.319728905&longitude=103.8421581";
2const authToken = '**********************'; // Replace with your access token
3
4fetch(url, {
5 method: 'GET',
6 headers: {
7 'Authorization': `${authToken}`, // API token for authorization
8 }
9})
10.then(response => response.json()) // Parse response as JSON
11.then(data => console.log(data)) // Log the data to the console
12.catch(error => console.error('Error:', error)); // Log any errors
1{
2 "Y": 33554.4360965479,
3 "X": 28983.75169436287
4}
This API converts coordinates from EPSG:3414 to EPSG:3857.
400 - Please send the access token in the request header as a bearer token.
400 - Please input both Y and X coordinates.
401 - Token has expired: Session expired. Please refresh your token (if still within refresh window) or re-login.
401 - Invalid token: Could not decode token: The token xxx; is an invalid JWS.
403 - Access Forbidden. GET access to component 'xxx' of service 'xxx' is not allowed by this user's role.
429 - API limit(s) exceeded.
API token provided by the Authentication Service.
Y coordinates in SVY21 format.
X coordinates in SVY21 format.
1const url = "https://www.onemap.gov.sg/api/common/convert/3414to3857?X=28983.788791079794&Y=33554.509813284";
2const authToken = '**********************'; // Replace with your access token
3
4fetch(url, {
5 method: 'GET',
6 headers: {
7 'Authorization': `${authToken}`, // API token for authorization
8 }
9})
10.then(response => response.json()) // Parse response as JSON
11.then(data => console.log(data)) // Log the data to the console
12.catch(error => console.error('Error:', error)); // Log any errors
1{
2 "Y": 146924.61623595929,
3 "X": 11559656.199673364
4}
This API converts coordinates from EPSG:3414 to EPSG:4326
400 - Please send the access token in the request header as a bearer token.
400 - Please input both Y and X coordinates.
401 - Token has expired: Session expired. Please refresh your token (if still within refresh window) or re-login.
401 - Invalid token: Could not decode token: The token xxx; is an invalid JWS.
403 - Access Forbidden. GET access to component 'xxx' of service 'xxx' is not allowed by this user's role.
429 - API limit(s) exceeded.
API token provided by the Authentication Service.
Y Coordinates in SVY21 format.
X Coordinates in SVY21 format.
1const url = "https://www.onemap.gov.sg/api/common/convert/3414to4326?X=28983.788791079794&Y=33554.5098132845";
2const authToken = '**********************'; // Replace with your access token
3
4fetch(url, {
5 method: 'GET',
6 headers: {
7 'Authorization': `${authToken}`, // API token for authorization
8 }
9})
10.then(response => response.json()) // Parse response as JSON
11.then(data => console.log(data)) // Log the data to the console
12.catch(error => console.error('Error:', error)); // Log any errors
1{
2 "latitude": 1.3197295716669164,
3 "longitude": 103.84215843333567
4}
This API converts coordinates from EPSG:3857 to EPSG:3414
400 - Please send the access token in the request header as a bearer token.
400 - Please input both Y and X coordinates.
401 - Token has expired: Session expired. Please refresh your token (if still within refresh window) or re-login.
401 - Invalid token: Could not decode token: The token xxx; is an invalid JWS.
403 - Access Forbidden. GET access to component 'xxx' of service 'xxx' is not allowed by this user's role.
429 - API limit(s) exceeded.
API token provided by the Authentication Service.
Y Coordinates in SVY21 format.
X Coordinates in SVY21 format.
1const url = "https://www.onemap.gov.sg/api/common/convert/3857to3414?Y=146924.54200324757&X=11559656.16256661";
2const authToken = '**********************'; // Replace with your access token
3
4fetch(url, {
5 method: 'GET',
6 headers: {
7 'Authorization': `${authToken}`, // API token for authorization
8 }
9})
10.then(response => response.json()) // Parse response as JSON
11.then(data => console.log(data)) // Log the data to the console
12.catch(error => console.error('Error:', error)); // Log any errors
1{
2 "Y": 33554.4360965483,
3 "X": 28983.75169436287
4}
This API converts coordinates from EPSG:3857 to EPSG:4326
400 - Please send the access token in the request header as a bearer token.
400 - Please input both Y and X coordinates.
401 - Token has expired: Session expired. Please refresh your token (if still within refresh window) or re-login.
401 - Invalid token: Could not decode token: The token xxx; is an invalid JWS.
403 - Access Forbidden. GET access to component 'xxx' of service 'xxx' is not allowed by this user's role.
429 - API limit(s) exceeded.
API token provided by the Authentication Service.
Y coordinates in SVY21 format.
X coordinates in SVY21 format.
1const url = "https://www.onemap.gov.sg/api/common/convert/3857to4326?Y=146924.54200324757&X=11559656.16256661";
2const authToken = '**********************'; // Replace with your access token
3
4fetch(url, {
5 method: 'GET',
6 headers: {
7 'Authorization': `${authToken}`, // API token for authorization
8 }
9})
10.then(response => response.json()) // Parse response as JSON
11.then(data => console.log(data)) // Log the data to the console
12.catch(error => console.error('Error:', error)); // Log any errors
1{
2 "latitude": 1.3197289050000036,
3 "longitude": 103.8421581
4}