LocationsResource
Defined in: sdks/n11/src/resources/locations.ts:43
Address reference data (SOAP CityService): cities, districts and
neighborhoods.
Source: api.n11.com/ws/CityService.wsdl and the 2020 SOAP manual (the new
portal has no page for it; n11 said on 2026-10-13 that cities stay on SOAP).
Verified on n11’s test store on 2026-10-16.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LocationsResource(
transport):LocationsResource
Defined in: sdks/n11/src/resources/locations.ts:44
Parameters
Section titled “Parameters”transport
Section titled “transport”Returns
Section titled “Returns”LocationsResource
Methods
Section titled “Methods”getCities()
Section titled “getCities()”getCities():
Promise<N11City[]>
Defined in: sdks/n11/src/resources/locations.ts:47
The 81 Turkish cities (GetCities), in n11’s order (alphabetical, by Turkish name).
Returns
Section titled “Returns”Promise<N11City[]>
getCity()
Section titled “getCity()”getCity(
cityCode):Promise<N11City>
Defined in: sdks/n11/src/resources/locations.ts:57
One city by plate code (GetCity). A code n11 does not know fails with
SELLER_API.invalidAttributeValue (ValidationError). n11 also answers
some codes that getCities does not list (99 was “Novosibirsk”).
Parameters
Section titled “Parameters”cityCode
Section titled “cityCode”string | number
Returns
Section titled “Returns”Promise<N11City>
getDistricts()
Section titled “getDistricts()”getDistricts(
cityCode):Promise<N11District[]>
Defined in: sdks/n11/src/resources/locations.ts:70
Districts of a city (GetDistrict), by plate code (N11City.code, not
its id). An unknown code answers with an empty list.
Parameters
Section titled “Parameters”cityCode
Section titled “cityCode”string | number
Returns
Section titled “Returns”Promise<N11District[]>
getNeighborhoods()
Section titled “getNeighborhoods()”getNeighborhoods(
districtId):Promise<N11District[]>
Defined in: sdks/n11/src/resources/locations.ts:80
Neighborhoods of a district (GetNeighborhoods). An unknown id answers with an empty list.
Parameters
Section titled “Parameters”districtId
Section titled “districtId”string | number
Returns
Section titled “Returns”Promise<N11District[]>
Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.