Skip to content

Points of Interest (POIs)

Stable
Only available in Canada

Points of interest (POIs) near a location can be accessed via Local Logic’s /nearby endpoint, documented below. The following categories of POIs are available. Note that not all POI categories are available in all locations.

CategoryPOI Category Name
Score IconGroceriesgroceries
Score IconShoppingshopping
Score IconNightlifenightlife
Score IconRestaurantsrestaurants
Score IconCafescafes
Score IconDaycaresdaycares
Score IconPrimary Schoolsprimary_schools
Score IconHigh Schoolshigh_schools
Score IconTransit friendlytransit_friendly
Score IconParksparks

Attribution and restrictions (applies for locations in Canada only):

If you want to display the POIs on your page or has a pins on a map, you must show the HTML snippet provided (/meta/attribution/html) for all the POI categories in the restriction list (/meta/attribution/restriction).

QueryString Request Parameters

ParameterStatusDescription
latrequiredA decimal number between -90 and 90 (Latitude)
lngrequiredA decimal number between -180 and 180 (Longitude)
keyrequiredThe API Key provided to you
includeoptionalPOI Category Names separated by commas. See the table above for a full list of available categories. If no category is specified, all POI categories will be returned.

NodeJS example

require('request')({
method: 'GET',
url: 'https://api.locallogic.co/v1/nearby',
qs: {
lat: 45.5656,
lng: -73.5656,
key: 'YOUR_API_KEY',
include: 'restaurants,groceries',
}
}, function (err, response, body) {
// See response example
})

200 - Response example

{
"data": {
"type": "nearby",
"attributes": {
"restaurants": [
{
"name": "Le Caractère Chinois",
"address": "1870, rue Gauthier",
"lat": 45.5303419,
"lng": -73.5666824,
"url": "http://www.yellowpages.ca/bus/2160520",
"walking_time": 2.65,
"icon": "https://cdn.locallogic.co/icons-svg/i9001015.svg"
},
{
"name": "Prince D'Orient",
"address": "2120, rue Sherbrooke E",
"lat": 45.5311451,
"lng": -73.5629056,
"url": "http://www.yellowpages.ca/bus/2825810",
"walking_time": 5.4,
"icon": "https://cdn.locallogic.co/icons-svg/i9001015.svg"
},
{
"name": "Restaurant Prince D'Orient",
"address": "2120, rue Sherbrooke E",
"lat": 45.5311451,
"lng": -73.5629056,
"url": "http://www.yellowpages.ca/bus/2826009",
"walking_time": 5.4,
"icon": "https://cdn.locallogic.co/icons-svg/i9001015.svg"
},
{
"name": "Maam Bolduc",
"address": "4351, av de Lorimier",
"lat": 45.534299,
"lng": -73.570159,
"url": "http://www.yellowpages.ca/bus/2497768",
"walking_time": 5.775,
"icon": "https://cdn.locallogic.co/icons-svg/i9001015.svg"
},
{
"name": "CocoOBac",
"address": "4325, av Papineau",
"lat": 45.53153,
"lng": -73.5715546,
"url": "http://www.yellowpages.ca/bus/100908389",
"walking_time": 6.35,
"icon": "https://cdn.locallogic.co/icons-svg/i9001015.svg"
}
],
"groceries": [
{
"name": "Metro",
"address": "2008, rue Gauthier",
"lat": 45.5312672,
"lng": -73.565782,
"url": "http://www.yellowpages.ca/bus/4073728",
"walking_time": 1.3625,
"icon": "https://cdn.locallogic.co/icons-svg/i9001014.svg"
},
{
"name": "Les Diablotins Gourmands",
"address": "2021, rue Gauthier",
"lat": 45.5313434,
"lng": -73.5657383,
"url": "http://www.yellowpages.ca/bus/8009860",
"walking_time": 1.475,
"icon": "https://cdn.locallogic.co/icons-svg/i9001014.svg"
},
{
"name": "Epicerie Kun Teng Inc",
"address": "4216, av de Lorimier",
"lat": 45.5329776,
"lng": -73.5678024,
"url": "http://www.yellowpages.ca/bus/6123459",
"walking_time": 2.7625,
"icon": "https://cdn.locallogic.co/icons-svg/i9001014.svg"
},
{
"name": "Contact Dc",
"address": "4050, rue Cartier",
"lat": 45.5308944,
"lng": -73.5681979,
"url": "http://www.yellowpages.ca/bus/6854835",
"walking_time": 3.6,
"icon": "https://cdn.locallogic.co/icons-svg/i9001014.svg"
},
{
"name": "Boucherie Des Erables",
"address": "4066, av des Érables",
"lat": 45.5331144,
"lng": -73.5662828,
"url": "http://www.yellowpages.ca/bus/4032043",
"walking_time": 3.9,
"icon": "https://cdn.locallogic.co/icons-svg/i9001014.svg"
}
]
}
},
"meta": {
"attribution": {
"html": "<span class='yp-attribution'>(business listings <a href='http://badge.YellowAPI.com' target='_blank'><img src='https://cdn.locallogic.co/PoweredByYellowAPI-png-LB.png' height='18' width='78'/></a>)</span>",
"restrictions": [
"groceries",
"restaurants",
"nightlife",
"cafes",
"daycares",
"shopping"
]
}
}
}
Edit this page on GitHub
1 contributorjpvalery
Last edited by jpvalery on July 20, 2020