Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the olc Reference Manual, version 1.0, generated automatically by Declt version 3.0 "Montgomery Scott" on Sun May 15 05:42:25 2022 GMT+0.
• Introduction | What olc is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
#+TITLE: olc This is a Common Lisp library to convert coordinates between Latitude/Longitude and Open Location Code. * API In the library, latitude and longitude are represented by real numbers (degrees), positive for northern latitude and eastern longitudes, and negative for southern latitude and western longitudes. #+BEGIN_SRC lisp (lat/lon->olc latitude longitude &optional extra-precision) -> string #+END_SRC Return the Open Location Code for the given /latitude/ and /longitude/. If /extra-precision/ is not ~nil~, an 11 digit code will be returned instead of a 10 digit one. #+BEGIN_SRC lisp (olc->lat/lon code &optional center-p) -> list #+END_SRC Return the latitude and longitude for the southwest corner of the given Open Location /Code/ square, or the center of the square if /center-p/ is not ~nil~. * Examples Load the library: #+BEGIN_SRC lisp > (asdf:load-system "olc") ... #+END_SRC Get the Open Locator Code for the Nairobi Youth Sports Organization and Information Centre in Kibera, Nairobi: #+BEGIN_SRC lisp > (olc:lat/lon->olc -1.314121 36.798829 t) "6GCRMQPX+9G4" #+END_SRC Get back the latitude and longitude of the Nairobi Youth Sports Organization and Information Centre in Kibera, Nairobi: #+BEGIN_SRC lisp > (olc:olc->lat/lon "6GCRMQPX+9G4" t) (-1.3141125000000042d0 36.798828125d0) #+END_SRC * Tests The tests require the /fiveam/ library. #+BEGIN_SRC lisp (asdf:test-system "olc") #+END_SRC
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The olc system |
Guillaume Le Vaillant
GPL-3
Convert coordinates between Latitude/Longitude and Open Location Code.
1.0
olc.asd (file)
olc.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The olc.asd file | ||
• The olc/olc.lisp file |
Next: The olc/olc․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
olc.asd
olc (system)
Previous: The olc․asd file, Up: Lisp files [Contents][Index]
olc (system)
olc.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The olc package |
olc.lisp (file)
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions |
Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
Return the Open Location Code for the given LATITUDE and LONGITUDE.
Return the latitude and longitude for the southwest corner of the given Open Location Code square, or the center of the square if CENTER-P is not NIL.
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L O |
---|
Jump to: | F L O |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | F L O |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
F | |||
Function, lat/lon->olc : | Exported functions | ||
Function, olc->lat/lon : | Exported functions | ||
| |||
L | |||
lat/lon->olc : | Exported functions | ||
| |||
O | |||
olc->lat/lon : | Exported functions | ||
|
Jump to: | F L O |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | O P S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
O | |||
olc : | The olc system | ||
olc : | The olc package | ||
| |||
P | |||
Package, olc : | The olc package | ||
| |||
S | |||
System, olc : | The olc system | ||
|
Jump to: | O P S |
---|