From c4dcb06078115609711f0470752e16cf4ae4d0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A9=8D=E4=B8=B9=E5=B0=BC=20Dan=20Jacobson?= Date: Wed, 17 Apr 2024 21:24:28 +0800 Subject: [PATCH] Update specification.md , reordering to make more sense https://github.com/google/open-location-code/issues/580 --- docs/specification.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/specification.md b/docs/specification.md index bdb43c6b..92cd2c2d 100644 --- a/docs/specification.md +++ b/docs/specification.md @@ -35,6 +35,15 @@ The latitude number must be clipped to be in the range -90 to 90. The longitude number must be normalised to be in the range -180 to 180. +### Code length + +The minimum valid length of an Open Location Code is two digits. +The maximum length of an Open Location Code is 15 digits. + +Below 10 digits, only even numbers are valid lengths. + +The default length for most purposes is 10 digits. + ### Most significant 10 digits Summary: @@ -62,15 +71,6 @@ The following provides an algorithm to encode the values from least significant 1. Divide longitude by four and latitude by five. 1. Repeat from step 2 four more times. -### Code length - -The minimum valid length of an Open Location Code is two digits. -The maximum length of an Open Location Code is 15 digits. - -Below 10 digits, only even numbers are valid lengths. - -The default length for most purposes is 10 digits. - ### Formatting The format separator must be inserted after eight digits.