Hawker (Food Centres) API

in #technology6 years ago

Follow my blog at http://blog.jael.ee

9047652840_112d237a57_k.jpg
Photo Credit: David Berkowitz (cc)

"A hawker centre or cooked food centre is an open-air complex in Indonesia, Singapore, Malaysia, Hong Kong, and the Riau Islands housing many stalls that sell a variety of inexpensive food. They are typically found in city centres, near public housing estates or transport hubs (such as bus interchanges or train stations)."

Since moving to Singapore last July, hawker centers (or hawker centres; depending on where you are from) have been one unique part of my daily life. Due to working in the central business district area aka CBD of Singapore it wasn't difficult to become a fan of few nearby hawker centers. Maxwell Food Centre and Amoy Street Food Centre are my personal favorites.

And I decided to create a simple API that would store (hopefully) the entire list of hawker centers in Singapore. I was able to find public data through local government websites such as data.gov.sg and www.nea.gov.sg which allowed the data set to be created fairly at ease. The Hawker API data set includes names of the hawkers, number of stalls at each location and their addresses along with GPS coordinates.

So here's the Hawker API endpoint:
https://api.jael.ee/datasets/hawker

Also, authentication is not required for this API. Which means that the API is completely public and can be anonymously accessed. The Hawker API has two parameters to filter the results returned - "name", "postalcode".

The "name" parameter supports partial filtering by adding an asterisk symbol(*) on both ends of the string being searched. Here's a sample name search result https://api.jael.ee/datasets/hawker?name=*amoy*
name_search.png

The "postalcode" parameter can be filtered by range, supported for double types. Search results for a particular region can be performed by adding two periods in between the range values. Here's a sample postalcode search result https://api.jael.ee/datasets/hawker?postalcode=069000..069999
postalcode_search.png

Lastly, this is a personal project for the purpose of demonstrating a sample use case, not intended for commercial use. For more details on the Hawker API please refer to the readme file available at https://github.com/leejaew/api.jael.ee/blob/master/hawker.md

Sort:  

Hi, we have voted on your post because you have posted your article to either food, recipe, recipes, cooking or steemkitchen #tag. Steemkitchen is a brand new initiative where we want to build a community/guild focused purely on the foodie followers and lovers of the steem blockchain. Steemkitchen is in the conceptual phase and we would love to hear your thoughts and ideas.

Please consider joining us at our new discord server https://discord.gg/XE5fYnk

Also please consider joining our curation trail on https://steemauto.com/ to help support each other in this community of food and recipe lovers.

Kind Regards

@steemkitchen

Coin Marketplace

STEEM 0.16
TRX 0.12
JST 0.026
BTC 57320.16
ETH 2472.81
USDT 1.00
SBD 2.31