Previous post: Ubuntu Places Scope 1 – Planning
Similar Projects / Naming
This morning I read a blog post from David Planella about the Scope Showdown progress. There I found the information, that another Places Scope by Sam Segers is on the way. Because I believe that some variety is good I decided to continue my work on my Places Scope. The name of my Scope will be Nearby.
Nearby Scope overview
Here I placed the name of the Scope. Also the Google Places API policy says that Google Places information without a map must be presented with a Google logo.
This is the filter where the user can select the ordering of the results. The Google Places API defines two possibilities: Distance and prominence.
When adding the filters, it didn’t work at the beginning. So I asked for help in the Ubuntu development IRC channel. Luckily David Calle gave me the important hint to get the filters working:
This tells the system to display the filter, if possible.
The Scopes API provides a hierarchically drill down function called Departments. This will be used by the Nearby Scope to give the user the option to drill down the search results by the Google Places types.
(4) The Scope card
As planned in the post before, the places’ information are displayed. The icons are currently taken from the Google Places search response. Because mobile users may want to save data I’ll add local images for the types later. Also I’ll provide a setting where the user can select to show an image (nicer but more traffic) or an icon (saves traffic).
I added some settings to the Scope. This is quite easy as described in the Scopes documentation.
The user may enter a radius in the short distance unit (4) for the desired max distance of the search results.
(2) Default order (filter)
Here the user may select the default order of the search results: Distance or prominence.
(3) Long distance unit
The user can select one of the long distance units kilometers and miles.
(4) Short distance unit
The user can select one of the short distance units feets, meters and yards.
(5) Use location data
This setting was added by the system after inserting
LocationDataNeeded = true
into the ini file.
Ubuntu Nearby Scope 3 – Source code