added api for MAP prediction for locations