title: php google map api how to handle json file
body: <p>I am working on a project where the user select an item, the server (php) retrieves the cell codes (and the geographic coordinates of these cells) connected to that item, and should create the Json file that will be used by the javascript in the client side to update the map.</p>
  
  <p>I think I understood that it is mandatory to create the json file that google map api will use to update the map.</p>
  
  <p>So how should i handle this in the server file? I mean, do i have to create a json file with random filename each time a request is done and then after return the json file to the client delete it or are there any different and better approach?</p>