How to develop online store loactor


I need to develop a store locator, ON PAGE LOAD
which uses client ip address to get his current location, based on his current locaton , a predefined distance for now 10miles, a maps appears with, all the stores in that radius.

Custom search : user can enter area pincode or zip code to get nearest stores with distance details and address, both in map and list mode.