Skip to content
This repository was archived by the owner on Jan 25, 2021. It is now read-only.

Commit 1aca9fb

Browse files
Update readme.md
1 parent c8ea8aa commit 1aca9fb

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ geo::point([49.4883333, 8.4647222]);
1717
geo::point(['lat' => 49.4883333, 'lng' => 8.4647222]);
1818
```
1919

20+
Afterwards you can get the latitude and longitude values of the point like this:
21+
22+
```php
23+
$point = geo::point(49.4883333, 8.4647222);
24+
echo $point->lat();
25+
echo $point->lng();
26+
```
27+
2028
### geo::distance
2129

2230
Returns the distance between two geo points.
@@ -144,4 +152,4 @@ echo $page->location()->niceDistance($hamburg);
144152

145153
## Author
146154

147-
Bastian Allgeier <https://getkirby.com>
155+
Bastian Allgeier <https://getkirby.com>

0 commit comments

Comments
 (0)