Browse files

Update README.md

Broken headline workaround
  • Loading branch information...
1 parent a3772fb commit 6579d35a50a6c98c2d8d887e79909ffb1c262a79 @manuelbieh committed Oct 8, 2012
Showing with 4 additions and 8 deletions.
  1. +4 −8 README.md
View
12 README.md
@@ -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 6579d35

Please sign in to comment.