Module

class/cityService

Methods

# async GetCities() → {Promise.<object>}

Gets all of the cities names

View Source src/services/cityService.js, line 15

Promise.<object>

# async GetCity(cityCode) → {Promise.<object>}

Gets city name from given city code

Parameters:
Name Type Description
cityCode string

city plate number

View Source src/services/cityService.js, line 28

Promise.<object>

# async GetDistrict(cityCode) → {Promise.<object>}

Gets district name from given city code

Parameters:
Name Type Description
cityCode string

city plate number

View Source src/services/cityService.js, line 43

Promise.<object>

# async GetNeighborhoods(districtId) → {Promise.<object>}

Gets neighborhoods name from given city code

Parameters:
Name Type Description
districtId number

View Source src/services/cityService.js, line 58

Promise.<object>