How To Get GPS Location From OpenWrt

Hello Team,

I am trying to get the Longitude and Latitude of my routers from my software running on OpenWrt. What is the best way to do this?

Get a USB GPS receiver.

See also (for NTP, but also usefull to get location)

Thanks for the prompt response. Are there software alternatives instead of getting a new hardware?

How do you expect to gather GPS location data without GPS hardware?

technically speaking WiFi based geolocation is also possible, but a) you explicitly mentioned GPS and b) there is no free- or (router compatible) ready-made API for this (anymore), e.g. google only offers access to this with a paid API key subscription.

1 Like

I will checkout the google API you mentioned to see what I can find out. Thanks