@Taifun can you please guide me how to make use of TaifunWIFI.connectioninfo to calculate distance , For calculating distance we basically need signal strength and frequency ,idk how to implement that in app inventor .

# How to Calculate Distance from a WiFi network using Taifun Wifi Extension

**Taifun**#2

to calculate the distance from your device to where?

any more information, about what exactly you like to calculate and how that could be done?

any link to an example calculation?

Taifun

**Sourabh_Jain**#4

I want to calculate the distance from wifi router i.e. calculating distance from any wifi network available.

For that signal strength and frequency is used.

Formula used is this

distance = 10 ^ ((27.55 - (20 * log10(frequency)) + signalstrength)/20)

now i need frequency, ConnectionInfo in WiFi extension gives all the info i want only frequency.it will be really helpful if anyone can tell me how to do this.

(I just started using app inventor i don’t know much )

**Taifun**#5

what about extacting the frequency then from there?

see also tip 4 about how to use Do it here https://puravidaapps.com/learn.php

and for log10, see Tim’s answer here https://groups.google.com/d/msg/mitappinventortest/4Cuu4y-yY0I/DOJIxBuBEQAJ

Taifun

**Taifun**#7

so which information exactly do you get from the ConnectionInfo method? any example?

Taifun

**Sourabh_Jain**#10

i think you should read the thread.

…i need only frequency value so that i can use it in distance calculation but connectioninfo gives me all the info i.e. ssid ,bssid ,rssi ,net id and other info including frequency … problem is how to extract only frequency