Skip to content

Instantly share code, notes, and snippets.

@marvinhosea
Last active April 8, 2020 15:39
Show Gist options
  • Save marvinhosea/8533fd4928b1ce87f42aefe37a8be8b1 to your computer and use it in GitHub Desktop.
Save marvinhosea/8533fd4928b1ce87f42aefe37a8be8b1 to your computer and use it in GitHub Desktop.
City response change log
- Removed lat and lat from area object body
- Added sw_lat, sw_lng, ne_lat, ne_lng to area object body as requested by Manu
Get all cities response
{
"status": true,
"cities": [
{
"id": 1,
"name": "Priceburgh",
"areas": [
{
"name": "Grimes Neck",
"id": 1,
"city_id": 1,
"sw_lat": "63.871058",
"sw_lng": "-60.080384",
"ne_lat": "-79.726026",
"ne_lng": "-121.371114"
},
{
"name": "Greenholt Ville",
"id": 2,
"city_id": 1,
"sw_lat": "57.454919",
"sw_lng": "129.297258",
"ne_lat": "17.764332",
"ne_lng": "143.770763"
},
{
"name": "Wiza Walk",
"id": 3,
"city_id": 1,
"sw_lat": "1.503322",
"sw_lng": "112.816894",
"ne_lat": "-45.699935",
"ne_lng": "59.075977"
}
]
}
]
}
Get City response
{
"status": true,
"cities": {
"id": 1,
"name": "Priceburgh",
"areas": [
{
"name": "Grimes Neck",
"id": 1,
"city_id": 1,
"sw_lat": "63.871058",
"sw_lng": "-60.080384",
"ne_lat": "-79.726026",
"ne_lng": "-121.371114"
},
{
"name": "Greenholt Ville",
"id": 2,
"city_id": 1,
"sw_lat": "57.454919",
"sw_lng": "129.297258",
"ne_lat": "17.764332",
"ne_lng": "143.770763"
},
{
"name": "Wiza Walk",
"id": 3,
"city_id": 1,
"sw_lat": "1.503322",
"sw_lng": "112.816894",
"ne_lat": "-45.699935",
"ne_lng": "59.075977"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment