Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sgluss/localCityServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localCityServer

Requires python 3.X, Flask, and Redis 3.2 or newer installed

The server component for the localCity app.

Once executed, it pulls the city information file from http://download.geonames.org/export/dump/cities1000.zip

This file is unzipped, then parsed into 3 Redis DBs: - redisGEO - allows indexing based on latLng, and very fast radius lookups - cityData - essential data for map rendering - cityExtraData - All the other data

The server responds to HTTP requests. It can currently send back city info within a radius of a point. It does this by getting the cityIds from the RedisGEO DB, then looks up those ids in the cityData DB.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages