Skip to content

Commit ab982ac

Browse files
committed
Merge branch 'column-updates'
* column-updates: Add t_units and t_sections to short column output Column docs update
2 parents 39fe6e6 + 035f0d4 commit ab982ac

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@macrostrat/api-v2",
3-
"version": "2.1.4",
3+
"version": "2.1.5",
44
"description": "An API for stratigraphic and geological information (Version 2).",
55
"main": "server.js",
66
"repository": {

v2/columns.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ module.exports = function (req, res, next, callback) {
247247
d.refs = larkin.jsonifyPipes(d.refs, "integers");
248248
}
249249

250+
// Add summary parameters to each column
251+
d.t_units = unit_data[d.col_id].t_units;
252+
d.t_sections = unit_data[d.col_id].t_sections;
253+
250254
if (req.query.response === "long") {
251255
d = _.extend(d, unit_data[d.col_id]);
252256

v2/defs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@
133133
strat_name: "a fuzzy stratigraphic name to match units to",
134134
strat_name_id:
135135
"integer, a single or comma-separated list of stratigraphic IDs from /defs/strat_names",
136+
strat_name_concept_id:
137+
"integer, a single or comma-separated list of stratigraphic name concept IDs from /defs/strat_name_concepts",
136138
lat: "number, decimal degree latitude, WGS84",
137139
lng: "number, decimal degree longitude, WGS84",
138140
adjacents:
@@ -207,6 +209,8 @@
207209
strat_name: "a fuzzy stratigraphic name to match units to",
208210
strat_name_id:
209211
"integer, a single or comma-separated list of stratigraphic IDs from /defs/strat_names",
212+
strat_name_concept_id:
213+
"integer, a single or comma-separated list of stratigraphic name concept IDs from /defs/strat_name_concepts",
210214
lat: "number, decimal degree latitude, WGS84",
211215
lng: "number, decimal degree longitude, WGS84",
212216
adjacents:

0 commit comments

Comments
 (0)