google-places-scanner plugin
The plugin in the current state relies on outdated Google Places API, and as a result is not functional.
The plugin is used to obtain information about places (city, address, and so on) by zip code and keyword.
The attributes are as follows:
| Name | Required | Default | Description |
|---|---|---|---|
zip | Yes | zip to search by |
The google-places-scanner plugin requires at least one keyword child element and at least one api-key child element.
The plugin returns a list containing instance(s) of
the com.freedomoss.crowdcontrol.webharvest.plugin.gscanner.google.place.PlaceDetails class.
keyword
The plugin state to parent plugin what is keyword to search places. It's possible to search multiple keywords.
The attributes are as follows:
| Name | Required | Default | Description |
|---|---|---|---|
value | Yes | Keyword value |
api-key
The plugin is used for providing the Google Places service api key. The Google Places API Web Service uses an API key to identify your application.
It is possible to include multiple api keys. In that case, when first api key becomes unavailable (request rate exceeded or banned), execution processor will start using the second api key, and so on.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<var-def name="places">
<google-places-scanner zip="${zip}">
<keyword value="${keyword}"/>
<api-key value="${key1}"/>
<api-key value="${key2}"/>
<api-key value="${key3}"/>
</google-places-scanner>
</var-def>
<export include-original-data="true">
<multi-column list="${places}">
<put-to-column-getter name="address" property="formatted_address"/>
<put-to-column-getter name="phone" property="international_phone_number"/>
<put-to-column-getter name="url" property="url"/>
<put-to-column-getter name="vicinity" property="vicinity"/>
<put-to-column-getter name="website" property="website"/>
<put-to-column-getter name="name" property="name"/>
<put-to-column-getter name="city" property="city"/>
</multi-column>
</export>
</config>