Suppose we have two `beacons` placed in both sides of the road. We know their `latitude` and `longitude` where they are positioned (we treat them as a location). We also know the `distance` in meters between these two `beacons` (measered using Haversine Formula). Our device is moving between(inside range of these beacons) these two points.Is there out any function that will help us calculate our current position based on the distance between two beacons or based on the distance from device to a single beacon?
How can i find the location of the device based on these data i have, or is there any thing that will be useful to achieve what i want?

*SHORTLY: I want to know where the user is located between two `BEACONS` without using GPS System but the data i have from the beacon (in this case: Exact Beacons locations, exact distance from user to the beacon and the exact distance between two beacons)*

As an illustration:
(`Filled Black dots` are `BEACONS` with an imaginary `Range`, `Red dots` are some `user unknown positions` and `Green Lines` are the `Known Distances` ; we also know the `latitude and longitude` of Black Dots) Based on these data i want to find the position of user (Single Red Dot)

![enter image description here](https://i.stack.imgur.com/PEuMJ.png)

*note:* I checked out this [question](https://stackoverflow.com/questions/7676845/how-to-find-a-geographic-point-between-two-other-points) however i didnt understand why the location is returned as an `int` and why time `t` is included there.