How can i get 3D world coordinates from 2D points

Then, do you mean that its imposible to get the localization of the camera using keypoints?