Latest stories

search_location_nominatim

  • Inputs
{
    "base": "integer: has dependency to page: for sorting into multiple pages: optional",
    "lat": "latitude: float numeric, has dependency to long",
    "long": "longitude: float numeric, has dependency to lat",
    "page": "string: allowed: 'next', 'prev': has dependency to base: for sorting into multiple pages: optional",
    "term": "string"
}

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

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

  • Sample
  • Url:
https://api.pantel.me/a/search_location_nominatim?lat=25.7724603&long=102.4487439&term=*****
  • Output:
                                {
    "result": [
        {
            "base": 0,
            "boundingbox": [
                "7.339297",
                "7.339397",
                "122.2789004",
                "122.2790004"
            ],
            "class": "highway",
            "display_name": "Haji, Maria Clara Lobregat Highway, Zamboanga, Zamboanga City, Zamboanga Peninsula, Philippines",
            "distance": 2935257.4446180775,
            "icon": "/nominatim/images/mapicons/transport_bus_stop2.p.20.png",
            "importance": 0.101,
            "lat": "7.339347",
            "lon": "122.2789504",
            "osm_id": "4561063390",
            "osm_type": "node",
            "place_id": "3185834",
            "type": "bus_stop"
        },
        {
            "base": 1,
            "boundingbox": [
                "35.2277649",
                "35.2377649",
                "134.2207628",
                "134.2307628"
            ],
            "class": "railway",
            "display_name": "\u571f\u5e2b, \u571f\u5e2b\u505c\u8eca\u5834\u7dda, \u4e45\u5fd7\u8c37, \u667a\u982d\u753a, \u516b\u982d\u90e1, \u9ce5\u53d6\u770c, \u4e2d\u56fd\u5730\u65b9, 6891434, \u65e5\u672c",
            "distance": 3204591.2871833155,
            "icon": "/nominatim/images/mapicons/transport_train_station2.p.20.png",
            "importance": 0.001,
            "lat": "35.2327649",
            "lon": "134.2257628",
            "osm_id": "267059656",
            "osm_type": "node",
            "place_id": "126164",
            "type": "station"
        },
        {
            "base": 2,
            "boundingbox": [
                "11.2584086",
                "11.2585139",
                "75.8046018",
                "75.8047068"
            ],
            "class": "landuse",
            "display_name": "Haji, Thiruthiyad, Kozhikode Municipal Corporation, Kozhikode, Kerala, 673007, India",
            "distance": 3228856.6218995578,
            "importance": 0.15,
            "lat": "11.25846815",
            "lon": "75.8046567684354",
            "osm_id": "242474890",
            "osm_type": "way",
            "place_id": "16093430",
            "type": "residential"
        },
        {
            "base": 3,
            "boundingbox": [
                "24.9406021",
                "24.9407021",
                "67.0120986",
                "67.0121986"
            ],
            "class": "amenity",
            "display_name": "haji, Shahrah e Qaddafi, Banaras Town, \u06aa\u0631\u0627\u0686\u064a Karachi, Kar\u0101chi District, \u0633\u0646\u068c, 74700, \u200f\u067e\u0627\u06a9\u0633\u062a\u0627\u0646\u200e",
            "distance": 3551166.5528574595,
            "icon": "/nominatim/images/mapicons/food_restaurant.p.20.png",
            "importance": 0.111,
            "lat": "24.9406521",
            "lon": "67.0121486",
            "osm_id": "5088577388",
            "osm_type": "node",
            "place_id": "3786061",
            "type": "restaurant"
        },
        {
            "base": 4,
            "boundingbox": [
                "23.64995",
                "23.65005",
                "56.03995",
                "56.04005"
            ],
            "class": "natural",
            "display_name": "\u0637\u0648\u064a \u062d\u062c\u064a, \u0642\u0631\u0648\u0646 \u0627\u0644\u0635\u0641\u064a\u0627, \u0645\u062d\u0627\u0641\u0638\u0629 \u0627\u0644\u0638\u0627\u0647\u0631\u0629, \u0639\u0645\u0627\u0646",
            "distance": 4669733.63970713,
            "importance": 0.001,
            "lat": "23.65",
            "lon": "56.04",
            "osm_id": "1721808169",
            "osm_type": "node",
            "place_id": "1102973",
            "type": "spring"
        }
    ],
    "status": "success",
    "time": 1547540497.5102475
}