GeoNames Home | Postal Codes | Download / Webservice | About |
Geonames offers two web services 'Find Nearby Hotel' which takes lat/lng as input parameters and 'Hotels in BoundingBox' which takes the four parameter south,north,east,west. All bookings generated by users following links included in these webservices will result in a commission for you. You have to add the parameter 'username' with your geonames-username to the webservice calls for us to know where the booking was generated from.
Url : ws.geonames.org/findNearbyHotel?
Parameters : lat,lng;
Result : returns the nearest hotels for the given latitude/longitude.
Example http://ws.geonames.org/findNearbyHotels?lat=37.451&lng=-122.18
This service is also available in JSON format :
http://ws.geonames.org/findNearbyHotelsJSON?lat=37.451&lng=-122.18
number of hotels | countrycode ------------------+------------- 28670 | US 5509 | IT 5373 | ES 4825 | FR 2985 | DE 2839 | CN 2123 | CA 2008 | GB 1279 | AU 1125 | MX 928 | PT 848 | GR 802 | CH 642 | TR 597 | NL 548 | IE 503 | TH 502 | AT 475 | SE 427 | CZ total : over 70.000 hotels in over 180 countries.