Get Geometric Location and Other Information

Tracks down your geometric coordinates and other information on the base of the IP address

You are now following this Submission

The function 'getGeoInformation' retrieves your geometric information (such as latitude and longitude), by automatically tracking down your computer's IP. Additionally you can input a different IP address.

For example

geo = getGeoInformation

returns:

IP: '151.58.40.49'
country: 'Italy'
region: 'Lazio'
city: 'Rome'
usZIPCode: []
usAreaCode: []
usMetroCode: []
lat: '41.9000'
long: '12.4833'
isp: 'IUnet'
organization: 'IUnet'

I included also some examples of functions that use geometric coordinates. For instance, you can determine the current weather (see Sagar Aiya) or the position of the sun (see Vincent Roy).

Cite As

Semin Ibisevic (2026). Get Geometric Location and Other Information (https://uk.mathworks.com/matlabcentral/fileexchange/36173-get-geometric-location-and-other-information), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Get HTML Table Data into MATLAB, Google Weather

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0