updated the api for places