Archive for the 'Geolocation' Category

 

Geolocation webservices notes

Oct 11, 2011 in Geolocation, WebServices

Zip code to geolocation service (zip to geolocation, postal code to geolocation)

http://www.webservicemart.com/uszip.asmx/ValidateZip?zipcode=95014

Bing geolocation query example

From: http://msdn.microsoft.com/en-us/library/ff701714.aspx

http://dev.virtualearth.net/REST/v1/Locations?CountryRegion=US&adminDistrict=WA&locality=Somewhere&postalCode=98001&addressLine=100%20Main%20St.&key=BingMapsKey

Or using a python script to exercise and experiment :


import os

# python qbing1.py

BKEY = 'BlahBlahMyBingKeyBluhBluh.'

def makeurl1():
    burl = 'http://dev.virtualearth.net/REST/v1/Locations'
    burl += '?CountryRegion=US'
    burl += '\&adminDistrict=WA'
    burl += '\&locality=Somewhere'
    burl += '\&postalCode=98001'
    burl += '\&addressLine=100%20Main%20St.'
    burl += '\&key=' + BKEY

    return burl;

def makeurl2():
    burl = 'http://dev.virtualearth.net/REST/v1/Locations'
    burl += '?CountryRegion=US'
    burl += '\&locality=San%20Francisco'
    burl += '\&postalCode=94121'
    burl += '\&addressLine=529%2029th%20Ave.'
    burl += '\&key=' + BKEY

    return burl;

burl = makeurl2()

print 'URL: ' + burl

sts = os.system("wget -O qbing1.json " + burl )

Yahoo (webservices) query language

http://developer.yahoo.com/yql/console/