This? is a prototype? one page? ASP.NET based website, written in either C# or VB.NET, that will allow users to enter a US based street address and respond with a map and driving directions to a nearest location.? (Locations are store locally in a text file, and have already been geocoded).
Either Google or Mapquest? can be used for the geocoding and map / direction? display.? Code should use AJAX and be contained to one ASCX file, there should not be a need for a full post back.
## Deliverables
The project should consist of one ASPX and one or more ASCX files.? The ASPX is a simple wrapper and should not contain significant code, the workflow, logic, and UI should all be contained in the ASCX file(s).
From the user perspective, this is what needs to happen:
1) User is presented with one text box used to enter a full address (street, city, and state.? US is presumed)
2) Website will attempt to geo-code the entered address using Google or Mapquest and do one of three things:
? ? ? ? a) Return an error saying "address could not be found".? Return to step #1.
? ? ? ? b) Return a list of possible addresses.? Users picks one,? goto step 3.
? ? ? ? c) One address is identified, goto step 3.
3) The website will access a locally stored list of addresses (see attached file) and using a simple geo-distance formula find the one nearest to the geocoded address
4) User will be presented with the results page, which is a map showing the entered address (A) , the nearest address from the text file? (B), and driving directions from A to B.? Again, either Google or Mapquest can be used to display the map and driving directions.?
The addresses to be used for this app are attached in a tab-delimited text file.