Monday, January 7, 2013

Work Plan


Finding Latitude-Longitude: iTouch Maps

Reverse Geocoding: Reverse Geocoding Website

File Locations for Google Geocoding Module:

File Set 1:  
Path:  C:\Perl\html\site\lib\Geo\Coder\
-- Google.html
-- \Google\V2.html
-- \Google\V3.html

File Set 2:
Path: C:\Perl\site\lib\Geo\Coder\
-- Google.pm
-- \Google\V2.pm
-- \Google\V3.pm


http://www.go-for-me.com/test/AuthenticatePassword.pl?user=curtis.sumpter@gmail.com&pw=Pauline77&role=courier

Notes:

a.  Creating Random Numbers in Perl.  Coordinates for Upper East Side:
-- Lat and Lng
-- Right Top Corner:  40.783224, -73.944726
-- Left Top Corner: 40.787871, -73.955691
-- Bottom Right Corner: 40.760165, -73.961506
-- Bottom Left Corner:  40.764228, -73.973093

Coordinates for Upper West Side:
-- Lat and Lng
-- Right Top Corner: 40.791672, -73.974981
-- Left Top Corner: 40.796058, -73.974981
-- Bottom Right Corner: 40.768437, -73.981569
-- Bottom Left Corner: 40.772792, -73.993478

Midtown:
-- Top Left Corner: 40.771608,-73.990431
-- Bottom Right Corner: 40.748886,-73.970003
-- Top Right Corner:40.759744,-73.962064
-- Bottom Left:  40.760817,-73.998327 


Major Bounds:
-- Top Right: 40.783224, -73.944726
-- Top Left: 40.796058, -73.974981
-- Bottom Right: 40.748886,-73.970003
-- Bottom Left: 40.760817,-73.998327


Creating Bounded Random Numbers in Perl: http://perlmeme.org/howtos/perlfunc/rand_function.html

1.  Create Orders
 (tblOrderInformation)


-- I need customer ID (customerID) and customer Payment ID

(customerPaymentID) -- just grab one customer Payment ID from 
tblcustomerpayment

-- proposed drop off time (customerProposedDropOffTime)

-- proposed pick up time (customerProposedPickUpTime)
-- item description (itemDescription - Test File Items)
-- pick up special information (pickUpSpecialInformation)
-- possessor name (possessorName - Test File Names)
-- proposed payment amount (proposedPaymentAmount)
-- time order input into db (timeOrderInputIntoDB)
-- time order placed (timeOrderPlaced)

Goals: 1/17/2013

2.  Create Origin Address (tblOriginAddress) PERL Object

-- get the latest orderID by getting the 

latest time order placed into db from tblOrderInformation
-- Create random latitude and longitude.
-- Reverse geocode latitude and longitude to specific streets
-- Insert that originAddress1, originAddress2, originZipCode,
savedAddressIndicator = False, savedAddressName = ''
-- chill.

Completed: 1/17/2013 @ 1:08 am.

3.  Create Destination Address (tblDestinationAddress) PERL Object

-- use order ID

-- Create random latitude and longitude.
-- Reverse geocode latitude and longitude to specific streets
-- Insert that destinationAddress1, destinationAddress2, 
destinationZipCode, savedAddressIndicator = False, savedAddressName = ''
-- chill.

Completed: 1/18/2013 @ 12:57 am.

Tomorrow: 
Add an error catching algo in the code where if there is no zip code empty it and start over.
Build complete inserting job algorithm.  

Change the object to take the argument from a query string
Build out random getProposedPaymentAmount (Range 5 - 25)
Build out random getItemSize (lightweight, mediumweight, heavyweight)

Add the necessary columns to the DB

Add the necessary columns to the Production DB

Completed: 1/22/2013 @ 10:08 pm.

Migrate all the necessary scripts to GFM Server

Completed: 1/24/2013 @ 9:55 pm.

4.  Plan jobs upload algorithm
-- Plan:
-- Match the two arrays (destination and origin)
-- Find out which locations are closest to the user's location and take those 10 jobs.  
-- Find out which are the best paying and take those 5 jobs.  
-- Increment the job sent for all five of these order ids by +1.
-- Build JSON Object for those five jobs.
-- Send the JSON back to the screen.

Completed: 2/12/2013 @ 11:15 am.

-- Test in browser

Completed: 2/14/2013 @ 10:00 pm.

Test Information:
cid=25
wl=lightWeight
lat=40.780034
lng=-73.949098

http://www.go-for-me.com/test/testJobsObject.pl?cid=25&wl=lightWeight&lat=40.780034&long=-73.949098




5. Build Custom UITableView
-- Jobs:  Tomorrow: 2/26/2013: Step 1:  Get the data output working correctly.
-- Thursday: 2/27/2013: Step 2:  Get the display to work correctly.

http://stackoverflow.com/questions/13548764/nsmutablearray-not-showing-in-uitableview
http://stackoverflow.com/questions/14317098/nsmutablearray-properties-to-populate-uitableview
http://stackoverflow.com/questions/5977033/uitableview-with-nsmutablearray

-- Load JSON object into UITableView
-- On UITableView Load the orders.
-- On touch a map of the pickup point and the drop off point. 
-- On the bottom of the screen confirm or deny 
-- Build an automatic three minute countdown.
-- Build a auto refresh function at the three minute countdown's end.

http://www.go-for-me.com/test/testSelectJob.pl?cid=25&jid=139
-- Test URL

-- Build jobSelected.pm function. (Tomorrow)
     -- Mark that job as taken.
     -- Mark that courier as taken.

-- Build config file to remove passwords and server names from PERL files.

Question Marks:

1.  Address the weight issue.

2.  Address the job lock questions.

3.  Give a two-minute countdown for jobs.  Send out jobs for
five people at most.  Then when you refresh get new jobs.
--  Build a time ticker that counts down in the iPhone App
before jobs refresh.
--  Build automatically unlock all jobs and refresh

Update:  Work List Complete!  3/9/2012

Screen Sliding Functionality:

http://stackoverflow.com/questions/4741880/slide-a-div-offscreen-using-jquery

-- Crazy Cool.

No comments:

Post a Comment