Transform coordinates in batch
This page shows how to transform coordinates from one system to another in bulk using our Coordinates API.
For a beginner intro into the service, see Work with coordinate systems.
MapTiler Coordinates API supports batch transform coordinates, transforming more than one point pair (x,y) or triplets (x,y,z) request in a single API call. You can perform batch coordinate transformation by calling the standard Coordinate API transform endpoint https://api.maptiler.com/coordinates/transform/{COORDS}.json. Just make sure you use semicolons ; to separate individual point pairs (up to 50 points).
Note that each pair or triplet of coordinates counts separately towards your API quota.
Example
Request
https://api.maptiler.com/coordinates/transform/17,50;17.1,50.1.json?s_srs=4326&t_srs=5514&key=YOUR_MAPTILER_API_KEY_HERE
Response
{
"transformer_selection_strategy": "auto",
"results": [
{
"x": -560595.6992028592,
"y": -1074706.2565340507,
"z": 0
},
{
"x": -552340.3607729311,
"y": -1064368.376869001,
"z": 0
}
]
}
The result is JSON format with nested point pairs under the results key.
For more details, see the Coordinates API TransformResult reference.