Build mobile-location-tracking in rails

wanna build an application in rails which would track the location of a
mobile with its mobile number…
searched some thing like KISSMETRICS,CRASSYEGG,…how to use it any
idea?
or post some links contains examples on this…