Skip to content

Commit

Permalink
Added storage example
Browse files Browse the repository at this point in the history
  • Loading branch information
voidgraphics committed May 4, 2020
1 parent 4f897f1 commit 1761cb4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@ public function fields(Request $request)
}
```

## Storage
The field stores the JSON data sent back by Algolia (minus a few unneeded sub-objects). This gives you a lot of information on the selected place/address. Here is an example:

```json
{
"name": "Bruxelles",
"type": "city",
"query": "Bruxelles",
"value": "Bruxelles, Région de Bruxelles-Capitale - Brussels Hoofdstedelijk Gewest, Belgique",
"county": "Bruxelles-Capitale",
"latlng": {"lat": 50.8466, "lng": 4.3517},
"country": "Belgique",
"postcode": "1000",
"countryCode": "be",
"administrative": "Région de Bruxelles-Capitale - Brussels Hoofdstedelijk Gewest"
}
```

## Configuration
By default, you should reference your Google Maps API key in your `.env` file:

Expand Down

0 comments on commit 1761cb4

Please sign in to comment.