nim-geocoding
Library for Google Maps geocoding API.
Summary
| Latest Version | 0.1.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-08-31 07:14 |
Tags
Authors
- Sarat Chandra <saratchandra.outlook.com>
Installation
nimble install nim-geocoding
choosenim install nim-geocoding
git clone https://github.com/saratchandra92/nim-geocoding
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| nim-geocoding | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/saratchandra92/nim-geocoding |
|---|---|
| Homepage | https://github.com/saratchandra92/nim-geocoding |
| Registry Source | nimble_official |
README
nim-geocoding
This is a Library for Google Maps Geocoding API. Currently it only supports getting Coordinates, a formatted address and reverse Geocoding. You can use an public API key if you want (Optional). You can find addtional documentation at http://saratchandra92.github.io/nim-geocoding
Example Program 1:
from geocoding import coordinates
from os import paramStr
var address = paramStr(1)
echo("The latittude is: ", coordinates(address)[0])
echo("The longitude is: ", coordinates(address)[1])
Example Program 2:
from geocoding import coordinates
from os import paramStr
var address = paramStr(1)
apiKey = "Ab2ksk2nHSh2kkk2k1kk2jakw"
echo("The latittude is: ", coordinates(address=address, apiKey=apiKey)[0])
echo("The longitude is: ", coordinates(address=address, apiKey=apiKey)[1])
Example Program 3:
from geocoding import formattedAddress
from os import paramStr
var address = paramStr(1)
apiKey = "Ab2ksk2nHSh2kkk2k1kk2jakw"
echo("The formatted address is: ", formattedAddress(address=address, apiKey=apiKey))
Example Program 4:
from geocoding import reverseGeocode
apiKey = "Ab2ksk2nHSh2kkk2k1kk2jakw"
latitude = 24.2354
longitude = 12.56923
echo("The address is: ", reverseGeocode(lat=latitude, lng=longitude, apiKey=apiKey))