The localization method of GECAM and simulation analysis