Skip to content

Instantly share code, notes, and snippets.

@ridvanbaluyos
Last active June 14, 2017 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ridvanbaluyos/57e92f1c05b673a1fd1f907602062fc6 to your computer and use it in GitHub Desktop.
Save ridvanbaluyos/57e92f1c05b673a1fd1f907602062fc6 to your computer and use it in GitHub Desktop.
Kong Implementation for the MMDA API.
# See https://getkong.org
# Actual API Endpoint: http://rx-78-2.gundamserver.com/mmda-api/v1/traffic
# All Traffic Data
curl "http://ec2-52-77-210-176.ap-southeast-1.compute.amazonaws.com:8000/
-H "Host: rx-78-2.gundamserver.com" \
-H "apikey: ec5429707a7ac51cf0e66bbbd45ea88f"
# Traffic with Highway (eg. Ortigas Avenue)
curl "http://ec2-52-77-210-176.ap-southeast-1.compute.amazonaws.com:8000/ORTIGAS" \
-H "Host: rx-78-2.gundamserver.com" \
-H "apikey: ec5429707a7ac51cf0e66bbbd45ea88f"
# Traffic with Highway and Segment (eg. Ortigas Avenue, Meralco Avenue)
curl "http://ec2-52-77-210-176.ap-southeast-1.compute.amazonaws.com:8000/ORTIGAS/MERALCO_AVE" \
-H "Host: rx-78-2.gundamserver.com" \
-H "apikey: ec5429707a7ac51cf0e66bbbd45ea88f"
# Traffic with Highway, Segment, and Direction (eg. Ortigas Avenue, Meralco Avenue, North Bound)
curl "http://ec2-52-77-210-176.ap-southeast-1.compute.amazonaws.com:8000/ORTIGAS/MERALCO_AVE/NB" \
-H "Host: rx-78-2.gundamserver.com" \
-H "apikey: ec5429707a7ac51cf0e66bbbd45ea88f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment