Archive

Posts Tagged ‘distance’

Distance Learning Distributed System Using Socket Programmin

November 23rd, 2011 Comments off

Write a distance learning distributed system that has different users such as instructors,students and administrators. You can use either a socket-based API (such as Java sockets) and/or RPC-based API (such as Sun RPC, Java RMI) or JSP .

Therecan be basically three types of users:
Student
Instructor
Administrator

Eachuser should have different features and applications. Users along with their compulsory features are as follows:

Student:
Create an account
Add a course

Php Search By Postcode Location Distance Integration.

September 7th, 2011 Comments off

I have a reverse bidding website very similar to this scriptlance site. But because we are selling physical services we need to integrate a feature whereby visitors can search for local jobs.

I want a search feature that will allow businesses to enter a post code and then it will bring up jobs within the specified area. eg 10 miles/50 miles/nation wide.

I already have the post code database imported to a table in my database.

If you go to the website auctions.compsmart.co.uk you will see the search bar “find work” on the home page. Ideally I want a second field in the search box that will allow to search by postcode.

This is the job criteria.
1. Add a postcode field to the customer sign up form to store this with their other details such as name/town etc. (very simple)
2. A table named ‘projects’ contains all the job request details. Eg. Window frame size colour etc. When a customer adds a job request we need some hidden fields containing their postcode and location inserting into the project table. This will allow us to search for projects by postcode/location.
3. We then need the search by location feature adding to the search bar on the home page.
4. We should be able to filter results based on distance from a specified postcode or town.
5. Search results table should have a new column headed “distance” and should be sortable.

Astar Pathfinding With Alternate Heuristics

June 17th, 2011 Comments off

Create the Project

Extract the project folders and files from the archive Pathfinder.zip into your project directory. You should be able to open the solution file (.sln) to start VisualStudio.

Run the program and examine the output. it should show one red near the top of the screen and one green at one near the bottom

Modify the Application

There are several changes that need to be made, including writing event handling code for the new menu items, creating new heuristic functionality, keeping track of and displaying) the number of nodes visited during an AStar search, and modifying the window size to accomodate the new output.

Create New Heuristic Functionality

In the AStartHeuristicPolicies.h file,

add an enumerated type for the new heuristic types just below the last #include statement:
enum HeuristicType {Euclid, DistanceSquared, Manhattan};
add an external declaration for a new global variable to store the current heuristic type:
extern HeuristicType g_heuristicType;
modify the method Heuristic_Euclid::Calculate() so that it will caclulate either a Euclidean distance, a distance squared or a Manhattan distance based on the value of the global variable g_heuristicType
you may also want to change the name of the Heuristic_Euclid class to just Heuristic since it may calculate other non-Euclidean distances
New Menu Item Event Handling Code

In the maincpp file,

add a declaration for a new global variable to store the current heuristic type:
HeuristicType g_heuristicType = Euclid;
in the WindowProc function in the code for the WM_CREATE message, add a statement to initialize the Euclidean Distance menu item to checked:
ChangeMenuState(hwnd, ID_HEURISTIC_EUCLIDEANDISTANCE, MFS_CHECKED);
in the WindowProc function after the code for IDM_VIEW_TILES, add a new case with event handling code for the Euclidean Distance menu item:
case ID_HEURISTIC_EUCLIDEANDISTANCE:
// update the menu by checking this option and unchecking the others
ChangeMenuState(hwnd, ID_HEURISTIC_EUCLIDEANDISTANCE, MFS_CHECKED);
ChangeMenuState(hwnd, ID_HEURISTIC_DISTANCESQUARED, MFS_UNCHECKED);
ChangeMenuState(hwnd, ID_HEURISTIC_MANHATTAN, MFS_UNCHECKED);
g_heuristicType = Euclid;

g_Pathfinder->CreatePathAStar();
CurrentSearchButton = ID_BUTTON_ASTAR;

break;

add two more case statements similar to the previous one for the DistanceSquared and Manhattan Distance menu items (the exact naming for the resource identifiers ID_… for these can be found in the resource.h file)

Keep Track of Number of Nodes Visited

in the file GraphAlgorithms.h, in the Graph_SearchAStar class add a data member to keep count of the number of nodes visited:
int m_NumNodesVisited;
in the method Graph_SearchAStar::Search(), initialize the m_NumNodesVisited to zero and increment this variable everytime the PriorityQueue’s insert method is called
in the PathFinder class add a data member to keep count of the number of nodes visited:
int m_NumNodesVisited;
in the PathFinder::CreatePathAStar method, store the number of nodes visited from the Graph_SearchAStar class after it has be constructed
m_NumNodesVisited = AStar.m_NumNodesVisited;
in the PathFinder::Render method, change the code that displays the search time to add code that will also output the number of nodes visited:
if (m_dTimeTaken)
{
//draw time taken to complete algorithm
string time = ttos(m_dTimeTaken, 8);
string s = “Time Elapsed for ” + GetNameOfCurrentSearchAlgorithm() + ” is ” + time;
// add the visited node count to the output – ceh
s += ” nodes searched = ” + ttos(m_NumNodesVisited) + ” “;

gdi->TextAtPos(1,m_icyClient + 3,s);
}

Modify the Window Size

In the file Constants.h, you can modify the width and height of the client window to accomodate the additional output.

Run the Application

Rebuild and Run the modified application.

Create a Spreadsheet for the Results

Run the program. Record the AStar results for each heuristic in an Excel table like this:

Heuristic Cost Elapsed Time Number of Nodes Visited
Euclidean Distance
Distance Squared
Manhattan Distance

Create a bar chart of the results in Excel.
Add a comment to the cell with the lowest time, briefly explaining why that heuristic is quicker than the others.
Include this chart in the archive you submit.

Google Maps (distance From Route)

June 2nd, 2011 Comments off

I’m developing a Google maps based site using the API v3. My Google Maps experience in rather short and I have hit a problem. I have a database which is populated with several thousand markers. When the user enters a direction request, I wish to display only markers which are within

Small Css Project. Increase Distance Between Blocks.

May 23rd, 2011 Comments off

Hello

please visit: http://www.r-tacab-ineth-ub.com/ (remove -)

You will see list of products under “Our Cabinetry Products”. The gap between columns is about 25px, however, there is no gap between rows, we need to make it 25px. That’s it. Just make it 25 px.

Please note: You will not have access to ftp or site admin, you will need to do all work on your end. At the project completion just send us updated code and style file.

We are looking to get it done asap.

Travel Distance Between Coor 2

February 23rd, 2010 Comments off

Hi,

I need travel(road) distances between 900k coordinate pairs.

Each pair has a starting location latitude&longitude and a destination location latitude&longitude. I need the road distance between those to pairs.

By road distance I mean the distance which you would need to go by car. I’m not interested in the bird fly distance (I already have bird fly distances.)

Google maps can tell me distance between each pair but querying 900k pairs manually would not be feasible.

I’m guessing you will need access to google maps api to complete this project. And you will need to be able to automate this query.

SAMPLE FILE IS ATTACHED.

IN YOUR BID OR MESSAGE TO ME PLEASE TELL ME WHY YOU BELIEVE YOU CAN COMPLETE THIS PROJECT. DO NOT BID ON IT IF YOU ARE NOT SURE YOU CAN DO THIS.

Distances Between Postcodes

February 23rd, 2010 Comments off

We have a website that allows homeowners to post a job that they need done and tradesmen to bid for these jobs. We need a PHP script that depending on the distance selected by the tradesmen when registering will work out the jobs in the tradesman’s area and display them on a web page when the tradesman logs in. The maximum distance that a tradesman is prepared to travel to from their home address is select during registration and is stored in a table in a SQL database when registration is complete. Therefore, the script should look into the projects table in the database and determine from the distance in the user table for the tradesman concerned which jobs are in his area and then these jobs are displayed in a table. Also, when a new job is added an e-mail should automatically be sent to tradesmen within that area. The script should also work out the distances from the tradesman’s home address to all jobs in the system that have not been completed.

Travel Distance Between Coords

February 20th, 2010 Comments off

Hi,

I need travel(road) distances between 900k coordinate pairs.

Each pair has a starting location latitude&longitude and a destination location latitude&longitude. I need the road distance between those to pairs.

By road distance I mean the distance which you would need to go by car. I’m not interested in the bird fly distance (I already have bird fly distances.)

Google maps can tell me distance between each pair but querying 900k pairs manually would not be feasible.

I’m guessing you will need access to google maps api to complete this project. And you will need to be able to automate this query.

SAMPLE FILE IS ATTACHED.

IN YOUR BID OR MESSAGE TO ME PLEASE TELL ME WHY YOU BELIEVE YOU CAN COMPLETE THIS PROJECT. DO NOT BID ON IT IF YOU ARE NOT SURE YOU CAN DO THIS.

Looking For Distance Trainers

February 19th, 2010 Comments off

Hello,

We are currently looking for distance trainers who want to sell their knowledge (distance learning, tutorials, webinars) in any specialty areas.
P

Emarange

February 17th, 2010 Comments off

Firstly main change is I want to monitor live price bid instead of open price bid within distance. Also have an options to sell even if price went above 100MA but 10EMA steel under100MA , for this I need distance options above 100MA for sell and under 100MA for buy. Ok to sum up : I need 2 version of EA.

1EA , we monitor live price bid instead open price bid within distance , nothing else to change.

2EA we monitor live price bid instead open price bid within distance , but above 100MA for sell and under 100MA for buy. Important 10EMA should be under 100 for sell and above 100MA for buy

Categories: Programming Tags: , , , , , ,

Calc Distances With Google Api

February 8th, 2010 Comments off

Google Maps API expert needed to fix minor script on the site which calculates distances between various businesses. Currently script on the site calculates distances in “straight line”, instead we need to have the script calculate as “driving distances” as described in following blog article:
http://briancray.com/2009/06/23/calculate-driving-distance-google-maps-api/

Our site’s url is (if blank page opens then please copy & paste entire link below into your browser):
“http://www.econcierges.com/DEV/FRAMEWORK/biz/profile?userid=62&handler=biz&biz=French%20Laundry”

Here is an example of error in the above link, for “Hess Collection Winery” (listed under the google map on the right hand side of the page), correct distance should be 11.90 miles which can be accurately calculated from the following link (input Address 1 as: 6640 Washington St, Yountville, CA 94599, input Address 2 as: 4411 Redwood Rd, Napa, CA 94558): http://briancray.com/tests/drivingdistance/index.html

Driving Distance: 11.901743816113894 miles (or 19.154 kilometers)

Please see attached pdf as a reference.

You must be able to fix the script and have it fully working.

Geocoding Expert Needed To Fix

February 5th, 2010 Comments off

Geocoding/Google Maps API expert needed to fix minor script on the site which calculates driving distances between various businesses. Currently script on the site calculates distances in “straight line”, however we need to have them calculated as “driving distances” as described in following link:
http://briancray.com/2009/06/23/calculate-driving-distance-google-maps-api/

Our site’s url is:
http://econcierges.com/DEV/FRAMEWORK/biz/profile?userid=62&handler=biz&biz=Domaine%20Chandon

For example, for “Hess Collection Winery” (listed under the google map on the right hand side), correct distance should be 11.90 miles which can be accurately calculated from the following link: http://briancray.com/tests/drivingdistance/index.html

Address 1: 1 California Dr, Yountville, CA 94558
Address 2: 4411 Redwood Rd, Napa, CA 94558
Driving Distance: 11.901743816113894 miles (or 19.154 kilometers)

You must fix the script and install it on our server to have it fully working.

Distance Learning On-line

February 1st, 2010 Comments off

I like to create website to Distance Learning ,,is like University distance education ,Support radio
A capacity for 5000 students
is like every room capacity for 100 students
Through talks audio, visual, written

admin if the room can give the ability to voice conversations as he wished, for a number of students is limited

Colourobject Tracking In Video

November 26th, 2009 Comments off

We require an Experienced Programmer to work on a Video Tracking and analysis project who has previous experience in Video capture intelligence such as, Facial Capture, Security and so on.

The project requires the candidate to provide programmatic intelligence to track the colours and the track background.

We are analysing races that have moving objects on a moving background. The objects change shape but can have a clear and defined colour. The background is generally the same. The background has some referrence points that will be most likely a line in the video that changes its position as the camera view changes.

Our initial project will be with a race that has only one camera shot in that the entire race can be seen always.

Once the object and background is checked and tracked we require an output of the distance ratios of the objects to each other.
For example 1 – 7-4-5-9-3-6-2-8 could be shown in distance as
( 10 – 12-5-5-0-4-5-3-2) With the second set of numbers being the distance bewteen the objects.

IF you feel you have had similar experience or are confident that this can be done from video with the knowledge you have or systems you have set up then we would be interested to hear from you.

Currently the system would be run over Video that is NOT in Real Time.

Regards,
GMT+9
All Ims Please

Video Example here: http://www.youtube.com/watch?v=dFRahWnA4YM

Object Tracking In Video

November 4th, 2009 Comments off

We require an Experienced Programmer to work on a Video Tracking and analysis project.

The project requires the candidate to provide intelligence most likely far and beyond what would be considered normal.

We are analysing races that have moving objects on a moving background. The objects change shape but can have a clear and defined colour. The background is generally the same. The background has some referrence points that will be most likely a line in the video that changes its position as the camera view changes.

Our initial project will be with a race that has only one camera shot in that the entire race can be seen always. In this way it may be that we require a model of the terrain or racecourse.

Once the object and background is checked and tracked we require an output of the distance ratios of the objects to each other.
For example 1 – 7-4-5-9-3-6-2-8 could be shown in distance as
( 10 – 12-5-5-0-4-5-3-2) With the second set of numbers being the distance bewteen the objects.

IF you feel you have had similar experience or are confident that this can be done from video with the knowledge you have or systems you have set up then we would be interested to hear from you.

Currently the system would be run over Video that is NOT in Real Time.

Regards,
GMT+9
All Ims Please

Emeeting Distance To Member

October 22nd, 2009 Comments off

Hi i am looking for some one to modify emeeting script to show in profiles the distance between to members once one of the members is loged in it uses php and mysql prefibly distance in miles between to postcodes to show up like in the link below

http://i43.tinypic.com/29w47ev.jpg

Distance Generator

September 2nd, 2009 Comments off

The input includes two lists:
List A is a list of about 36,000 cities and states in the US, for example:
“Miami” “FL”
“Middleborough” “MA”
“New Sharon” “IA”
“New Sharon” “ME”

And List B is a shorter list of about 85 cities and states in the US and in Canada, for example:
“Birmingham” “AL”
“FAYETTEVILLE” “AR”

We want to have the distance between the places in List B to each of the places in List A, using Google Map.
The output should be a text file, and would look like this:
“AL BIRMINGHAM”, “AZ MIAMI”, “1,592 mi”
“AL BIRMINGHAM”, “MA MIDDLEBORO”, “1,181 mi”
and so on.

Urgently needed!

Distance Php For Postcode

August 7th, 2009 Comments off

Hi,

I’m looking for a skilled programmer, who can write a small script.

I run a property website and the DB contains the property postcode.
In the DB there is a table with all the UK postcodes, and the Lat / Long references.

I need to be able to enter a postcode and select all properties in 5 / 10 / 20 miles etc… and it only shows those results.

Can you help?

Payment by SL ESCROW

Maximum of $15 – DO NOT BID LOW THEN KEEP PUTTING UP PRICES!
Must be completed in the next couple of hours.

http://case.wicked-websites.co.uk

Distance Php For Postcode

August 6th, 2009 Comments off

Hi,

I’m looking for a skilled programmer, who can write a small script.

I run a property website and the DB contains the property postcode.
In the DB there is a table with all the UK postcodes, and the Lat / Long references.

I need to be able to enter a postcode and select all properties in 5 / 10 / 20 miles etc… and it only shows those results.

Can you help?

Payment by SL GAF

Maximum of $15
Must be completed in the next couple of hours.

http://case.wicked-websites.co.uk

Iphone Distance Alarm

August 5th, 2009 Comments off

I am looking for a simple Gps program that would alert the user when they are close to a store, The user would input the store via google maps.Which would be used by the program. As the user comes within 100 to 400 ft the user would be alerted.
The alert would either be a list of items to buy or things to pickup such as groceries, medication and so on. The Todo list would expire after a specified time.

Custom Iphone And Android App

July 1st, 2009 Comments off

Summary:
The application is basically a business directory with coupons, but the interface and function has to be unique clean and easy to operate. User will use the application to find local businesses that participate in our coupon program. We currently have a website and database using .NET (aspx) that will be the source of the data. We will require a connection to this existing data. Once awarded, we will provide artwork samples from the existing website.

Here are the requirements:

-User needs the ability to search the list of businesses by category (shopping, dining, services, hiring, fun, all categories), name, keyword, or zip code.

-User needs ability to search businesses based on distance from current location (GPS-based).
-Requires option for distances or within .1 miles, .25 miles, 1 mile, 5 mile, 10 mile

-User should have option to turn on alert feature that they are within a certain distance from a business in the database.
-Requires option for distance (.1 miles, .25 miles, 1 mile)
-Requires option for categories (shopping, dining, services, hiring, fun, all categories)
-Ok to have to have app open for this feature to work

-Requires notice when activated that GPS feature of device has to be on and may drain battery

-Once the list of relevant businesses have been returned to the user they can click on the business of their choice and see the business name, address, phone, website, discount info (with a link to the coupon)

-The coupon link will display a coupon full screen (jpg source)
In addition, each page should include a back button, link to google maps and directions, share button to email or text message to a friend.

Please do not bid if you can’t deliver fully functioning application within 60 days. Must work flawlessly for both Android and iPhone.

Simple Ea For Mt4

June 21st, 2009 Comments off

I need a very simple Expert Advisor for Meta Trader 4.

It is a Price action, trend following, strategy, without the use of indicators.

In a (Currency pair), the EA will find the

Anti-cheat System

June 16th, 2009 Comments off

This project is an gaming Anti-Cheat System, it will be a client (software) that users will download, register, login and use to detect hacks and other cheating mechanisms in popular online first-person shooters. Please have experience in the first-person shooter gaming world to understand what your fighting against. I am doing this project to give something back to the gaming community, so if you would like to form a team of developers and advertise your software firm or something like that, I have no problem with it.

The first games we will be focusing on are:
Counter Strike
Counter Strike: Source
Call of Duty 4

Features:

- Have a database that users need to register and add their in-game handles and ID’s to verify that they are connected the Anti-Cheat System client (software).
- Scan all the users processes running in the background, deep into the operating systems kernel.
- Scan the kernel memory and also scan for kernel memory cloaks/spoofs/emulators.
- Take true random screenshots of the users screen while the client (software) is running and upload the screenshots to a master server in that users specific directory.
- Be immune to any custom delay/sleep timers that might try to hide users hacks from screenshots.
- A screenshot detection system to verify that every screenshot was taken and uploaded properly.
- Silent update feature and a built-in program ID scanner and catcher that will automatically update the client (software) without the user knowing. This feature will also be able to scan a new hack and grab the program ID and add that ID to the master database to be detected.
- Search feature so users can search for other players and looks at their screenshots, game ID’s and handles.
- Basically, the best Anti-Cheat System that can be made.

Here is a list of all the hacks and cheats the Anti-Cheat System must detect,

Aimbot:
Auto Aim/Auto Shoot
Choose from Customizable activation key.
Choose from different Hitboxes to aim for; Head/Neck/Chest/Waist
Select Enemies, Friends, or Everyone as your target.
Choose to aim through walls or not
Choose how to aim at targets- By distance to you or how close they are to your crosshair
Humanized Aiming – Even though your using a aimbot, it looks legit as a human is aiming
Vector Based Aimbot (Fov, AimVec Weapon Switcher, Delay, Smooth, ThruWall, VecDraw)(Aimbot is disabled while you reload or hold Knife/C4/Grenades)

ESP:
Black Background Toggle, Far, Name, Weapon, Distance, Box Static and Dynamic, Sequence, Visible
Name Tags, Show names of all friendlies and enemies.
Health Tags, Show health of all friendlies and enemies.
Visual Tags, Shows an icon or frame around enemies to give away their position, even behind walls.
Entity Tags, Show names of weapons and items on the ground.
Distance Tags, Show the distance between you and all friendlies and enemies.
Weapon tags: Shows the exact weapon a user has

Visuals:
Crosshair, Select from different custom crosshairs to make manual aiming easier.
Radar, Render a an on-screen minimap showing all enemies/friendlys.
Chamz, paints a bright color skin, visible through walls, on both enemies and friendlies.

Removals:
No Flash/No smoke – Completely removes the effects of flashbangs and smoke grenades.
Select varying degrees of No Spread or No Recoil; Causes all shots fired to be confined to the exact point where your crosshair lies.

Misc:
Bunny Hop, Hold down space bar to automatically jump continuously.
Auto Pistol, Hold down your firing key to turn your pistol into a fully automatic pistol.
Trigger Bot, Lets you be more discreet by only firing when your crosshair hovers over the enemy. Works with and without aimbot
3rd Person, Switches your view to Third Person so you can get a better view of your character and your surroundings.
Spin Hack, Confuses enemies and other hackers by rotating your character madly.
Rcon Hack – We have a script that will let you get full rcon in servers running amx mod
Speed Hack – Lets you run and shoot with speed

Advanced Hacks:
Kernel Mode Memory Cloaker
Kernel Mode Screenshot Detection System (BitBlt & glReadPixels)
Custom Delay/Sleep Timing For Screenshots

Java To Php

June 8th, 2009 Comments off

I have some quick and easy work in PHP I need done. I’ve written a few Java classes for a library, and I need them converted into PHP for a matching PHP library. I’m not familiar enough with PHP to do it easily.

Here’s the details of the work:
5 classes
3 of these classes are straighforward JavaBeans with only getter/setter methods
1 class is a utility class with 6 methods, 4 of which are nearly identical (they return an int, double, long, etc.)
1 class contains all the main functionality (280 lines of code)

- There’s a main() function in the main class which contains test cases that can be used to ensure the work is correct.
- The work should be done using OO methods
- The code should be written using PHP 5
- The code should be written without requiring any extra libraries or modules (should only use core PHP methods)

The code is very straightforward, and queries a RESTful website with arguments, and then parses the results. So, it’s basically just a wrapper for HTTP requests. Here’s an example of one function:
public int getDistance(String location1, String location2) throws Exception
{
String query = WEB_SITE + QUERY_ZIP + “?type=distance&location1=”+location1 + “&location2=” + location2 + “&API=” + apiKey;
String response = Utils.getURLContents(query);
String distance = Utils.getXMLValue(response, “distance”);
return Integer.parseInt(distance);
}

I will post the link to an old version of the Java code for you to examine in the PMB. The newest version is nearly identical with only a few bug fixes. I will send the newest version to the winning bid.

Convert Java To Php

June 3rd, 2009 Comments off

I have some quick and easy work in PHP I need done. I’ve written a few Java classes for a library, and I need them converted into PHP for a matching PHP library. I’m not familiar enough with PHP to do it easily.

Here’s the details of the work:
5 classes
3 of these classes are straighforward JavaBeans with only getter/setter methods
1 class is a utility class with 6 methods, 4 of which are nearly identical (they return an int, double, long, etc.)
1 class contains all the main functionality (280 lines of code)

- There’s a main() function in the main class which contains test cases that can be used to ensure the work is correct.
- The work should be done using OO methods
- The code should be written using PHP 5
- The code should be written without requiring any extra libraries or modules (should only use core PHP methods)

The code is very straightforward, and queries a RESTful website with arguments, and then parses the results. So, it’s basically just a wrapper for HTTP requests. Here’s an example of one function:
public int getDistance(String location1, String location2) throws Exception
{
String query = WEB_SITE + QUERY_ZIP + “?type=distance&location1=”+location1 + “&location2=” + location2 + “&API=” + apiKey;
String response = Utils.getURLContents(query);
String distance = Utils.getXMLValue(response, “distance”);
return Integer.parseInt(distance);
}

Please provide a time estimate in your quote.

Mt4 – Metatrader Buy/sell

April 25th, 2009 Comments off

I need an expert advisor/script, for CFD’s to be used in Meta Trader 4 (MT4), that does the following.

Once launched, to create orders buy/sell at specific distance above/below market value and once trade has been closed, for the creation of order to be recreated at a specific distance form the trade just executed.

e.g.

Market opens at 1000
Already own 5 long. Entered manually.
Script/EA to create following orders once run.
Sell 2 – orders placed at 30, 60, 90 above market.
Buy 2 – orders placed at 30, 60, 90 below market.
Once a position is closed, e.g., market moves to 1031, the Sell order that has been completed/closed is re-entered at specific distance from the execution of the trade or open (maybe after a specific time frame,) in this example it would enter a sell order (of 2) at 1040 (market +40).
All values to be variable inputs so I can change them, including number of orders.
Hope this made sense.
Script to be turned on and off during day.
I only have experience in using EA and scripts but not in writing them. Any other options, methods or suggestions would be appreciated.
I have a few scripts/EA I would like to have written and this is the first one.
I would like to test before final payment is made.

Delphi Zip Code Application

April 4th, 2009 Comments off

I need a Delphi DPR/EXE application that will:

1) Allow the user to pick an existing MS Access MDB file

2) Display the available tables within the MDB in a TChecklist

3) Once a table is checked, the app needs to display all the available fields in that selected table in another TCheckList

4) Allow the user to input a 5 digit USA ZIP Code in a TEdit

5) Allow the user to input a distance (in miles) in a TEdit

6) When the user clicks a TButton, the application will:

I) Determine the latitude and longitude values for the ZIP Code entered in #4

II) Iterate through the entire MDB table (see #2) and determine the distance (as the bird flies) from the ZIP Code entered in #4 to each of the ZIP Codes found in each record (#3 defines the ZIP Code field for the selected table).

III) Those records where the distance calculated is less than or equal to the distance specified in #5 should be stored in new temporary table.

IV) Once the entire database has been stepped through, record by record, close the MDB database

7) Using the temporary database that was created, sort the distances in ascending order.

8) Display to the user the number of records that were found

9) Give the user the option to save/export the results to a CSV file.

The values for items 1, 2, 3, 4, 5, 9 should be saved to an INI file and restored back when the application restarts. In other words, I want the previously used values to be sticky.

I will provide the ZIP Code database containing ZIP Codes and latitude and longitude values.

I will provide the trigonometric algorithms used to calculate distances between latitude and longitudes.

The application can be written in Delphi 3 through Delphi 2005.

The application must not use the BDE.

The application should make accessing the MDB file as simple as possible on the user. I would like to avoid having to create ODBC data source. The ideal solution is simply to have the Delphi app display a File Selection window and allow the user to point to a MDB file and that’s it!

Bear