I want to find the distance using wi-fi and plot the marker on map in iPhone.
So any idea or code i can get for that?
Use Apple's CoreLocation framework, it can give you the coordinates of your location. I can't link to it as I don't have access to the iPhone documentation.