<commit_before>places
======

Node.js app to get location data from Google places, Foursquare and others


Foursqure venues:
-----------------
https://api.foursquare.com/v2/venues/search?ll=41.0128,28.9744&client_id=[]&client_secret=[]&v=20130708

Details API
-----------
https://api.foursquare.com/v2/venues/42377700f964a52024201fe3?client_id=[]&client_secret=[]&v=20130708


Istanbul: ll=41.0128,28.9744


Google places
-------------

see https://developers.google.com/places/documentation/search#PlaceSearchRequests


https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.0128,28.9744&&radius=5000&types=food&sensor=false&key=[]

next page
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.0128,28.9744&&radius=5000&types=food&sensor=false&key=[]&pagetoken=<KEY>


Place details
https://maps.googleapis.com/maps/api/place/details/json?reference=CoQBcwAAACWsP1erWt82AZPucDajGu_Usny-f9xdEreWZc4IBEDhKhF7JSdRpRSxVnRigwtFYbIc8nnntbIQHxJxqy3j_VNVVvvo0NdcEYU2B4OMprMyEV_VRrvub0C_HBkjopH3X1gcgFWehZJoCC1i83I7TA--YMRSQ6-vt2pVXlUXjLkOEhDH-sl0tWbZImHMeBWr73PlGhQ7qHHIL1jpix5SiOPVZ9IJL3MYQg&sensor=false&key=[]<commit_msg>google places api<commit_after>places
======

Node.js app to get location data from Google places, Foursquare and others

Usage:

For Google Places API:

node gplaces [appId] [lat,lon] [number]

- appId the appId obtained from google
- lat,lon the the location
- number otpional

For foursquare Venues API:

node fsq [appId] [userKey] [lat,lon]



Foursqure venues:
-----------------
https://api.foursquare.com/v2/venues/search?ll=41.0128,28.9744&client_id=[]&client_secret=[]&v=20130708

Details API
-----------
https://api.foursquare.com/v2/venues/42377700f964a52024201fe3?client_id=[]&client_secret=[]&v=20130708

ll represents lat,lon coordinates. Example: Istanbul: ll=41.0128,28.9744.


Google places
-------------

see https://developers.google.com/places/documentation/search#PlaceSearchRequests


https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.0128,28.9744&&radius=5000&types=food&sensor=false&key=[]

next page
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.0128,28.9744&&radius=5000&types=food&sensor=false&key=[]&pagetoken=<KEY>


Place details
https://maps.googleapis.com/maps/api/place/details/json?reference=CoQBcwAAACWsP1erWt82AZPucDajGu_Usny-f9xdEreWZc4IBEDhKhF7JSdRpRSxVnRigwtFYbIc8nnntbIQHxJxqy3j_VNVVvvo0NdcEYU2B4OMprMyEV_VRrvub0C_HBkjopH3X1gcgFWehZJoCC1i83I7TA--YMRSQ6-vt2pVXlUXjLkOEhDH-sl0tWbZImHMeBWr73PlGhQ7qHHIL1jpix5SiOPVZ9IJL3MYQg&sensor=false&key=[]
{'fraction_non_alphanumeric': 0.15435203094777564, 'fraction_numerical': 0.09439071566731141, 'mean_word_length': 6.243697478991597, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5636702', 'n_tokens_mistral': 1246, 'n_tokens_neox': 1081, 'n_words': 101}