added example code for getting long and lat