Skip to content

halka/oreore-imakoko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copyright (c) 2011 a_halka http://www.rw12.net/

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

以下に定める条件に従い、本ソフトウェアおよび関連文書のファイル(以下「ソフトウェア」)の複製を取得するすべての人に対し、ソフトウェアを無制限に扱うことを無償で許可します。これには、ソフトウェアの複製を使用、複写、変更、結合、掲載、頒布、サブライセンス、および/または販売する権利、およびソフトウェアを提供する相手に同じことを許可する権利も無制限に含まれます。

上記の著作権表示および本許諾表示を、ソフトウェアのすべての複製または重要な部分に記載するものとします。

ソフトウェアは「現状のまま」で、明示であるか暗黙であるかを問わず、何らの保証もなく提供されます。ここでいう保証とは、商品性、特定の目的への適合性、および権利非侵害についての保証も含みますが、それに限定されるものではありません。 作者または著作権者は、契約行為、不法行為、またはそれ以外であろうと、ソフトウェアに起因または関連し、あるいはソフトウェアの使用またはその他の扱いによって生じる一切の請求、損害、その他の義務について何らの責任も負わないものとします。 

つかいかた
1.サーバとかの設定
php5で書きました。他のバージョンは知りません。
sqlite3を使ってます。使えるようにしてください。
データベースの準備をするために
createdb.phpを実行してください。

2.他に必要なもの
prototype.jsが必要ですのでダウンロードしてindex.phpとクライアントもどきのsp.htmlを適宜修正してください。(作った当時は1.6.1)
Google Maps API v3にもAPI KEYが必要になったみたいなので取得してsp.htmlのYOUR_GOOGLEMAPS_API_KEYのところに入れてください。
http://code.google.com/apis/maps/documentation/javascript/tutorial.html#api_key

3.つかう
なんとかしてGPSなりから緯度経度の値をとって10進法に変換してinsert.phpにGETで投げてください。
投げる値は以下のとおり
lat:緯度
lon:経度

4.画面の説明
最新の位置は赤い星、古い位置は黄色い丸です。
地図の下に一応ログが出ます。時間と緯度経度。

Usage
1.Requirements
"oreore imakoko" is running on PHP5 and SQLite3, I never known other PHP versions.

2.Setup
Download "prototype.js" and fix "index.php".(when I wrote, version 1.6.1)
For create database, run "createdb.php"

3.Update your position
In some way get position(GPS receiver etc...), then convert values for decimal notation.
send the latitude and longitude to insert.php by GET METHOD.
Values:
	lat:latitude
	lon:longitude
example:
	insert.php?lat=45.11223&lon=130.435452

4.Description for Screen
the lastet positon:red star
the past positon:yellow circle
logs are below the map.

About

オレオレ今こことして旅の記録に。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published