burrittcollege / spencer

The official website for the city of Spencer, Tennessee
0 stars 0 forks source link

Business Directory #3

Open anoxic opened 5 years ago

anoxic commented 5 years ago

I would like to be able to compile the business directory from a "database", in part because manually formatting them all as html and in part because I want to be able to add "extended" information such as hours without a lot of hassle. I propose this process:

  1. Start with an initial list from other sources
  2. Process that into our "database"
  3. Use a script to format these into html, alphabetically and by category
  4. Over time, call/visit each business to make sure the information is correct, and to gather missing information like hours

The "database" would really be a bunch of files in a "businesses" folder, roughly in the format of an "ini", since it's easy to deal with (or even parse manually) from a number of languages. My favorite way to "parse" one would be running . business/$NAME.ini from a loop in sh.

name=
address=
category=
phone=
hours=

Once we've got all of the information together, I would also like to make sure the businesses are added to the various online maps services.

jaywilliams commented 5 years ago

Sounds like like a nice, simple solution.