Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Aug 2006
    Posts
    50
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Best way to make a geographical search tool?

    Hello,

    I have to design a search form that will have to display a listing of properties depending on their location ( country, region and city ).

    The main issue is the fact that the site will be in several languages which means that all the locations will have to be translated too.

    To me, it looks like an impossible task to define in advance all the countries, regions and cities in all these languages.

    First question :
    Do you think such a library with all the worldwide cities already exists so that I could create an autocomplete field a la www.booking.com within minutes?
    I see that cities are all translated in their script.
    (ex: Vienna becomes Wien or Vienne depending on what you type).

    Second question :
    Do you think it would be a good idea to let properties publishers enter the location names themselves in the database? I mean, this would move all the work on their side but it would make it difficult to have an efficient search function since they would propably type the same city with different spellings or worse, with spelling mistakes.

    Third question :
    I thought that maybe I should try to build a mapplet ( http://code.google.com/apis/maps/doc...s.html#GLatLng ) that would let users choose an area on a map so that the search form use the coordinates of the map boundaries in order to find stored coordinates that are inside.
    Do you think it is feasible? The good thing with that option is that we get rid of the location names in multiple languages/spellings. We only use coordinates.

    So, what should I do?

    Many many thanks to the ones who will provide me with some helpful advice.

    Cheers

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    explore this:

    http://www.geonames.org/

    best regards

  • Users who have thanked oesxyl for this post:

    sleidia (01-19-2009)

  • #3
    Senior Coder
    Join Date
    Oct 2008
    Location
    Long Beach
    Posts
    1,196
    Thanks
    36
    Thanked 164 Times in 164 Posts
    Your third idea is most bulletproof. I've had some experience with the Google Maps API and it's a lot faster than you might think. Using graphical representations of the desired location breaks all language barriers and simplifies, if not solves, your original problem.
    Feel free to e-mail me if I forget to respond ;)
    ohsosexybrit@gmail.com

  • Users who have thanked itsallkizza for this post:

    sleidia (01-19-2009)

  • #4
    New Coder
    Join Date
    Aug 2006
    Posts
    50
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Thanks Oesxyl,

    I've been playing around with it on http://www.geonames.org/export/ajax-...ocomplete.html and I found it painfully slow. I don't know if it comes from a bad JS script (there is an error showing in the error console) or if is the whole thing ... well I'm not impressed ... or maybe I failed to see the real potential? The script used on www.booking.com is really fast compared to the one on geonames.

    Quote Originally Posted by oesxyl View Post
    explore this:

    http://www.geonames.org/

    best regards

  • #5
    New Coder
    Join Date
    Aug 2006
    Posts
    50
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Thanks a lot itsallkizza,

    Since you seem to have some experience with Google Maps, here are a couple of questions :

    - do you think I should use the Google API or Mapplets?
    - do you know a Google application that nearly does the same thing I want to achieve?

    Thanks again

    Quote Originally Posted by itsallkizza View Post
    Your third idea is most bulletproof. I've had some experience with the Google Maps API and it's a lot faster than you might think. Using graphical representations of the desired location breaks all language barriers and simplifies, if not solves, your original problem.

  • #6
    Senior Coder
    Join Date
    Oct 2008
    Location
    Long Beach
    Posts
    1,196
    Thanks
    36
    Thanked 164 Times in 164 Posts
    Hm... I've never seen Google Mapplets before. Looks pretty cool.

    Because I don't have any experience with Mapplets (just now watched their intro) and I'm not you (and so I don't know the ins and outs of your program) I can't say which route to take, but it seems from first-glance that you'd be better off with the plain old Google Maps API - it's super customizable and so far I don't see the need (for you) to use any of the extra Mapplets features.
    Feel free to e-mail me if I forget to respond ;)
    ohsosexybrit@gmail.com

  • #7
    New Coder
    Join Date
    Aug 2006
    Posts
    50
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Well, I think that, finally, I'll give up on the GoogleMap idea because they say on their FAQ that Opera isn't supported

  • #8
    Senior Coder
    Join Date
    Oct 2008
    Location
    Long Beach
    Posts
    1,196
    Thanks
    36
    Thanked 164 Times in 164 Posts
    i'm sure you can make the features you need work in Opera, I wouldn't give up just yet (i'm pretty sure the stuff I worked on functioned as expected in Opera 6).

    even if it doesnt, the number of people who use opera as their primary web browser is miniscule. and remember, the people who use third party browsers tend to be more technically literate (ie a switch to a new browser is usually inspired by some grievance or another), which means if your site didn't work in their browser, they'd probably just pop open IE, FF or Safari.
    Feel free to e-mail me if I forget to respond ;)
    ohsosexybrit@gmail.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •