curl --request POST \
--url https://api.eddy.engineer/v1/spatial.vector.join \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"on": {
"feature_key": "<string>",
"table_key": "<string>",
"columns": [
"<string>"
],
"numeric": [
"<string>"
],
"prefix": "<string>"
},
"vector": "<string>",
"csv": "<string>",
"delimiter": "<string>",
"name": "<string>",
"table": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.vector.join"
payload = {
"on": {
"feature_key": "<string>",
"table_key": "<string>",
"columns": ["<string>"],
"numeric": ["<string>"],
"prefix": "<string>"
},
"vector": "<string>",
"csv": "<string>",
"delimiter": "<string>",
"name": "<string>",
"table": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
on: {
feature_key: '<string>',
table_key: '<string>',
columns: ['<string>'],
numeric: ['<string>'],
prefix: '<string>'
},
vector: '<string>',
csv: '<string>',
delimiter: '<string>',
name: '<string>',
table: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.vector.join', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/spatial.vector.join",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'on' => [
'feature_key' => '<string>',
'table_key' => '<string>',
'columns' => [
'<string>'
],
'numeric' => [
'<string>'
],
'prefix' => '<string>'
],
'vector' => '<string>',
'csv' => '<string>',
'delimiter' => '<string>',
'name' => '<string>',
'table' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/spatial.vector.join"
payload := strings.NewReader("{\n \"on\": {\n \"feature_key\": \"<string>\",\n \"table_key\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"numeric\": [\n \"<string>\"\n ],\n \"prefix\": \"<string>\"\n },\n \"vector\": \"<string>\",\n \"csv\": \"<string>\",\n \"delimiter\": \"<string>\",\n \"name\": \"<string>\",\n \"table\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/spatial.vector.join")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"on\": {\n \"feature_key\": \"<string>\",\n \"table_key\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"numeric\": [\n \"<string>\"\n ],\n \"prefix\": \"<string>\"\n },\n \"vector\": \"<string>\",\n \"csv\": \"<string>\",\n \"delimiter\": \"<string>\",\n \"name\": \"<string>\",\n \"table\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.vector.join")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"on\": {\n \"feature_key\": \"<string>\",\n \"table_key\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"numeric\": [\n \"<string>\"\n ],\n \"prefix\": \"<string>\"\n },\n \"vector\": \"<string>\",\n \"csv\": \"<string>\",\n \"delimiter\": \"<string>\",\n \"name\": \"<string>\",\n \"table\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"bbox": {},
"features": 123,
"frame": {},
"id": "<string>",
"key": "<string>",
"kind": "<string>",
"lines": 123,
"name": "<string>",
"points": 123,
"polygons": 123,
"report": {},
"source": {},
"table": "<string>",
"time": {},
"vector": "<string>"
}A table joined to a vector document's features by key (UD14)
Joins a table — a stored one (table: the derived document of a table.csv snapshot, so the join names the snapshot it stands on) or CSV text (csv, RFC 4180: quoted fields, doubled quotes, commas and line breaks inside quotes, any line end, a byte-order mark) — to the features of vector by a named key, and stores the joined document. Keys compare as trimmed text (a postcode 0822 keeps its zero; a whole-number property compares as its integer text). Cells are text unless the join names the column numeric; nothing is inferred. The report counts what did not match on both sides: features with no row, features with no key, rows whose key no feature carries. Several rows for one key refuse unless duplicates says first or sum; a column that would overwrite a property refuses (state a prefix). The joined document keeps the geometry, the frame and any time axis, and its source names the vector document, the table, the table’s provenance, the join and the report.
curl --request POST \
--url https://api.eddy.engineer/v1/spatial.vector.join \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"on": {
"feature_key": "<string>",
"table_key": "<string>",
"columns": [
"<string>"
],
"numeric": [
"<string>"
],
"prefix": "<string>"
},
"vector": "<string>",
"csv": "<string>",
"delimiter": "<string>",
"name": "<string>",
"table": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/spatial.vector.join"
payload = {
"on": {
"feature_key": "<string>",
"table_key": "<string>",
"columns": ["<string>"],
"numeric": ["<string>"],
"prefix": "<string>"
},
"vector": "<string>",
"csv": "<string>",
"delimiter": "<string>",
"name": "<string>",
"table": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
on: {
feature_key: '<string>',
table_key: '<string>',
columns: ['<string>'],
numeric: ['<string>'],
prefix: '<string>'
},
vector: '<string>',
csv: '<string>',
delimiter: '<string>',
name: '<string>',
table: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/spatial.vector.join', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/spatial.vector.join",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'on' => [
'feature_key' => '<string>',
'table_key' => '<string>',
'columns' => [
'<string>'
],
'numeric' => [
'<string>'
],
'prefix' => '<string>'
],
'vector' => '<string>',
'csv' => '<string>',
'delimiter' => '<string>',
'name' => '<string>',
'table' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/spatial.vector.join"
payload := strings.NewReader("{\n \"on\": {\n \"feature_key\": \"<string>\",\n \"table_key\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"numeric\": [\n \"<string>\"\n ],\n \"prefix\": \"<string>\"\n },\n \"vector\": \"<string>\",\n \"csv\": \"<string>\",\n \"delimiter\": \"<string>\",\n \"name\": \"<string>\",\n \"table\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/spatial.vector.join")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"on\": {\n \"feature_key\": \"<string>\",\n \"table_key\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"numeric\": [\n \"<string>\"\n ],\n \"prefix\": \"<string>\"\n },\n \"vector\": \"<string>\",\n \"csv\": \"<string>\",\n \"delimiter\": \"<string>\",\n \"name\": \"<string>\",\n \"table\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/spatial.vector.join")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"on\": {\n \"feature_key\": \"<string>\",\n \"table_key\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"numeric\": [\n \"<string>\"\n ],\n \"prefix\": \"<string>\"\n },\n \"vector\": \"<string>\",\n \"csv\": \"<string>\",\n \"delimiter\": \"<string>\",\n \"name\": \"<string>\",\n \"table\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"bbox": {},
"features": 123,
"frame": {},
"id": "<string>",
"key": "<string>",
"kind": "<string>",
"lines": 123,
"name": "<string>",
"points": 123,
"polygons": 123,
"report": {},
"source": {},
"table": "<string>",
"time": {},
"vector": "<string>"
}Body
Response
OK