Mobile Final gathering.. November 30, 2006
Posted by oliviaccc in Uncategorized.trackback
Ideal Process:
text input from phone–>http request–>get geocoding result–>send back to phone and mark in a canvas–>caculate diatance between markers–>play music when the distance is shorter than blablabla…
1.Geocoding:
Using google, it is simple to just sending a request by entering the address, output format(could be xml,kml,csv..etc.) and your map api key, as what I’ve done for Tisch:
http://maps.google.com/maps/geo?q=721+Broadway,+New%20York,+NY&output=csv&key=ABQIAAAANU1h1CcuvxsgKtU7UJFsahTjbm9Hu27GUmpzMwBxmcjvYN_wNRTP5AAdgJAXEVbtxzS1XeQSP4KhwQ
Here we choose csv format and it returns 4 numbers, which are:
status code, accuracy, latitude, and longitude.
accuracy represent how much you specify your address, if you specify the exact number with street, city, and state,
it is usually 8, if you only provide street name, the accuracy rating will be 6.
For final, we will only use latitude and longtitude.
2.Marker Manager: mark the point that has done geocoding in a canvas in cell phone.
3.Caculate the distance between each marker in the canvas in cell phone.
4.do something based on the distance.
Although it would be great to have a group of built subway station geocoded in the canvas already…
.To be continued.
Comments»
No comments yet — be the first.