Keywords

1 Introduction

The logistics that occur in a city are a major problem for urban centers affected by the growth and consolidation of economic and industrial activities with traditional and human activities. The latest majority of studies follow the traditional transport approach with the aim of explaining variables related to transport supply instead of analyzing real demand [1].

In 2017 [2], it is commented that the challenges that logistics and cargo transportation have faced are increasingly complicated due to the transitions in the economic structure, the design of cities, urbanization, the transportation system, and the external situations proper of logistical activities in urban areas.

In urban areas, we note that the increase in freight transport vehicles and current trends in their growth are responsible for a critical increase in traffic congestion, air pollution, noise, and other externalities. This is usually replicated in the main cities of the world. New technologies and organizational strategies allow us to more efficiently manage the delivery of the last mile in urban areas [3].

Another key aspect is delivering products on time. In this aspect is where the logistics specialists have difficulties, since the merchandise must be delivered in a profitable and sustainable way for the organization. Existing literature that talks about last mile delivery manages the efficient use of resources, operations, distances, and time [4].

Despite the fact that logistics is an important generator of employment, the negative aspects that arise in cargo transportation have increased. These situations are pollution, congestion, and inefficient use of resources. These inefficiencies can cancel long-term benefits [2].

The awareness of public authorities related to urban logistics has also been increasing, and in this way, the level of public regularization can be increased. In some cases, it is through parking restrictions, limited access to certain areas, time windows, and truck restrictions in cities [5]. When authorities propose short-term regulations, such measures can increase other costs or transfer costs to other geographic areas [6].

According to [7], urban logistics is centered in three elements: (1) vehicles and flow of goods, (2) characteristics of the goods, and (3) focus of the investigation. Within the first element, vehicles and flows of goods can be analyzed independently or jointly.

The 28% of the total transportation costs of a product are attributed to the final section of the supply network [8]. Attention to the “last mile problem” leans or tends towards the best allocation of resources so that the level of service is maximized and costs are minimal in the final segment of transport [9].

Double parking is a bad practice that is commonly used by drivers to save time in search of “available bay” and unload their products to the delivery’s client. However, this leads factors like road congestion, noise, insecurity, and air pollution from other vehicles blocked by the transport in question to increase. For local government zones, there are bay zones available for parking. Nonetheless, if the availability of these spaces is insufficient, drivers park in prohibited zones in an attempt to improve their productivity [10].

Due to this issue, authorities from big locations are forced to increase the number of available bays, in addition to regulating its use to free them up for as long time as possible [11].

The logistics problem of the last mile has increased in importance. The information that was found is described below.

2 Theorical Framework

Urbanization generates big populations that grow constantly, bringing forth mobility, pollution, and residue management problems. There are new information and communication technologies that unite to form solutions for smart cities [12]. Some concepts will now be mentioned.

2.1 The Last Mile

The delivery of the last mile is considered one of the most expensive and at the same time least efficient sections of the supply chain. Designing the last mile system efficiently is very important to serve customers efficiently and economically [13].

2.2 Smart City

It is a concept of utmost importance for the scientific community [14], since planning the transformation of cities of a sustainable type is a task of vital importance in the development of cities [15]. The architecture of smart cities can be structured in four layers: application, middleware, network, and detection [16]. The evolution of a low-carbon energy system is a vital part of achieving sustainable development, where transport is an extremely important link for long-term carbon reduction [17].

2.3 VRP

VRP, or the vehicle routing problem, is a variation of the extensively investigated traveling salesman problem. The feature of fluctuating travel duration enables VRP to account for the current conditions such as urban congestion, where the traveling speed is not constant due to variation in traffic density [18].

3 State-of-the-Art Problem Statement

3.1 Free Slots Algorithmic Forecast Design

There are many factors to consider in order to find parking spots in cities. It is subject to a low percentage of variability which depends on local regulations (subject to a slow rate of variability). (This variability is due to local regulations.) Other conditions that need to be considered are important events, day of week (normal or holiday), weather conditions, time of year, and unexpected situations like floods; the number of vehicles varies. As a consequence, there is a random distribution in the free parking spaces (the availability of parking spots). Therefore, the available parking places are considered in an algorithm as a stochastic process, where the number of places is a random variable, which is also a function of the travel time with the variables to be defined [19].

An example was applied in Zaragoza, Spain. This city has a population of 664,938 inhabitants [20]; thus, we can generalize the results to any medium-sized city. The parking data are among those selected on the platform [21]. Four-month data were used for training or analysis, while data from 6 weeks were used to verify the forecast algorithm. Verification is explained in subsection B in this section. In this way, we analyzed parking data from September 2017 to January 2018 (Fig. 1).

Fig. 1
figure 1

Parking patterns for working days in parking lot #1 in Zaragoza

The following factors were considered to classify the different patterns:

  • Working days versus weekends (Saturdays and Sundays) and holidays.

  • Days with adverse weather (rain, wind, etc.).

  • As a data mining tool for the analysis of historical data, the IBM SPSS Modeler application was used. As an example of the analysis, we present the results obtained on working days and compared them with the ones obtained on weekends and holidays. The Christmas period was excluded (Fig. 2).

Fig. 2
figure 2

Parking patterns for weekends and holidays in parking lot #1 in Zaragoza

We considered the mean percentage error (MPE) as a measure of the accuracy of our forecast algorithm. MPE is defined as shown in Eq. (1), where at is the actual value, ft is the forecast, and n is the number of times the variable has been forecasted [22].

$$ \mathrm{MPE}=\frac{100\%}{n}\sum \limits_{t=1}^n\frac{a_t-{f}_t}{a_t} $$
(1)

The results are shown in Table 1.

Table 1 Forecast algorithm results

An optimization model for parking slot rent [23] comments that local governments stimulate sharing parking spots [24]. The proposal is a mathematical optimization method for establishing where to put reserved slots at disposal of the users. The contributions are:

  • An overview of the regulations and policies of a set of major cities where carsharing has been introduced, particularly highlighting the importance of parking policies in making carsharing a success and discussing the Italian case mining.

  • A mathematical optimization model to represent the decision problem of the council of a municipality that must choose which parking slots to rent to carsharing companies in a city. A linear programming problem, which includes Boolean variables to represent the possibility of renting or not a cluster of parking slots [24]. The following key performance indicators are managed:

    • If the slot is rented or not (not rented to leave space for crashed vehicles or crashing services)

    • Maximum number of rentable slots, that does not exceed the number of available slots

    • Function objective

    An example of the application of this model was in Rome, Italy, in 2019 (Fig. 3).

Fig. 3
figure 3

Parking patterns for weekends and holidays in parking lot #1 in Zaragoza

3.2 ACO: Ant Colony Optimization

It is the most common technique for merchandise delivery; however, it has the characteristic of assuming that customers will be at home or receive the product in their warehouses in a pre-established period of time, lacking flexibility. It is possible that the client is not found or cannot receive the product in his warehouse due to an emergency or the transport exceeds the pre-established time range due to traffic or some adverse situation. In this case, a second delivery would have to be scheduled which is inefficient and time consuming. To counteract the problem of inflexibility, the shared reception box delivery mode is used in cities with high population densities. This system consists of managing an intelligent reception box that is installed in a public area of the communities or at the entrance of a building or industrial park. When the products are delivered, a text message is automatically sent to the corresponding client, which contains a unique code with which the box can be opened and thus can be collected in the client’s available time. Ant colony optimization, or ACO, helps build an effective and efficient delivery route. This algorithm simulates the feeding behavior of the ant colony by releasing pheromones in its pathways, which can provide heuristic information for other ants. Hormone density increases if more ants walk the same path, building the best path to the food source [25].

Attended Home Delivery (AHD). The inherent feature of AHD is that customers have to be at home during a prearranged time period and the deliveries have to be achieved within that time period. This mode is required under some circumstances; for example, the purchased goods have to be examined due to its high value or need to be signed for delivery confirmation. However, such a delivery mode lacks flexibility. Customers may not be available when the delivery arrives due to some emergency or the deliveries could not arrive due to the traffic issue. In that case, the courier may have to conduct a second delivery, which has low efficiency and is time consuming.

Shared Reception Box (SRB). When the courier delivers the purchased goods to SRB, SRB can automatically send a text message to the corresponding customer, which contains a one-off code for opening a corresponding box. After that, the corresponding customer can pick up the goods from SRB at their available time. The application of SRB can release the time constraints for both customers and couriers obviously. Moreover, the application of SRB can protect customers’ privacy. Instead of using home address when purchasing online, customers can use the SRB as the consignment address. More and more e-commerce enterprises deploy SRBs in large cities so as to facilitate their business [30].

Figure 4 shows a map with the location of the 20 clients to visit (light blue diamonds). In the center is the warehouse or starting point (red square) of the delivery vehicle. The green triangles represent the savings zone. The colored dates are the seven routes that the method throws. The optimal solution purchased with AHD mode consists of seven routes, due to limitations of vehicle capacity and customer time windows [13].

Fig. 4
figure 4

Ant colony

In recent years, a boom in artificial intelligence applications and services has been observed, ranging from the management of a personal assistant to complex surveillance systems that use audio and video. With the spread of the Internet of Things, millions of devices connect to the Internet, generating millions of bytes of information on the network [13].

Another option is shared parking applications in high congestion cities, such as Beijing, Shanghai, and Hangzhou, in China. It is also possible to prepare instructions for shared parking, for example, in the Standing Committee of the Beijing People’s Congress (2017) where the Regulation of Parking Management for Motor Vehicles was disclosed to the public, where it is recommended to open spaces to the public assigned that are owned by government agencies, companies, institutions, and private users with the shared pattern supported by applications, for example, Airparking, solving small-scale parking problems [26].

The literature also describes vehicle routing problem (VRP) options. A taboo algorithm is described to solve traffic and have a specific waiting time for clients. He also talks about joint trips to lower costs. A collective delivery method is managed in the last mile assisted by an application where the person closest to the customer makes the delivery. With this, the payment to the person carrying out the delivery to the end customer is the minimum possible. The mathematical model and pseudocode to define delivery routes is also presented [18].

3.3 Policies in the Logistics Sector

The implementation of policies in the logistics sector could generate unexpected side effects that sometimes undermine the performance of key economic activities of logistics operators, especially in areas such as transport service, sustainability of operations, etc. Especially for the latter, there is a lack of understanding of how sustainability performs if retail logistics solutions are affected by policy implementation and, in turn, by operator response measures.

A sustainability analysis of proven and innovative retail logistics solutions is presented that addresses the research question: “What are the effects of retail logistics solutions on overall cost and sustainability performance?” The analysis is carried out in a framework based on indicators and on the key components of sustainability (economy, environment, society), enriched by the addition of the transport component. The framework evaluates three different scenarios together with a business such as Urban Consolidation Center, Anchorage, and Shared Bus [27].

Completing urban cargo deliveries is increasingly challenging in congested urban areas, especially when delivery trucks are required to meet deadlines. Depending on the characteristics of the route, electric assistance cargo bikes can serve as an economically viable alternative to repair trucks. The purpose of this document is to compare delivery route cost offsets between box delivery trucks and electric assistance cargo bikes that have the same route and delivery characteristics and to explore the question, under what conditions do they work electric assistance cargo bikes at a lower cost than typical delivery trucks? The independent variables, constant variables, and assumptions used for the cost function comparison model are collected through data collection and a review of the literature. A delivery route was detected in Seattle and considered as a base case. The same route was modeled using electric assistance cargo bikes. Four separate delivery situations were modeled to assess how the following independent route characteristics would affect the cost of the delivery route: distance between a distribution center and a neighborhood, number of stops, distance between each stop, and number of packages per stop. The analysis shows that three of the four modeled route characteristics determined the cost offsets between repair trucks and electric assistance cargo bikes. Electric assistance cargo bikes are more cost-effective than delivery trucks for affected deliveries to the distribution center (less than 2 miles for the observed delivery route with 50 packages per stop and less than 6 miles for the hypothetical delivery route with 10 packages per stop) and in which there is a high density of residential units and low volumes of delivery per stop [28].

3.4 Forward and Reverse Parking Lot

Another aspect to consider to save time is parking methods: straight ahead or reverse. Reverse parking is considered a safer way to park in the cargo shipment, as it tries to make the environment safer when the driver leaves the parking space and can see their surroundings clearly. In a study by the National Highway Traffic Safety Administration (NHTSA), on average, 76% of drivers park straight ahead, the way many of us are used to. This situation makes sense to some extent. For example, in a double-row parallel parking lot, people have a high probability of not parking in reverse when the opposite parking space is already occupied; in a single-row parking lot, people are less willing to reverse parking because it would take more time and reduce speed of the vehicles behind them as seen in Fig. 5 [29].

Fig. 5
figure 5

Types of oriented parking lot

3.5 Predicting Bay Available

In this part, a smart system that is capable of recognizing its surroundings, learn, and make decisions. It can predict the vacancy of parking slots in real time from the origin to the delivery area and vice versa. First, it predicts available slots in real time and notifies the user. The prediction methods used were the following: linear regression, gradient boosting, random forest, and neural networks. These methods analyzed the history of occupied spaces to predict their future availability. The experiment took place with historical data from 2017 from the city of Melbourne where 4300 ground sensors were installed in 303 segments of 35 areas of the central business district. The different techniques gave the following graphics of Fig. 6 [10].

Fig. 6
figure 6

Comparative graph between the predictions obtained by some techniques and the real value

When analyzing the error metrics, the method with the best results (lowest MSE) was random forest with 1.69%, followed by regression tree with 2.10%. In the third place was the artificial neural network that in addition had a high computational time of 6 hours against the 12 minutes maximum that other methods took, getting 2.62%. In the last place was stacking with 5.41%. For most of these models, predictions are more exact when available spaces are fewer or equal to 50. The performance of this case is conditioned to the drivers’ respect of their reservation and times of arrival. With this, if required, a penalty to drivers that do not comply with their schedule is suggested so as to not risk the system’s function [10].

4 Conclusions

Freight parking is a serious problem in big cities. As cities grow, the merchandise transportation problem increases with them. So, finding effective methodologies that help us increase the number of available slots for merchandise delivery in the last mile is of utmost importance, and just like that, we could contribute to the reduction of the time a driver looks for a slot. With it, we contribute to the reduction of gasoline expenses, noise, and traffic.

Currently, we want to solve a last mile problem in a central area of San Nicolás de los Garza, Nuevo León, Mexico, where various businesses converge along with a central plaza. The problem is that deliveries are made by suppliers at the same time, who struggle to find a place where they can park their delivery vehicles. Delivery vehicles usually waste time looking for a parking slot, or worse: they will be parked in prohibited places or in places that block the streets. This review is the beginning to put forth a solution to this situation. We hope to have the results approximately in a year and a half.