Skip to content

Commit

Permalink
Nicer formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbieh committed Aug 9, 2011
1 parent 80cd81d commit 4d0688c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Expand Up @@ -55,8 +55,16 @@ Note: the polygon coords must be in correct order!
Returns true or false

#### Example

`geolib.isPointInside({latitude: 51.5125, longitude: 7.485}, [{latitude: 51.50, longitude: 7.40}, {latitude: 51.555, longitude: 7.40}, {latitude: 51.555, longitude: 7.625}, {latitude: 51.5125, longitude: 7.625}]); // -> true`
<pre>
geolib.isPointInside(
{latitude: 51.5125, longitude: 7.485},
[
{latitude: 51.50, longitude: 7.40},
{latitude: 51.555, longitude: 7.40},
{latitude: 51.555, longitude: 7.625},
{latitude: 51.5125, longitude: 7.625}
]
); // -> true</pre>

### orderByDistance(object latlng, mixed coords)

Expand Down

0 comments on commit 4d0688c

Please sign in to comment.