Routing for pin while passing location JSON the $stateParams