If you are interested in this tool, you may also be interested in Photographer's Field Tools. It has a distance ruler using map and many other cool features.
A screen ruler. It can set the origin to the phone edge or the screen edge. It also supports sliding scale for length that is several times longer than the phone length. Supports both phones and tablets. It has self-calibration feature. The more people using it, the more accurate the scale will be.
And the best of all, absolutely free, there is no ads to crowd the already busy screen space.
Note: this app has no camera related feature. Advanced Ruler Pro has camera rulers.
1. Internet access permission is for crash report