Тёмный

Building something with the Zomato API to search for restaurants - March 9, 2019 Twitch Stream 

Eddie Zaneski
Подписаться 2,1 тыс.
Просмотров 10 тыс.
50% 1

Building a Zomato restaurant finder with my buddy Jarrett.
/ eddiezane
github.com/jar...

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 14   
@AbhishekKumar-yv6ih
@AbhishekKumar-yv6ih 4 года назад
I will request you to summarize(in 1-3 min) whatever the project is about , either at the exact start or at the absolute end . Please do this for all upcoming streams. At the end would be better, because you can also walk us through the code as well.
@milagrogonzalez4844
@milagrogonzalez4844 5 лет назад
i tried building in react app with this api key and the documentation was not helpful at all but im glad you guys figured it out
@SunilKumar-jj8bf
@SunilKumar-jj8bf 4 года назад
I am trying to fetch data from zomato location api, I followed the same instruction as you followed in search, but I am getting 2 errors: 1) post method not allowed, 2)Uncaught(in promise) syntax error- unexpected end of json input.. I have been trying to debug it from last 2 days but couldn't find anything... Please help me... I am giving the snippet of the code //The post method app.post('/getLocations', async (req, res) => { try { const q = req.body.q; const data = await z.getLocations({ // entity_type: 'city', query }) const restaurants = data.location_suggestions.map(r => { return { entityType: r.entity_type, entitiyId: r.entity_id, title: r.title, latitude: r.latitude, longitude: r.longitude, cityName: r.city_name, cityId: r.city_id, countryName: r.country_name, } }) res.json({ restaurants }) } catch (err) { console.error(err); res.status(500).send('error, here') } }) //and in this piece I am getting error searchForm.addEventListener('submit', async e => { e.preventDefault(); const query1 = (e.target.querySelector('#city-name').value); if (query1 === '') { return } e.target.querySelector('#city-name').value = ''; const res = await fetch('/getLocations', { headers: { 'Content-Type': 'application/x-www-form-urlencoded' // Accept: 'application/json', // 'Content-Type': 'application/json' }, method: 'POST', body: '${query1}' }) const json = await res.json(); populateData(json.restaurants) });
@lesllyfashion
@lesllyfashion Год назад
Is this API available in the US.
@seebrandt87
@seebrandt87 4 года назад
For those who are working with this API - If you enter your API key, your search parameter below the API key and click the "Try it out!" button, Zomato will return with a response as well as the request URL
@yadneshkhode3091
@yadneshkhode3091 3 года назад
zomato api was removed from its website can someone give another scraped zomato api website
@abdullahijaz1040
@abdullahijaz1040 5 лет назад
i want to create a online location based restaurant finder wep app , give me an idea about this , please
@giftedfingers2580
@giftedfingers2580 5 лет назад
Please Reply: Is there such a thing as live code editing in vim like V.S code has. I like to code and edit my website live on my localhost but vim doesn’t support live server.
@eddiezane
@eddiezane 4 года назад
This might be what you're looking for github.com/tapio/live-server. Every time you save a file it will reload the page. I've used this for years. Does that answer your question?
@AbhishekKumar-yv6ih
@AbhishekKumar-yv6ih 4 года назад
Does nodemon support?
@abdullahijaz1040
@abdullahijaz1040 5 лет назад
what you should use the language in this app?
@gan2005
@gan2005 5 лет назад
Which language did you use?
@giftedfingers2580
@giftedfingers2580 5 лет назад
Good to see your back....