To use the Google Places Service, you will create the following EGL parts:
You can create the Record parts in various ways, but in this lesson you will access a REST service on the web and include, in the web address, the details necessary to retrieve data from the service. The New EGL Record wizard will create the Record parts that correspond to the data that is retrieved at development time.
Do as follows:
GooglePlaceRecords
https://maps.googleapis.com/maps/api/place/search/xml?location=-33.8670522,151.1957362
&radius=1000&types=cafe&sensor=false&key=AIzaSyD_K9zveT6jhxgCApduywaOTuD5FiQFgpI&language=en
Combine
the two lines into a single-line URL with no spaces.

When you use an external web service, you create an Interface part that identifies the service operations that will be accessed. The Interface part is used by the requesting code and is not a component of the service itself.
Do as follows:
interfaces
GooglePlaceRecords
package interfaces;
// interface
interface GooglePlacesService
function getSearchResults( typeName string? in )
returns(PlaceSearchResponse)
{@GetRest{uriTemplate =
"https://maps.googleapis.com/maps/api/place/search/xml?location
=37.47,-122.26&radius=50000&sensor=false&key=AIzaSyD_K9zveT6jhx
gCApduywaOTuD5FiQFgpI&language=en&keyword={typeName}",
responseFormat = XML}}; end
After you paste the
code, do as follows:To create the MapLocatorHandler handler:
MapLocatorHandler
The
handler opens in the Design view of the Rich UI editor.introLabel
Search for places in San Francisco:
typeLabel
Type:
typeComboBox
checkForEnter
import dojo.widgets.DojoComboBox;
typeButton
buttonClicked
Search
listingBox

localMap
Refresh
the Design view of the Rich UI editor by clicking the refresh button
on the upper right of the Design view, not the upper right of Project
Explorer. 

If you click the Source tab, you can see code that the EGL Rich UI editor created.
In the next lesson, you add source code to complete the MapLocatorHandler handler.