created /api/locate route for get