Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
simcaq-node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simcaq
simcaq-node
Commits
a4b85b3a
There was a problem fetching the pipeline summary.
Commit
a4b85b3a
authored
6 years ago
by
Fernando Erd
Browse files
Options
Downloads
Patches
Plain Diff
Add id2str
parent
feb8c253
No related branches found
No related tags found
1 merge request
!128
Transport Indicator
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/libs/middlewares/id2str.js
+5
-2
5 additions, 2 deletions
src/libs/middlewares/id2str.js
src/libs/routes/transport.js
+0
-1
0 additions, 1 deletion
src/libs/routes/transport.js
with
5 additions
and
3 deletions
src/libs/middlewares/id2str.js
+
5
−
2
View file @
a4b85b3a
...
@@ -25,6 +25,7 @@ const genderPnad = require(`${libs}/convert/genderPnad`);
...
@@ -25,6 +25,7 @@ const genderPnad = require(`${libs}/convert/genderPnad`);
const
fifthHouseholdIncome
=
require
(
`
${
libs
}
/convert/fifthHouseholdIncome`
);
const
fifthHouseholdIncome
=
require
(
`
${
libs
}
/convert/fifthHouseholdIncome`
);
const
extremesHouseholdIncome
=
require
(
`
${
libs
}
/convert/extremesHouseholdIncome`
);
const
extremesHouseholdIncome
=
require
(
`
${
libs
}
/convert/extremesHouseholdIncome`
);
const
educationLevelBasic
=
require
(
`
${
libs
}
/convert/educationLevelBasic`
);
const
educationLevelBasic
=
require
(
`
${
libs
}
/convert/educationLevelBasic`
);
const
useTransport
=
require
(
`
${
libs
}
/convert/booleanVariable`
);
const
ids
=
{
const
ids
=
{
gender_id
:
gender
,
gender_id
:
gender
,
...
@@ -61,7 +62,8 @@ const ids = {
...
@@ -61,7 +62,8 @@ const ids = {
full_age_range_id
:
fullAgeRange
,
full_age_range_id
:
fullAgeRange
,
gender_pnad_id
:
genderPnad
,
gender_pnad_id
:
genderPnad
,
fifth_household_income_id
:
fifthHouseholdIncome
,
fifth_household_income_id
:
fifthHouseholdIncome
,
extremes_household_income_id
:
extremesHouseholdIncome
extremes_household_income_id
:
extremesHouseholdIncome
,
use_transport_id
:
useTransport
};
};
function
transform
(
removeId
=
false
)
{
function
transform
(
removeId
=
false
)
{
...
@@ -127,5 +129,6 @@ module.exports = {
...
@@ -127,5 +129,6 @@ module.exports = {
fullAgeRange
,
fullAgeRange
,
genderPnad
,
genderPnad
,
fifthHouseholdIncome
,
fifthHouseholdIncome
,
extremesHouseholdIncome
extremesHouseholdIncome
,
useTransport
};
};
This diff is collapsed.
Click to expand it.
src/libs/routes/transport.js
+
0
−
1
View file @
a4b85b3a
...
@@ -362,7 +362,6 @@ transportApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
...
@@ -362,7 +362,6 @@ transportApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
let
public_transport
=
req
.
result
[
req
.
queryIndex
.
allTransports
];
let
public_transport
=
req
.
result
[
req
.
queryIndex
.
allTransports
];
let
van_and_kombi
=
req
.
result
[
req
.
queryIndex
.
goVansAndKombi
];
let
van_and_kombi
=
req
.
result
[
req
.
queryIndex
.
goVansAndKombi
];
console
.
log
(
req
.
result
[
req
.
queryIndex
])
let
micro_bus
=
req
.
result
[
req
.
queryIndex
.
goMicroBus
];
let
micro_bus
=
req
.
result
[
req
.
queryIndex
.
goMicroBus
];
let
Bus
=
req
.
result
[
req
.
queryIndex
.
goBus
];
let
Bus
=
req
.
result
[
req
.
queryIndex
.
goBus
];
let
bike
=
req
.
result
[
req
.
queryIndex
.
goBikes
];
let
bike
=
req
.
result
[
req
.
queryIndex
.
goBikes
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment