Google API使用PHP发送坐标并获取地址?

时间:2016-09-16 12:10:04

标签: php google-api geocoding

是否可以发送lat / lng并获取地址?我知道这可能反过来了。

1 个答案:

答案 0 :(得分:0)

用谷歌搜索它。 (在询问之前应该这样做)

来源:https://developers.google.com/maps/documentation/geocoding/start

public boolean playURL(final String playURL, int makeBig, final int ts){
    try{
        Player.current_url = playURL;
        final String hour = Utils.getHourFromUrl(playURL);
        final String date = Utils.getDateFromUrl(playURL);
        currentPlayingDate = date;    

        int minutes = ts/60;
        String minuteToSet = Utils.appendZeros(String.valueOf(minutes));

        final String dateString = hour+":"+minuteToSet;

        currentPlayingTime = dateString;

        stateHandler.removeCallbacksAndMessages(null);
        MainActivity.mediaPlayer.reset();
        MainActivity.mediaPlayer.setDataSource(playURL);
        MainActivity.mediaPlayer.prepare();
        MainActivity.mediaPlayer.seekTo(ts * 1000);

        //some more code 
}