crawler-google-places/README.md

35 lines
1.3 KiB
Markdown
Raw Normal View History

2018-11-19 10:43:36 +00:00
# Crawler Google Places
2019-01-04 22:51:48 +00:00
Get data from Google Places, which official [Google Maps Places API](https://developers.google.com/places/web-service/search) does not provide.
2018-11-19 10:43:36 +00:00
2019-01-04 22:51:48 +00:00
## Why?
You can use official [Google Maps Places API](https://developers.google.com/places/web-service/search), it is better way for the most use cases.
But API doesn't provide:
2019-01-04 22:51:48 +00:00
- Popular place times histogram
- Place reviews (you can get up to 5 reviews from official API)
- Place photos (you can can up to 10 photos from official API)
## INPUT
Follow guide on [actor detail page](https://www.apify.com/drobnikj/crawler-google-places) to see how it works.
2018-11-20 10:52:10 +00:00
Example input:
```json
{
2019-01-04 22:51:48 +00:00
"searchString": "pubs near prague",
2018-11-20 14:50:56 +00:00
"lat": "50.0860729",
"lng": "14.4135326",
"zoom": 10
2018-11-20 10:52:10 +00:00
}
```
2019-01-04 22:51:48 +00:00
On this input actor searches places on this start url: https://www.google.com/maps/search/pubs+near+prague/@50.0860729,14.4135326,10z
2018-11-20 10:52:10 +00:00
- `searchString` - String will be search on Google maps
2018-11-20 14:56:23 +00:00
- `proxyConfig` - Apify proxy configuration
2018-11-20 14:29:46 +00:00
- `lat` - Viewport latitude
- `lng` - Viewport longitude
- `zoom` - Viewport zoom, e.g zoom: 10 -> https://www.google.com/maps/@50.0860729,14.4135326,10z vs zoom: 1 -> https://www.google.com/maps/@50.0860729,14.4135326,10z
2019-01-04 22:51:48 +00:00
- `maxCrawledPlaces` - Limit places you want to get from crawler
## OUTPUT
Once the actor finishes, it outputs results to actor default dataset.