Skip to content

Commit ee1807a

Browse files
update readme
1 parent e66ba7f commit ee1807a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Usage:
9595
---
9696
### Date/Time
9797
#### date_spine ([source](macros/datetime/date_spine.sql))
98-
This macro returns the sql required to build a date spine. The spine will include the `start_date` (if it is aligned to the `datepart`), but it will not include the `end_date`.
98+
This macro returns the sql required to build a date spine. The spine will include the `start_date` (if it is aligned to the `datepart`), but it will not include the `end_date`.
9999

100100
Usage:
101101
```
@@ -111,9 +111,11 @@ Usage:
111111
#### haversine_distance ([source](macros/geo/haversine_distance.sql))
112112
This macro calculates the [haversine distance](http://daynebatten.com/2015/09/latitude-longitude-distance-sql/) between a pair of x/y coordinates.
113113

114+
Optionally takes a `unit` string parameter ('km' or 'mi') which defaults to miles (imperial system).
115+
114116
Usage:
115117
```
116-
{{ dbt_utils.haversine_distance(lat1=<float>,lon1=<float>,lat2=<float>,lon2=<float>) }}
118+
{{ dbt_utils.haversine_distance(lat1=<float>,lon1=<float>,lat2=<float>,lon2=<float>, unit='mi'<sting>) }}
117119
```
118120
---
119121
### Schema Tests

0 commit comments

Comments
 (0)