This project there are 3 different types of text files (actually text emails). In each email is a GPS position report for a moving object. The details contain ID number, GPS Latitude and Longitude (in decimal format) and the date and time.
Essentially this program (which will be a batch run file or PHP script to run every 10-15 seconds will open any new input GPS text files, read the data, convert the GPS Lat Long into a different format, change the date time to a Delphi TDateTime (Like OLE Date Time) and write the result in an output directory in a text file. the input file is then moves to a 'processed' folder. Any errors and the file is not processed but moves to an 'unprocesed' folder.
There will be a setting file that contains the path to
1. Input folder(s)
2. Output folder
3. Incremental number to use for output filename
The script needs to handle any errors and run every 10-15 seconds checking for new files and keep this process running continuously. the php will be installed on windows XP apache machien not visable on the internet.
More input formats may be added later on. The output format will always be the same. this is a comma delimited file (format provided later)
A fuller specification
Input format String (note the input format string is extracted out of an email (email is saved as text so there are email headers above the input string
Input format 1
Here is your message:
Lat: S 41 13' 36''
Long: E 174 52' 26''
Time: 02:47:18 UTC
Altitude: -4 m
Velocity: 0 km/h
Horiz: +/- 24 m
Vert: +/- 16 m
2. here is the input format 2
Content-Type: text/plain; charset=us-ascii
Date: Tue, 21 Feb 2012 11:00:51 -0500 (EST)
X-VPOP3-Spam: 15 - BadRecipient(5) ShortMessage(10)
X-VPOP3-Spam2: added bayes ham
Note i have included a part of the headers as the ID number of the sender is in the From: address
3. format 3 I am obtaining a copy of this i will post later but it is similar to above.
the output format is a text file containing the output string on the first line. an example is attached in the documents to this post.
As this is a first time project I am not sure if I can send a whole ot of samples once I have selected a freelancer? because I would need to send 10-20 samples for development.