I need a class wrapper for yahoo maps with specific features.
If you goto [[login to view URL]][1]
and enter in some locations into A, B and get directions.. You can add additional locations..? Once you get directions it will generate a URL such as this:
<http://maps.yahoo.com/#mvt=m&lat=40.907765&lon=-73.757475&zoom=11&q1=350%20madison%20avenue%2C%20new%20york%2C%20new%20york&w0=40.99544751505735%2C-73.83499145507812&q2=95%20morgan%20street%2C%20stamford%2C%20ct>
What I need is the following, I need serveral functions which may be difficult to do and may need calling the yahoo services..
1) Make a function? to take a URL such as the one above and return and returns the directions (in table html format).
So the function would be:
?
public string GetDirections(string Url)
2) Make a function to take a URL such as one above and return the streamed mapimage. So I can then save this image to the database.
public image GetMapImage(string Url )
3) Lastly, I need to be able to generate the querystring by specifying a location, even way points..
So lets create 2 classes
Location which will have address, city, state, country
and waypoint which will have lat and long.
then I want a function the creates a querystring bases on
a arraylist which will have locations and waypoints..
public string GetUrl(ArrayList locations, Parameters params)
So if we have
Location
WayPoint
WayPoint
Location
would generate something like
<http://maps.yahoo.com/#mvt=m&lat=40.907765&lon=-73.757475&zoom=11>
&q1=
&w0=
&w1=
&q2=
Please make the querystring generator accomidate all the possible paramaters it has.. Such as quickest, shortest, etc.. Read up on the possible parameters
NEED DEMO ASP.net c#? page showing functionalty