I’m looking to test some code I’ve written and to do so I need to construct a variable of type Location and to give it a long / lat value but I’m unsure how I would do so. Any ideas?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The API documentation is quite clear on this. First create a new Location instance:
And then use the setter methods to set the location parameters you need, e.g.: