Simple offline reverse geolocation using CSV files. Written javascript.
Database
https://download.geonames.org/export/dump/

Call the library with the desired latitude and longitude
reverseGeoLoc(40.10753, 22.48228, callback)

Download the source code from https://github.com/sdancer75/OffLine-ReverseGeolocation