Skip to content

Instantly share code, notes, and snippets.

@peyo
Last active December 11, 2019 23:49
Show Gist options
  • Save peyo/df19f4411cad23a481595e93a8c970de to your computer and use it in GitHub Desktop.
Save peyo/df19f4411cad23a481595e93a8c970de to your computer and use it in GitHub Desktop.
Statue of Liberty geolocation using Google Geolocation, Geocoding, Places APIs
YouTube API
// 1
Subscription list
Endpoint: GET https://www.googleapis.com/youtube/v3/subscriptions
// 2
Parameter
parameter - data type - example
Required:
(1) part - string - contentDetails
Optional:
(1) forChannelID - string - UCzQUP1qoWDoEbmsQxvdjxgQ (This is the channel ID for PowerfulJRE)
This is how you would get the channel ID: https://stackoverflow.com/questions/14366648/how-can-i-get-a-channel-id-from-youtube
(2) order - string - relevance
---------------------
Geographic coordinates in JSON format
Need to enable Geolocation API, Geocoding API, and Places API
The Statue of Liberty
https://maps.googleapis.com/maps/api/geocode/json?components=address=new+york,+ny&key= // MY API KEY
Maybe
https://maps.googleapis.com/maps/api/geocode/json?address=new+york,
+ny&components=point_of_interest:"the statue of liberty"&key= // MY API KEY HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment