feat: refs #7882 Added osrmservice #3281
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#3281
Loading…
Reference in New Issue
No description provided.
Delete Branch "7882-locationiq"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
feat: refs #7882 Added locationiq serviceto feat: refs #7882 Added osrmservice@ -0,0 +54,4 @@
}
if (lastAddressId) {
const firstAddress = await models.Address.findById(lastAddressId);
donali un altre nom, ixe l'has gastat dalt i pots ser confús.
@ -0,0 +72,4 @@
const response = await axios.post(`
${osrmConfig.url}/trip/v1/driving/${concatCoords}?source=first&destination=last&roundtrip=true
`);
const tolerance = osrmConfig.tolerance;
en tots els for declaren la variable
for (let waypoint of response.data.waypoints) {
@ -0,0 +73,4 @@
${osrmConfig.url}/trip/v1/driving/${concatCoords}?source=first&destination=last&roundtrip=true
`);
const tolerance = osrmConfig.tolerance;
for (waypoint of response.data.waypoints) {
conve posar açò?
No perque dins ja se maneja
@ -0,0 +28,4 @@
if (typeof options == 'object')
Object.assign(myOptions, options);
const ticketsIds = await models.Ticket.find({
const tickets
@ -0,0 +106,4 @@
// Realizamos el update en la base de datos
try {
await Promise.all(ticketAddress.map(async y => {
y que tinga un nom descriptiu
Ací no entenc que vols dir
Javi me ha dicho presencialmente que haga también los tests
Faltarien sols els test
@ -0,0 +13,4 @@
arg: 'firstAddressId',
type: 'number',
required: false
}],
Falta el parametre lastAddressId