Link to home
Start Free TrialLog in
Avatar of cofactor
cofactor

asked on

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

Avatar of bloodredsun
bloodredsun
Flag of Australia image

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"  />  
Avatar of cofactor
cofactor

ASKER

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.
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.
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
ASKER CERTIFIED SOLUTION
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 .