function route pdf and map route implemented