Transform API
Transform API was designed to transform coordinates. It supports geocentric, spherical, planar coordinate systems, various types of projections, geoid models.
Request example:
curl --location --request POST 'https://api.geodesy.online/v1/transform/blh/blh' \
--header 'API_KEY: [your_api_key]' \
--header 'Content-Type: application/json' \
--data-raw '{
"inCs": {
"ellipsoid": {
"a": 6378137.000,
"invF": 298.257223563
},
"wx": 0,
"wy": 0,
"wz": 0,
"dx": 0,
"dy": 0,
"dz": 0,
"m": 1,
"direction": 1,
"rotation": 1
},
"outCs": {
"ellipsoid": {
"a": 6378137.000,
"invF": 298.257223563
},
"wx": 0,
"wy": 0,
"wz": 0,
"dx": 0,
"dy": 0,
"dz": 0,
"m": 1,
"direction": 1,
"rotation": 1,
"geoid": "EGM 2008 1'\''"
},
"coords": [
{
"b": 27.5,
"l": -80.6,
"he": -19.840,
"hn": 9
}
]
}'
Response example:
{
"result": {
"coords": [
{
"b": 27.49999999999999,
"l": -80.6,
"he": -19.84000000078231,
"hn": 9.0,
"a": -28.84000000078231
}
]
},
"success": true
}
Request example:
curl --location --request POST 'https://api.geodesy.online/v1/transform/blh/xyz' \
--header 'API_KEY: [your_api_key]' \
--header 'Content-Type: application/json' \
--data-raw '{
"inCs": {
"ellipsoid": {
"a": 6378137.000,
"invF": 298.257223563
},
"wx": 0,
"wy": 0,
"wz": 0,
"dx": 0,
"dy": 0,
"dz": 0,
"m": 1,
"direction": 1,
"rotation": 1
},
"outCs": {
"ellipsoid": {
"a": 6378137.000,
"invF": 298.257223563
},
"wx": 0,
"wy": 0,
"wz": 0,
"dx": 0,
"dy": 0,
"dz": 0,
"m": 1,
"direction": 1,
"rotation": 1
},
"coords": [
{
"b": 27.5,
"l": -80.6,
"he": -19.840
}
]
}'
Response example:
{
"result": {
"coords": [
{
"x": 924670.0757192839,
"y": -5585479.14155912,
"z": 2927461.1279992103
}
]
},
"success": true
}
Request example:
curl --location --request POST 'https://api.geodesy.online/v1/transform/xyz/blh' \
--header 'API_KEY: [your_api_key]' \
--header 'Content-Type: application/json' \
--data-raw '{
"inCs": {
"ellipsoid": {
"a": 6378137.000,
"invF": 298.257223563
},
"wx": 0,
"wy": 0,
"wz": 0,
"dx": 0,
"dy": 0,
"dz": 0,
"m": 1,
"direction": 1,
"rotation": 1
},
"outCs": {
"ellipsoid": {
"a": 6378137.000,
"invF": 298.257223563
},
"wx": 0,
"wy": 0,
"wz": 0,
"dx": 0,
"dy": 0,
"dz": 0,
"m": 1,
"direction": 1,
"rotation": 1
},
"coords": [
{
"x": 924670.0757192839,
"y": -5585479.14155912,
"z": 2927461.1279992103
}
]
}'
Response example:
{
"result": {
"coords": [
{
"b": 27.49999999999999,
"l": -80.6,
"he": -19.84000000078231,
"hn": "NaN",
"a": "NaN"
}
]
},
"success": true
}
Request example:
curl --location --request POST 'https://api.geodesy.online/v1/transform/xyz/xyz' \
--header 'API_KEY: [your_api_key]' \
--header 'Content-Type: application/json' \
--data-raw '{
"inCs": {
"ellipsoid": {
"a": 6378137.000,
"invF": 298.257223563
},
"wx": 0,
"wy": 0,
"wz": 0,
"dx": 0,
"dy": 0,
"dz": 0,
"m": 1,
"direction": 1,
"rotation": 1
},
"outCs": {
"ellipsoid": {
"a": 6378137.000,
"invF": 298.257223563
},
"wx": 0,
"wy": 0,
"wz": 0,
"dx": 0,
"dy": 0,
"dz": 0,
"m": 1,
"direction": 1,
"rotation": 1
},
"coords": [
{
"x": 924670.0757192839,
"y": -5585479.14155912,
"z": 2927461.1279992103
}
]
}'
Response example:
{
"result": {
"coords": [
{
"x": 924670.0757192839,
"y": -5585479.14155912,
"z": 2927461.1279992103
}
]
},
"success": true
}
The documentation is being updated...