[This message was posted by Mahesh Kumaraguru of <kay_mah...@yahoo.com> to the "Website Feedback" discussion forum at http://fixprotocol.org/discuss/38. You can reply to it on-line at http://fixprotocol.org/discuss/read/1ef37206 - PLEASE DO NOT REPLY BY MAIL.]
GeoNames.org has REST (Representational State Transfer) WebServices which can return either XML or JSON (JavaScript Object Notation) for most WebServices http://www.geonames.org/export/ws-overview.html It supports hierarchy of GeoNames i.e. Globe > Continent > Country > Administrative Division... > City "children" WebService can be used to find Children in the hierarchy e.g. Countries in a Continent, states in a country etc. For example, to find all continents in this world (6295630 is geonameId of this world and this is the only number needed to be hard coded in the FIXProtocol.org server, everything else should be obtainable dynamically / recursively) http://ws.geonames.org/children?geonameId=6295630 All countries in the Continent of North America http://ws.geonames.org/children?geonameId=6255149 All States in country of USA http://ws.geonames.org/children?geonameId=6252001 All Counties in Connecticut http://ws.geonames.org/children?geonameId=4831725 All Cities in Fairfield County http://ws.geonames.org/children?geonameId=4834162 All of the above results are XMLs and hence relevant data can be extracted and used to populate the dropdown lists. Country > Administrative Division... > City heirarchy would be different for some countries, for example in India, there are Union territories which are in same level as state, but do not have cities under it, similar for very small countries like Singapore, HongKong, etc. We would have to look at GUI design options on how these differences in hierarchy could be be accomodated in the job postings web pages. Regards, K. Mahesh > We can easily expand the hierarchical list of regions in the post-a-job > form; coding up a cascading series of dropdowns would be a bit more > work. I don't know how to get a region hierarchy from Google Maps, is > there a sample-code page for that? > > For searching, the single dropdown is a nice compact control that shows > only the regions that will return results. > > > Webpage http://fixprotocol.org/jobs/ presently does not have the > > global look and feel because only a limited set of hard-coded > > locations is shown. The regions dropdown list could be changed into > > four dropdown lists as Continent, Country, State and City with each of > > them having default "any". Google maps API has support for populating > > these dropdowns dynamically. [You can unsubscribe from this discussion group by sending a message to mailto:unsubscribe+100932...@fixprotocol.org] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Financial Information eXchange" group. To post to this group, send email to FIX-Protocol@googlegroups.com To unsubscribe from this group, send email to fix-protocol+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/FIX-Protocol?hl=en -~----------~----~----~----~------~----~------~--~---