Lonely Planet Developer Network Developer Blog
RSS FeedPrivate Beta starts
Following a bunch of feedback we've got some changes in the pipeline, but in the meantime we have started our Private Beta phase. During this stage access to the API will be limited to a small number of selected developers. Generally we will provide activated keys to developers who are known to us, but if you have a great idea you want to explore, feel free to drop us a line at exploreAPI@lonelyplanet.com. Make sure you include details of your ideas, as well as some background about yourself, and URLs of your previous creations. Please remember that the API is strictly for non-commercial use. If you want to commercialise something you create (that includes putting it on a page with ads) then you need to contact us and reach an agreeement before you do so. At this stage the API is not yet available for commercial use.
Here's one we prepared earlier...
To get you started, we thought we should share a little bit about http://m.lonelyplanet.com , our mobile site that provides the Lonely Planet community with always-on real-time access to our content. The attached zip / tar contains an example page from the mobile site as well as a php shell for all the standard Explore API calls. [zip | tar]
What excites us about mobile is that it enables us to make our services available anywhere, anytime and provide answers to a new set of questions like "what should I explore today?" and "what's around me that's worth experiencing?".
As part of their extensive on the ground research, our authors filter and review tens of thousands of points of interest (POI's), such as restaurants, hotels, bars, shops and sights. They also plot the position of these POI's on the maps that form part of our guidebooks, so we have accurate, collected geocodes corresponding with each POI. So, we built a mobile site that is really a mash-up of this location-aware Lonely Planet content through using our Explore API webservices and some of the Google geo API's.
To answer the question "what's around me?" we have to have a sense of where the user is in order to work out what content we have that would be contextually relevant to them. As this is a browser-based service, we don't have the luxury of location API's to tap into to get your precise location via GPS or cell tower triangulation.
For the most accurate results, we needed the users to self select their location by entering it into a form field. Because typing on regular mobile keypad is so laborious, we wanted to keep that to a minimum and offload the geo-parsing to a powerful server-side geocoder which could deal with the ambiguity of short location descriptions, various zip/post code formats etc. For this we use the Google Geocoder API. This API enables users to enter any kind of location description from zip codes (90210) to tube stations (holborn) to street names (oxford street) to suburbs (footscray) and the geocoder will either decipher that and return the lat/long of that location or it will provide multiple results back for disambiguation.

Now that we know the user's location (lat/long), we can assess what content we have available that may be relevant to them. Using our POI Proximity webservice, we pass in the user's location and a radius in kilometers to calculate what POI's we have nearby. The POI Proximity service returns a list of POI's with their relative distance from the user's location which we use to order the presentation of those results.
Now we need a way to present the user's location and the location of the nearby POI's on a map. Since this is an application for a baseline of devices with limited capabilities, we don't have the luxury of Flash, AJAX or any other form of client-side scripting such as JavaScript. For this we use the Static Maps API. By passing in the geocodes and parameters for labelling the markers, the Static Maps API produces for us a static image displaying markers which correspond with the user's location and each of the POI's.
We use another fantastic open resource, called WURFL, to detect the user's mobile device type. We get from that database a range of device characteristics, including screen size and supported media types which we then use as paramters in the call to the Static Maps API to get a map with the appropriate width/height and file format (eg gif, jpg, png, etc). Users can further filter the results by selecting the type of POI they are interested in (eg eat, sleep, see, play, etc).
This is our first effort at a location based service so there is still much to do to improve and enhance the mobile site. To see it in action, go to http://m.lonelyplanet.com in your mobile browser, select the "What's around me?" feature and enter your location or a place you're planning to travel to in order to see the nearby POI's, recommended and reviewed by our authors, displayed on a map relative to your location.
Hello World!
Welcome to the Lonely Planet Developer Programme. For us this is an exciting new venture into the world of open collaboration and innovation. This coming Saturday, we launch our API service which for the first time gives the developer community access to Lonely Planet's trusted content covering tens of thousands of destinations, points of interest and Bluelist “best-of” recommendations from travellers around the world. This is a small but significant step for us and although we don’t know exactly how this is going to play out, we do know that by enabling a community of creative and innovative people to bring their own new ideas to reality using our content, we can do much more to inspire and enable people to connect with the world they live in, than we could do alone.
At Lonely Planet, we believe that travel is one of the world’s most important activities. Travel celebrates difference, increases understanding and recognizes similarity. For over 30 years Lonely Planet has been synonymous with the best travel information available. The company was founded after Tony and Maureen Wheeler left London and hit the road in search of adventure in 1972. They travelled overland across Asia and landed in Australia where, due to incessant questions from would-be travellers, they compiled their journey notes and stapled together their first travel guide; Across Asia on the Cheap.
Our guidebook authors tell it like it is, without fear or favour; there’s a whole world of amazing experiences, sights, hotels, travel companies and gear manufacturers out there - and we want to tell you which ones we think are best. But we never compromise our opinions for commercial gain. If you read something written by a Lonely Planet author, you know they've been there, experienced it for themselves and are telling you what they really think. It's trusted advice from a trusted source. And, at Lonelyplanet.com we host and participate in a community of people who share like minded passions for experiencing the world, expressed in tips and opinions on the Thorn Tree, and through our Bluelist service which is teeming with recommended experiences from around the world.
The information and reviews that we are making available through this service represents millions of hours of painstaking (sometimes downright painful) field research by hundreds of our authors and fellow travellers through untold miles of travels in just about every country on the globe. The API will give developers access to Lonely Planet destination information, points of interest, images and Bluelist “best-of” traveller recommendations that can be queried by destination name, geographic proximity and tags.
Today we invite you to join our developer program and begin with us the exploration of new ways to enrich the travel experience. There are a few important conditions that apply to use of the API, like keeping your applications strictly non-commercial, so check out our FAQ and Terms of Use and drop us a line if anything is not clear. This service will evolve in the coming months as we expand the nature and volume of material that we make available, particularly as we extend the location-aware and social capabilities of the API's. This is new territory for us so we won’t always get it right, but we hope that you will work with us to make this a great service that will enable developers to bring exciting new innovations to our traveller community.
Stay tuned for more…
[ Page 1 of 1 ]
