Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeisen committed Apr 12, 2017
1 parent f15f389 commit e0a390c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions documentation/snippets/language-request-temporal-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
of the <code class="prettyprint">temporalData</code> method.</p>
</blockquote>

<blockquote class="lang-specific javascript--node">
<h3>Using Latitude/Longitude</h3>
<p>It is possible to pass in a latitude/longitude pair.</p>
</blockquote>

>
```javascript--node
var latitude = 37.7749;
Expand All @@ -12,6 +17,11 @@ Breinify.temporalData(latitude, longitude, function(data) {
});
```

<blockquote class="lang-specific javascript--node">
<h3>Using IP-Address</h3>
<p>Another possibility is to just pass in an ip-address and resolve the temporal information available.</p>
</blockquote>

>
```javascript--node
var ipAddress = '72.229.28.185';
Expand All @@ -20,6 +30,13 @@ Breinify.temporalData(ipAddress, function(data) {
});
```

<blockquote class="lang-specific javascript--node">
<h3>Using an Object</h3>
<p>The most general solution is to pass in an object and specify the different known values
to determine what can be resolved (but also what should be returned), based on the provided data.
The further usage examples illustrate different possibilities.</p>
</blockquote>

>
```javascript--node
// you can also pass in a more complex location object
Expand Down

0 comments on commit e0a390c

Please sign in to comment.