Main Socket features:
- google-geocoding/get-sublocality — get a sublocality name base on longitude and latitude
Install package in your project:
cd my_project
npm install @syncano/cli --save-dev
npm install @eyedea-sockets/google-geocoding --save
npx s deploy
Use it:
import Syncano from '@syncano/client'
const s = new Syncano(<instaneName>)
const params = {
latitude: '59.914620299999996',
longitude: '10.731760'
}
const suggestions = await s.get('google-geocoding/get-sublocality', params)