question on map

i have a question. i want to learn a feature.

please go the website >

http://www.lq.com/lq/index.jsp

please choose

City : Miami

State/Province: Florida

check-in: 20th july

check-out:21 july


click Find button. wait for the result. do you see a MAP at the top of the page ? How nice it is . they are showing the online free map from mapquest.com.

exactly , i want to do that. i want to show a map with Z the location. How can i do that type of thing ?

thank you

cofactorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bloodredsunCommented:
I assume that they already know the locations of their hotels on the mapquest map. This means that they konw the co-ordinates of the hotels. They can then overlay the location of the hotels on the map of a particular area, e.g. Miami, Florida using image maps like this.

<area shape="RECT" coords="173,122,191,142" href="http://www.lq.com/lq/properties/propertyProfile.do?ident=blahblah" title="A Hotel" alt="A hotel here"  />  
cofactorAuthor Commented:
Sir, i am confused.

ok, what i understand from ur comment is

1. the website (i.e lq.com ) knows the hotel location in the mapquest. for example, suppose there is a Hilton Hotel exists in the MAPQUEST whose location is say "213,234,245,456" . the lq.com knows this information and they are sending a request to the mapquest server exactly with this info along with other params(as similar as mapquest use) and then they get the info from the mapquest. is this right ?


if i am right, there are two problem.

1) the biggest and biggest problem ..lq.com can get  the information but can not get the graphics. how they are showing the graphics ? they may get a textual information. but i am very confused how they are showing the whole image with that particular location.


2) How lq.com knows all the hotel's location which exists in the DB of the mapquest ? do they have any colllaboration ? i think they dont have such collaboration.  i have seen  many websites shows this kind of map.

anyway, whatever be the condition, it would be enough for me if i understand and be able to learn this method.
cofactorAuthor Commented:
just one mistake in my post.i have written  hotel location  co-ordinate is ("213,234,245,456") . it should be  2 co-ordinate like(x,y) . becoz 4 cordinates implies the area.
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

cofactorAuthor Commented:
hi blodder,

i saw the view source and found,

code
====

<!--MAPQUEST SPECIFIC CODE -->
  <map name="HOTELMAP">

    <!-- ICON POSITIONS -->
                              <area shape="RECT" coords="106,146,125,166" href="http://www.lq.com/lq/properties/propertyProfile.do?ident=LQ667&propId=667" title="La Quinta Inn Miami Airport North" alt="La Quinta Inn Miami Airport North"  />                              <area shape="RECT" coords="84,146,102,166" href="http://www.lq.com/lq/properties/propertyProfile.do?ident=LQ980&propId=980" title="La Quinta Inn & Suites Miami Airport West" alt="La Quinta Inn & Suites Miami Airport West"  />                              <area shape="RECT" coords="173,2,191,22" href="http://www.lq.com/lq/properties/propertyProfile.do?ident=LQ985&propId=985" title="La Quinta Inn & Suites Ft. Lauderdale Airport" alt="La Quinta Inn & Suites Ft. Lauderdale Airport"  />                              <area shape="RECT" coords="128,2,147,22" href="http://www.lq.com/lq/properties/propertyProfile.do?ident=LQ982&propId=982" title="La Quinta Inn & Suites Ft. Lauderdale Plantation" alt="La Quinta Inn & Suites Ft. Lauderdale Plantation"  />                          <!-- END ICON POSITIONS -->
    <area shape="DEFAULT"  />
  </map>


i see here there are the href for hotels. these basically hotels but not the whole map .


will you please simplify the thing.
thank you
bloodredsunCommented:
1) the biggest and biggest problem...

You can just screen-scrape if they do not have an agreement with the map provider.I would think that they have some sort of collaberation. The four points are the 4 corners of a rectangle, not the 2 co-ords of a point. I suggest that you contact mapquest to find out as the solution the use  may be completely different from what we think

The source code: this is just a simple client side image map. Go here http://www.htmlcodetutorial.com/images/images_famsupp_220.html for a good tutorial on the <map> and <area> tags and their usage.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cofactorAuthor Commented:
my god , i did not know  that kind tag we use !

your posts are very much relevant. thats a very useful link to me. thank you. let  me investigate a bit .
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.