Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamd3vil/nim-geocoding
A simple library for Google geocoding API written in Nim language
https://github.com/iamd3vil/nim-geocoding
Last synced: 9 days ago
JSON representation
A simple library for Google geocoding API written in Nim language
- Host: GitHub
- URL: https://github.com/iamd3vil/nim-geocoding
- Owner: iamd3vil
- License: mit
- Created: 2015-05-17T10:03:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-19T12:10:45.000Z (over 9 years ago)
- Last Synced: 2024-04-19T20:58:32.606Z (7 months ago)
- Language: HTML
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
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-geocodingExample Program 1:
```nimrod
from geocoding import coordinates
from os import paramStrvar address = paramStr(1)
echo("The latittude is: ", coordinates(address)[0])
echo("The longitude is: ", coordinates(address)[1])
```Example Program 2:
```nimrod
from geocoding import coordinates
from os import paramStrvar 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:
```nimrod
from geocoding import formattedAddress
from os import paramStrvar address = paramStr(1)
apiKey = "Ab2ksk2nHSh2kkk2k1kk2jakw"
echo("The formatted address is: ", formattedAddress(address=address, apiKey=apiKey))
```Example Program 4:
```nimrod
from geocoding import reverseGeocodeapiKey = "Ab2ksk2nHSh2kkk2k1kk2jakw"
latitude = 24.2354
longitude = 12.56923
echo("The address is: ", reverseGeocode(lat=latitude, lng=longitude, apiKey=apiKey))
```