Metamorph to actor or add to your own source code as submodule by
git submodule add https://github.com/apify-projects/store-here-maps here-maps`
See /src/main.js
, implemented approach allows to do any calls to Here API with predefined proxy URL and http request callback, therefore runnable from any version of Apify SDK or even without it.
- Must provide valid
proxyUrl
- Must provide reference to
requestAsBrowser
compatible withgotScraping
- Optional
log
forlog?.debug()
andlog?.error()
- The rest of the input passed "as is" to API wrappers
Data flow
- If initial lat-lng coordinates not provided actor will try to pickup results from first
geocoder()
match - For lat-lng from geocoding or input actor will
browsePlaces()
for places. - Without
radiusMeters
places limited by both amount (max 100) of results and distance, max known distance is 200km
Accepted categories from https://developer.here.com/documentation/places/dev_guide/topics/categories.html All root FP (permanent) categories added, from HERE categories for now added "PDS City halls" and "PDS Hotel or Motel".
Note: 900* PDS categories will not work - administrative data non-queriable by HERE API, leads to http400 error
{
status: 400,
message: 'None of the categories 900-9100-0000 is supported for querying'
}