Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6. Rhodes > Geolocation and Mapping Example

6.14. Geolocation and Mapping Example

Geolocation is supported on all of the devices that are compatible with Rhodes. Native mapping is only supported on the iPhone, BlackBerry, and Android. You can still do mapping on any platform using the web browser and you can use geolocation features without mapping, although they are often used together. The example in this section follows such a typical use case that integrates the results of geolocation into a map.

The example application illustrated in this section allows the user to fill in a web form and check a box to use the current location or optionally fill in a zip code, and then displays all of the locations on a map. The complete application was built to show where conference attendees originated from and can be found at http://github.com/blazingcloud/rhodes_rubyconf—it is a connected application that saves data to a server via RhoSync, but that isn't required for using geolocation. The example code in this section could be used offline or with other means of connecting to a server.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial