{"id":907,"date":"2024-01-28T13:15:02","date_gmt":"2024-01-28T13:15:02","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=907"},"modified":"2024-01-29T10:11:39","modified_gmt":"2024-01-29T10:11:39","slug":"get-city-districts","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=907","title":{"rendered":"Get city districts"},"content":{"rendered":"\r\n<h2>Get city districts<\/h2>\r\n<h5>AUTHORIZATIONS:&gt; <i>access_token<\/i><\/h5>\r\n<h5>PATH\u00a0PARAMETERS<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"cityId\">cityId required<\/td>\r\n<td>string<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h3>Responses<\/h3>\r\n<p><strong>200<\/strong><\/p>\r\n<p>Status 200<\/p>\r\n<h5>RESPONSE SCHEMA:\u00a0application\/json<\/h5>\r\n<p>Array<\/p>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"id\">id<\/td>\r\n<td>integer<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"city_id\">city_id<\/td>\r\n<td>integer<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"name\">name<\/td>\r\n<td>string<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"latitude\">latitude<\/td>\r\n<td>number\r\n<p>Latitude of center of district<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"longtitude\">longtitude<\/td>\r\n<td>number\r\n<p>Longtitude of center of district<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p>OLX Production Server<\/p>\r\n<p>https:\/\/www.olx.ro\/api\/partner\/cities\/{cityId}\/districts <code>GET\r\n\/cities\/{cityId}\/districts\r\nResponse samples\r\n200\r\nContent type\r\napplication\/json\r\n[\r\n{\r\n\"id\": 97,\r\n\"city_id\": 5659,\r\n\"name\": \"Anio\u0142ki\",\r\n\"latitude\": 54.36306,\r\n\"longitude\": 18.63193\r\n}\r\n]\t\t\t<\/code> <button>Copy<\/button> GET \/cities\/{cityId}\/districts Response samples 200 Content type application\/json [ { &#8220;id&#8221;: 97, &#8220;city_id&#8221;: 5659, &#8220;name&#8221;: &#8220;Anio\u0142ki&#8221;, &#8220;latitude&#8221;: 54.36306, &#8220;longitude&#8221;: 18.63193 } ] Copied to clipboard<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Get city districts AUTHORIZATIONS:&gt; access_token PATH\u00a0PARAMETERS cityId required string Responses 200 Status 200 RESPONSE SCHEMA:\u00a0application\/json Array id integer city_id integer name string latitude number Latitude of center of district longtitude number Longtitude of center of district OLX Production Server https:\/\/www.olx.ro\/api\/partner\/cities\/{cityId}\/districts GET \/cities\/{cityId}\/districts Response samples 200 Content type application\/json [ { &#8220;id&#8221;: 97, &#8220;city_id&#8221;: 5659, &#8220;name&#8221;:&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=907\" title=\"Read Get city districts\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/907"}],"collection":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=907"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/907\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}