Latest stories

search_location

  • Inputs
{
    "lat": "latitude: float numeric, has dependency to long",
    "long": "longitude: float numeric, has dependency to lat",
    "term": "string"
}

  • Errors
{
    "invalid_location": "lat or long or both invalid",
    "must_login": "user must login"
}

  • Extra Description
Search location for term with and sort the results based on distance from current location

  • Sample
  • Url:
https://api.pantel.me/a/search_location?lat=25.7724603&long=102.4487439&term=hali
  • Output:
                                {
    "result": [
        {
            "base": 1,
            "boundingbox": [
                74.3387493,
                31.5238718,
                74.3459451,
                31.5118654
            ],
            "class": "highway",
            "display_name": "Hali Road,Lahore,Pakistan",
            "distance": 2807738.4279621565,
            "lat": 31.5182786,
            "lon": 74.3428596,
            "osm_id": 23815110,
            "type": "tertiary"
        },
        {
            "base": 2,
            "boundingbox": [
                74.3025159,
                31.5468036,
                74.3042156,
                31.546449
            ],
            "class": "highway",
            "display_name": "Hali Street,Lahore,Pakistan",
            "distance": 2811838.219126013,
            "lat": 31.5467275,
            "lon": 74.3028806,
            "osm_id": 546058201,
            "type": "residential"
        },
        {
            "base": 3,
            "boundingbox": [
                73.0115458,
                33.6108689,
                73.011696,
                33.6107103
            ],
            "class": "highway",
            "display_name": "Hali Road,Westridge,Rawalpindi Cantt,Pakistan",
            "distance": 2962358.929779303,
            "lat": 33.6108689,
            "lon": 73.011696,
            "osm_id": 23055641,
            "type": "residential"
        },
        {
            "base": 4,
            "boundingbox": [
                73.0106775,
                33.609093,
                73.0108423,
                33.6088394
            ],
            "class": "highway",
            "display_name": "Hali Road,Westridge,Rawalpindi Cantt,Pakistan",
            "distance": 2962411.5990048745,
            "lat": 33.6089233,
            "lon": 73.0107397,
            "osm_id": 73558045,
            "type": "residential"
        },
        {
            "base": 5,
            "boundingbox": [],
            "class": "place",
            "display_name": "Hali Ela,Uva,Sri Lanka",
            "distance": 3087870.1391876033,
            "lat": 6.9554538,
            "lon": 81.0313976,
            "osm_id": 2011981297,
            "type": "town"
        },
        {
            "base": 6,
            "boundingbox": [
                80.1634504,
                7.7065469,
                80.1638085,
                7.7062007
            ],
            "class": "landuse",
            "display_name": "Hali Wewa IA,Withikuliya,North Western Province,Sri Lanka",
            "distance": 3098526.647316742,
            "lat": 7.7063741,
            "lon": 80.1636302893,
            "osm_id": 652160639,
            "type": "farmland"
        },
        {
            "base": 7,
            "boundingbox": [
                80.1631835,
                7.7068266,
                80.1635469,
                7.7063216
            ],
            "class": "landuse",
            "display_name": "Hali Wewa IA,Withikuliya,North Western Province,Sri Lanka",
            "distance": 3098528.0501626134,
            "lat": 7.7065768,
            "lon": 80.1634217124,
            "osm_id": 652160642,
            "type": "farmland"
        },
        {
            "base": 8,
            "boundingbox": [
                80.1619792,
                7.7072612,
                80.1630655,
                7.7065927
            ],
            "class": "landuse",
            "display_name": "Hali Wewa IA,Withikuliya,North Western Province,Sri Lanka",
            "distance": 3098561.160376894,
            "lat": 7.7069303,
            "lon": 80.1626771017,
            "osm_id": 652160646,
            "type": "farmland"
        },
        {
            "base": 9,
            "boundingbox": [
                80.1628911,
                7.7062272,
                80.1651898,
                7.7039188
            ],
            "class": "landuse",
            "display_name": "Hali Wewa IA,Withikuliya,North Western Province,Sri Lanka",
            "distance": 3098585.057719253,
            "lat": 7.70509495,
            "lon": 80.1641110835,
            "osm_id": 652160659,
            "type": "farmland"
        },
        {
            "base": 10,
            "boundingbox": [
                80.161951,
                7.7068705,
                80.1632908,
                7.7053275
            ],
            "class": "landuse",
            "display_name": "Hali Wewa IA,Withikuliya,North Western Province,Sri Lanka",
            "distance": 3098617.767489287,
            "lat": 7.7060983,
            "lon": 80.1627585616,
            "osm_id": 652160649,
            "type": "farmland"
        },
        {
            "base": 74,
            "boundingbox": [
                18.670871,
                -34.0221711,
                18.6711212,
                -34.0222922
            ],
            "class": "highway",
            "display_name": "Hali Close,Khayelitsha,Western Cape,South Africa",
            "distance": 11046629.313054336,
            "lat": -34.0221711,
            "lon": 18.6711212,
            "osm_id": 32355526,
            "type": "residential"
        },
        {
            "base": 75,
            "boundingbox": [],
            "class": "place",
            "display_name": "Hali Murk,Arizona,United States of America",
            "distance": 12609239.654312737,
            "lat": 32.0011832,
            "lon": -112.2943008,
            "osm_id": 150971358,
            "type": "hamlet"
        }
    ],
    "status": "success",
    "time": 1547542057.5964851
}