import { Http } from '../http/types' import { PoiSearchParams, PoiSearchResponse } from './types' import { toSnakeCase } from '../utils' export class PoiService { private url = 'poi' private http: Http constructor(http: Http) { this.http = http } search(params: PoiSearchParams) { return this.http.get( this.url, toSnakeCase>(params) ) } }