First and last mile solutions enabled by intelligent infrastructure