forked from geocoder-php/GeocodableBehavior
-
Notifications
You must be signed in to change notification settings - Fork 2
/
schema.xml
20 lines (19 loc) · 999 Bytes
/
schema.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<database name="bookstore" defaultIdMethod="native">
<table name="geocoded_object">
<column name="id" required="true" primaryKey="true" autoIncrement="true" type="INTEGER" />
<column name="name" type="VARCHAR" size="100" primaryString="true" />
<column name="street" type="VARCHAR" size="100" primaryString="true" />
<column name="city" type="VARCHAR" size="100" primaryString="true" />
<column name="country" type="VARCHAR" size="100" primaryString="true" />
<behavior name="geocodable">
<!-- IP -->
<parameter name="geocode_ip" value="true" />
<!-- Address -->
<parameter name="geocode_address" value="true" />
<parameter name="address_columns" value="street, city, country" />
<!-- Geocoder -->
<parameter name="geocoder_api_key" value="YOUR_API_KEY" />
</behavior>
</table>
</database>