No description
Find a file
2015-05-19 13:28:12 +05:30
.gitignore Rename module name and add a binary in nimble file 2015-05-17 17:10:24 +05:30
documentation.html Added reverse geocoding 2015-05-19 13:15:50 +05:30
geocoding.nim Added reverse geocoding 2015-05-19 13:15:50 +05:30
LICENSE.md Create LICENSE.md 2015-05-17 16:00:39 +05:30
nim-geocoding.nimble Rename module name and add a binary in nimble file 2015-05-17 17:10:24 +05:30
README.md Update README.md 2015-05-19 13:28:12 +05:30

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))