Skip to content

Ideas for space in this forsaken world around us. Very narcissistic in nature.

License

Notifications You must be signed in to change notification settings

danish-rehman/lidea

Repository files navigation

Lidea

Ideas for space in this forsaken world around us. Very narcissistic in nature.

Implementations

Includes an auto suggest integerated with osm maps. Convert the osm map to django models level.

Set up the postgresql for 'OSM'

  1. Install the postgresql-9.1:

    sudo apt-get install postgresql-9.1-postgis postgresql-contrib-9.1
    
  2. Create a database named osm:

    sudo -u postgres
    
  3. Run the commands for setting up the geometric function in postgresql:

    psql -h HOST -U USERNAME -d DATABASE -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
    psql -h HOST -U USERNAME -d DATABASE -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
    
  4. Install osm2pgsql.

  5. Run the command to transfer data from the osm file to postgresql database:

    http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/default.style
    Sample OSM_FILE: http://metro.teczno.com/#new-delhi
    
    osm2pgsql -l -p osm -d DATABASE -U USERNAE -H Host -W OSM_FILE
    
  6. Install postgresql_psycopg2:

    sudo apt-get install python-psycopg2
    

Set up the mysql for 'idea'

  1. Run the command for creating the mysql databases:

    python manage.py syncdb
    
  2. Fill the with content from the osm, by the command:

    python places/filler.py
    

Set up the redis for auto suggest

  1. Install the redis.

  2. Install the redis-py.

  3. Run the command to fill the redis with prefixes:

    python suggest/filler.py
    

Set up the crawler for app 'event'

  1. Install the webkit-server.
  2. Install the dryscrape.

About

Ideas for space in this forsaken world around us. Very narcissistic in nature.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published