cs27x / team2

0 stars 0 forks source link

Need some sort of basic Location class for testing #4

Open jdkoola opened 10 years ago

jdkoola commented 10 years ago

Atleast something with latitude and longitude as doubles with getters and setters

schoenmh commented 10 years ago

SO Android already has a Location Class, and that is what will be created/used when we call into Location. As a result the name isn't Location class because then java gets confused about having two Location classes being used in the same class, so our class name was changed to myLocation. This is obviously alterable. I set it up so that two doubles can be passed in and the underlying Location gets those latitiudes and longitudes set.

The advantage of using their premade class has to do with when we must get a current location and calculating distance between locations.

jdkoola commented 10 years ago

Awesome, good job man. Can you please upload a branch so I can finish testing/integration with your new MyLocation class?

schoenmh commented 10 years ago

Yes, I can but I'm having trouble adding a class to my branch in my eclipse, because the thing isn't technically a project it doesnt seem to import correctly into my package explorer. Do you have any ideas about this?

schoenmh commented 10 years ago

Figure it out, on my branch there is a myLocation class now.