updated api call to have coords