db2000 Get Location from IP
This example allows to detect the coordinates of a location from an
IP address and displays the map using the
Google Static Maps API. The solution uses the
JavaSQLite wrapper to access the database that associates each location with a
IP range. The database is not completely updated and it is likely that some locations are found for approximation only... So, anyone who harbors updates to these data is welcome! Given the size of the database the whole project can be downloaded using the link provided in the file attached below...
Questo esempio permette di rilevare le coordinate geografiche di una località da un indirizzo
IP e visualizza la mappa tramite le
Google Static Maps API. La soluzione fa uso del
JavaSQLite wrapper per accedere al database che associa le singole località ad una serie di
IP. Il database non è del tutto aggiornato ed è probabile che alcune località risultino trovate solo per approssimazione... Quindi, chiunque porterà aggiornamenti a questi dati è il benvenuto! Viste le dimensioni del database l'intero progetto può essere scaricato utilizzando il link presente nel file allegato qui sotto...