Commit 9d824965 authored by Deepak's avatar Deepak

Aligned and fixed view of documentation

parent 55a8eada
......@@ -54,18 +54,18 @@ UK Postcode Java API serving up Open Data from [Post Code](http://postcodes.io)
###7. Nearest postcodes for postcode
PostcodeLookup.nearestPostcode("ST4 2EU").asJson();
Limits number of postcodes matches to return based on <i>limit</i>. Defaults to 10. Needs to be less than 100.
Limits number of postcodes matches to return based on <i><b><u>limit</b></u></i>. Defaults to 10. Needs to be less than 100.
PostcodeLookup.nearestPostcode("ST4 2EU").limit(20).asJson();
Limits number of postcodes matches to return based on <i>radius</i>. Defaults to 100m. Needs to be less than 2,000m.
Limits number of postcodes matches to return based on <i><b><u>radius</b></u></i>. Defaults to 100m. Needs to be less than 2,000m.
PostcodeLookup.nearestPostcode("ST42EU").radius(100).asJson();
###8. Autocomplete a postcode partial
PostcodeLookup.autocomplete("ST4").asJson();
Limits number of postcodes matches to return based on <i>limit</i>. Defaults to 10. Needs to be less than 100.
Limits number of postcodes matches to return based on <i><b><u>limit</b></u></i>. Defaults to 10. Needs to be less than 100.
PostcodeLookup.autocomplete("ST4").limit(20).asJson();
......@@ -75,21 +75,21 @@ Limits number of postcodes matches to return based on <i>limit</i>. Defaults to
###10. Nearest outward code for outward code
PostcodeLookup.nearestOutwardCode("ST4").asJson();
Limits number of postcodes matches to return based on <i>limit</i> based on <i>limit</i>. Defaults to 10. Needs to be less than 100.
Limits number of postcodes matches to return based on <i><b><u>limit</b></u></i>. Defaults to 10. Needs to be less than 100.
PostcodeLookup.nearestOutwardCode("ST4").limit(5).asJson();
Limits number of postcodes matches to return based on <i>radius</i>. Defaults to 5,000m. Needs to be less than 25,000m.
Limits number of postcodes matches to return based on <i><b><u>radius</b></u></i>. Defaults to 5,000m. Needs to be less than 25,000m.
PostcodeLookup.nearestOutwardCode("ST4").radius(20000).asJson();
###11. Get nearest outward codes for a given longitude & latitude
PostcodeLookup.outcodeReverseGeocoding(0.637189329739338, 51.8051006359272).asJson();
Limits number of postcodes matches to return based on <i>limit</i> based on <i>limit</i>. Defaults to 10. Needs to be less than 100.
Limits number of postcodes matches to return based on <i><b><u>limit</b></u></i>. Defaults to 10. Needs to be less than 100.
PostcodeLookup.outcodeReverseGeocoding(0.637189329739338, 51.8051006359272).limit(20).asJson();
Limits number of postcodes matches to return based on <i>radius</i>. Defaults to 5,000m. Needs to be less than 25,000m.
Limits number of postcodes matches to return based on <i><b><u>radius</b></u></i>. Defaults to 5,000m. Needs to be less than 25,000m.
PostcodeLookup.outcodeReverseGeocoding(0.637189329739338, 51.8051006359272).radius(10000).asJson();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment