GMAP search
-
Hello, I'm planning to build a tourguide search website, i looked around and found the api of google "GMAP". What i need to do is a form where you can fill some fields (city, availablity dates and other things) and it should show you available registered tour guides in the map where you can click on some icon and it shows you a small window of the available tour guide profile. Something like that: http://tourguides.viator.com/Map.aspx Any ideas? i would appreciate any help. thank you
-
Hello, I'm planning to build a tourguide search website, i looked around and found the api of google "GMAP". What i need to do is a form where you can fill some fields (city, availablity dates and other things) and it should show you available registered tour guides in the map where you can click on some icon and it shows you a small window of the available tour guide profile. Something like that: http://tourguides.viator.com/Map.aspx Any ideas? i would appreciate any help. thank you
This shows you how to hook up an auto-complete textbox to get location results from Google. Based on the user's selection, it will show an alert dialog with the latitude and longitude of that location. The next part is to use the Google map API (I link to it in the above message) to insert a map and then navigate to that latitude/longitude. Store your tour guides in a database by the latitude/longitude and you can do a search to find nearby tour guides. The Google map API allows you to create custom icons that you can drop at those locations. The Google Map API also allows you to create click events for those icons. You can use that to pop up custom info windows for each icon when they are clicked. Those info windows would show information about the tour guides. As a final implementation note, I recently did this and I got the tour guide info (though I wasn't actually working with tour guides, the same principles apply) from a web service using AJAX. That allows the user to search and get results without any postbacks.
-
This shows you how to hook up an auto-complete textbox to get location results from Google. Based on the user's selection, it will show an alert dialog with the latitude and longitude of that location. The next part is to use the Google map API (I link to it in the above message) to insert a map and then navigate to that latitude/longitude. Store your tour guides in a database by the latitude/longitude and you can do a search to find nearby tour guides. The Google map API allows you to create custom icons that you can drop at those locations. The Google Map API also allows you to create click events for those icons. You can use that to pop up custom info windows for each icon when they are clicked. Those info windows would show information about the tour guides. As a final implementation note, I recently did this and I got the tour guide info (though I wasn't actually working with tour guides, the same principles apply) from a web service using AJAX. That allows the user to search and get results without any postbacks.
-
Glad I could help. :)