title: how to call google api of near by placess
body: <p>i wish to call near by places API of google maps:</p>
  
  <p><a href="https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=17.4359,78.3417&amp;radius=1000&amp;type=school&amp;key=" rel="nofollow noreferrer">https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=17.4359,78.3417&amp;radius=1000&amp;type=school&amp;key=</a>'KEy'</p>
  
  <p>when i call above link it is giving result but when i change the above link to below link</p>
  
  <p>'<a href="http://maps.googleapis.com/maps/api/place/nearbysearch/json?location=latitude,longitude&amp;type=school&amp;key=KEY" rel="nofollow noreferrer">http://maps.googleapis.com/maps/api/place/nearbysearch/json?location=latitude,longitude&amp;type=school&amp;key=KEY</a>'</p>
  
  <p>where <code>latitude=17.4359;longitude=78.3417</code> link is not giving near by places result array.
  Can't we send latitude,longitude dynamical?</p>
  
  <p>my code is:</p>
  
  <pre><code>let latitude=this.lat;
      let longitude= this.lng
  
  
  
     return this.http.get('https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=latitude,longitude&amp;radius=5000&amp;type=school&amp;sensor=false&amp;key=Key')
      .map(response=&gt;response.json())
      .subscribe(data=&gt;{
          // console.log("sucess "+JSON.stringify(data.results))
          this.schools=data.results
           console.log("school length "+this.schools.length)}}
  </code></pre>