Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. [
  2. {
  3. "post_id": 77,
  4. "post_title": "Delhi",
  5. "post_content": "DelhiDelhiDelhi",
  6. "post_date": "2017-07-24 11:47:08",
  7. "imageurl": false,
  8. "cat_name": [
  9. {
  10. "term_id": 7,
  11. "name": "FOODIE",
  12. "slug": "foodie",
  13. "category_parent": 0
  14. }
  15. ],
  16. "longitude": "75.857849",
  17. "latitude": "33.888586",
  18. "region_name": "Asia"
  19. },
  20. {
  21. "post_id": 75,
  22. "post_title": "Goa",
  23. "post_content": "this is goa",
  24. "post_date": "2017-07-24 11:03:59",
  25. "imageurl": false,
  26. "cat_name": [
  27. {
  28. "term_id": 7,
  29. "name": "FOODIE",
  30. "slug": "foodie",
  31. "category_parent": 0
  32. }
  33. ],
  34. "longitude": "75.857849",
  35. "latitude": "33.888586",
  36. "region_name": "Asia"
  37. }]
  38.  
  39. this.MapData.forEach(map => {
  40. this.Mapdatalist.push({
  41. postid: map.post_id,
  42. regionname: map.region_name,
  43. longitude: map.longitude
  44.  
  45. });
  46. });
  47.  
  48. for (let data of this.MapData)
  49. {
  50. console.log("error",data);
  51.  
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement