Archive for April, 2010

0097 | upic.me Geolocation Search API

Tuesday, April 13th, 2010 Posted in Misc | 5 Comments »

All APIs are returned in json format. No authentication is required but some api requests are cached so there may have some duplicate result during time.

API URL: http://upic.me/api.geolocation.php

parameters:
– lat : float => latitude (cannot be 0) min -90 max 90
– lng : float => longitude (cannot be 0) min -180 max 180

result:

array(
    "result" : string => 'success', 'empty', 'error',
    "count" : int => number of result found (only for result = 'success')
    "images" : array(
        array(
            "md5id" : string(32),
            "url" : string,
            "thumbnail" : string,
            "distance" : float,
            "lat" : float,
            "lng" : float,
        ),
        array(
            "md5id" : string(32),
            "url" : string,
            "thumbnail" : string,
            "distance" : float,
            "lat" : float,
            "lng" : float,
        ),
        ...
    )
    "message" : string => only if error occurred
)

Tags: ,