Warning while using file_get_contents for google api

后端 未结 5 912
刺人心
刺人心 2020-12-17 06:49

I am using this code for finding the lat lon of a location

$api=\'http://maps.googleapis.com/maps/api/geocode/json?address=United States Neversink&sensor         


        
5条回答
  •  盖世英雄少女心
    2020-12-17 06:50

    Use urlenocde function to encode your address like google map standard and change Http to https. Hope this will work for you

提交回复
热议问题