Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koldyr/googleplacesapibatchprocessor
Batch Processor to search specific type of places based on list of input data and defined search area with Google Places API
https://github.com/koldyr/googleplacesapibatchprocessor
batch google google-maps-api places-api processor
Last synced: 20 days ago
JSON representation
Batch Processor to search specific type of places based on list of input data and defined search area with Google Places API
- Host: GitHub
- URL: https://github.com/koldyr/googleplacesapibatchprocessor
- Owner: koldyr
- Created: 2018-08-17T10:08:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-24T15:10:40.000Z (about 2 years ago)
- Last Synced: 2024-04-28T05:10:09.521Z (8 months ago)
- Topics: batch, google, google-maps-api, places-api, processor
- Language: Java
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Places API Batch Processor
Batch Processor to search specific type of places based on list of input data and defined search area with Google Places API
It will accept input file with list of string as input query for Places API. As result json file with all found places will be generated. Structure of encoded data is following:
{
"placeId": string;
"name": string;
"address": string
"location": {
"lat": number,
"lng": number
},
"rating": number,
"elevation": number,
"fireStationDist": number
}Elevation and distance to nearest Fire Station is in meters.
You can run it as web or as command-line application. Command-line app has restriction to max 60 results per query - Google API limitation.
With Web application there is no such restriction but you need to provide area to bound your search.Command-line is started as follows: java com.koldyr.google.places.BatchProcessor api_key input_file output_file
* api_key - Google API key
* input_file - file with list of queries
* output_file - json file with resultsFor Web application you need to specify same params but in a different way:
* api_key - specify it in index.html
* input_file - specify it in init parameter "input" for DataServlet. By default queries should be put into "src\main\resources\input_all.txt" file
* output_file - specify it in init parameter "output" for DataServlet