File Exchange

image thumbnail

Get Geometric Location and Other Information

version 1.0.0.0 (83 KB) by Semin Ibisevic
Tracks down your geometric coordinates and other information on the base of the IP address

4 Downloads

Updated 13 Apr 2012

View License

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 (2020). Get Geometric Location and Other Information (https://www.mathworks.com/matlabcentral/fileexchange/36173-get-geometric-location-and-other-information), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Muhendisleksi

hi, error occurs;

>> Examples
Index exceeds matrix dimensions.

Error in getTableFromWeb>getHTMLTable (line 96)
r = r{1};

Error in getTableFromWeb (line 19)
varargout{1} = getHTMLTable(varargin{1});

Error in getGeoInformation (line 43)
myTableData = getTableFromWeb(5);

Error in Examples (line 13)
geo = getGeoInformation;

Chris Williams

I cannot get this working. I am trying to enter an IP address to find the geolocation, but the IP is not entered into the field at MaxMind. I would love to have this working, it would be very useful!

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

MATLAB - Get Geometric Location and Other Information/

MATLAB - Get Geometric Location and Other Information/Functions that use Geo Location/