Commit b4afb017 authored by Michael Auer's avatar Michael Auer
Browse files

add ratio query options to CLI

parent f915e778
...@@ -315,13 +315,28 @@ let configureOhsomeQuery = async () => { ...@@ -315,13 +315,28 @@ let configureOhsomeQuery = async () => {
{name: 'elements/length/groupBy/boundary'}, {name: 'elements/length/groupBy/boundary'},
{name: 'elements/area/groupBy/boundary'}, {name: 'elements/area/groupBy/boundary'},
{name: 'elements/perimeter/groupBy/boundary'}, {name: 'elements/perimeter/groupBy/boundary'},
{name: 'elements/count/ratio/groupBy/boundary'},
{name: 'elements/length/ratio/groupBy/boundary'},
{name: 'elements/area/ratio/groupBy/boundary'},
{name: 'elements/perimeter/ratio/groupBy/boundary'},
{name: 'users/count/groupBy/boundary'} {name: 'users/count/groupBy/boundary'}
], ],
default: 'elements/count/groupBy/boundary' default: 'elements/count/groupBy/boundary'
}, },
{ {
name: 'filter', name: 'filter',
message: 'Specify an ohsome-api filter text (e.g. building=* and building!=no and geometry:polygon):\n More info on syntax: https://docs.ohsome.org/ohsome-api/stable/filter.html \n>' message: 'filter: Specify an ohsome-api filter text. (Syntax: e.g. building=* and building!=no and geometry:polygon):\n More info on syntax: https://docs.ohsome.org/ohsome-api/stable/filter.html \n>',
when: (answers) => {return !(answers.queryType.includes('/ratio'))}
},
{
name: 'filter',
message: 'filter: Specify an ohsome-api filter text. This will define the denominator value for the ratio result. (Syntax: e.g. building=* and building!=no and geometry:polygon):\n More info on syntax: https://docs.ohsome.org/ohsome-api/stable/filter.html \n>',
when: (answers) => {return answers.queryType.includes('/ratio')}
},
{
name: 'filter2',
message: 'filter2: Specify an ohsome-api filter text. This will define the nominator value for the ratio result. (Syntax: e.g. building=* and building!=no and geometry:polygon):\n More info on syntax: https://docs.ohsome.org/ohsome-api/stable/filter.html \n>',
when: (answers) => {return answers.queryType.includes('/ratio')}
}, },
{ {
name: 'time', name: 'time',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment