グーグルマップを表示するウェブサイトに使用するために、GPS座標をテキストファイルにコピーしています。以前は、phpスクリプトを使用してgps座標といくつかの長い文字列を取得し、表示できるkmlドキュメントを作成していました。それは最善の方法ではないようです。テキストファイルgpsinfo.txtがあり、開いたときに次のように見える4つのデータポイントの情報が含まれています。
7.784606,63.10403 7.784606,64.10403 7.784606,65.10403 7.784606,66.10403
そのテキストファイルを使用して、Webページに4つのポイントを作成するにはどうすればよいですか?
phpファイルを使用して自分のWebページで読み取れるjsファイルを作成することを考えていましたが、それは非常にクリーンな方法のようには思えません。