• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List Of Cities in the world??

#1
[eluser]flyenig[/eluser]
How can i get a jquery auto suggest list of all the cities in the world.
(I know how to do the auto suggest already so please dont give me tutorials on how to do so, Thanks)

Is there a web service i can use? Can i use google's map api?
Or should i download one of those big databases with all the cities in the world? And if i was to import them to my own database would that be bad for my server since its like a huge file, like 65MB +.
And also the number of queries would be large because i plan on making this a large site.


If you didnt understand some of the things i said, please let me know, because i wrote this in a hurry, Smile

Thanks!

#2
[eluser]joshbrown[/eluser]
Hey flyenig,

Check out http://www.geonames.org/

Mainly in there api check out http://www.geonames.org/export/web-servi...CodeSearch

Then you can use this param for the auto select list: placename_startsWith

If you need help making it, let me know.

#3
[eluser]Jan_1[/eluser]
That's realy interesting. Could you write something more about using geonames services here or in the wiki?

#4
[eluser]joshbrown[/eluser]
Instead of writing something using GeoNames, the jQuery UI demos have an autocomplete library built in and a demo with source code!

View it here: http://jqueryui.com/demos/autocomplete/

#5
[eluser]flyenig[/eluser]
Thank you joshbrown,

Yes i think i need help,
could you give me an example?
I just know the basics of Javascript and Jquery. (i am learning something new everyday though!)


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.