Search code examples
geolocationgeospatial

Is it possible to find the distance between two routers?


I was thinking about making a fun project that would tell me where I am throughout my house. My idea was to put two routers in different spots of the house at the same height and then send ping requests or something and check the latency, from that it should be able to triangulate where I am in the house.

I know this would only really work if I was on the same level as the routers, but I'm wondering if this is a reliable way to actually do it. Has anyone else tried to do something like this before, or is there a better or cheaper way to accomplish finding a position of a computer?


Solution

  • I don't think ping time would be a reliable indicator of distance. If the routers are wireless there could be other factors that change the latency between them. Maybe during certain times of day there is more electromagnetic interference in the area which would affect the latency.

    As for determining distance through the internet, this also would be impossible to determine through latency as you are passing through many routers which are not under your control. Some could have a substantial load on them which would cause more latency and increase the latency (or decrease) skewing the proportions.

    I don't think there really is a way to find the position of a router in 3d space.