[Lazarus] Tip - Getting geolocation with Free Pascal

silvioprog silvioprog at gmail.com
Fri Dec 30 22:11:14 CET 2011


Hello,

For a year, I have been developing some utilities for the desktop and
the web programming. The name of this project is LazSolutions and it
includes mailing, compression, encriptation, interpreter for
arithmetic expressions, demo builders with time limitations and
several other features.
Recently, I have implemented some routines for geolocation (using
MaxMind database). With only two functions, supplying a valid IP, we
can get information about the related country and the city.
Here, find The picture of the running demo: http://imagebin.org/191006
>From SVN, you can get your copy of it:
https://lazsolutions.googlecode.com/svn, open and run the demo
">lazsolutions\trunk\Demos\LSGeoIP".
I invite all to test and use this feature. What do you think if only
with two coordenates, we could create an image showing the map of the
place?
The demo does exactly it. By means of a supplied IP, we can call a
function and look for the map using Google APIs. It's a very good toy
to play!
Happy New Year,
Enjoy!

-- 
Silvio Clécio
====================================
Site - <silvioprog.com.br>
LazSolutions - <code.google.com/p/lazsolutions>
====================================




More information about the Lazarus mailing list