Permalink
Browse files

Merge branch 'master' of github.com:manuelbieh/Geolib

  • Loading branch information...
2 parents 6718a9d + 6579d35 commit 9a66090ce409a82f1a83165650ad0efc04fd69f5 @manuelbieh committed Oct 18, 2012
Showing with 4 additions and 8 deletions.
  1. +4 −8 README.md
View
@@ -74,28 +74,24 @@ geolib.isPointInside(
]
); // -> true</pre>
-
-### isPointInCircle(object latlng, object center, integer radius)
+<h3>isPointInCircle(object latlng, object center, integer radius)</h3>
Similar to is point inside: checks whether a point is inside of a circle or not.
Returns true or false
-
-#### Example
+<h4>Example</h4>
<pre>// checks if 51.525, 7.4575 is within a radius of 5km from 51.5175, 7.4678
geolib.isPointInCircle({latitude: 51.525, longitude: 7.4575}, {latitude: 51.5175, longitude: 7.4678}, 5000);</pre>
-
-### orderByDistance(object latlng, mixed coords)
+<h3>orderByDistance(object latlng, mixed coords)</h3>
Sorts an object or array of coords by distance from a reference coordinate
Returns a sorted array [{latitude: x, longitude: y, distance: z, key: property}]
-
-#### Examples
+<h4>Examples</h4>
<pre>
// coords array

0 comments on commit 9a66090

Please sign in to comment.