Reputation: 3316
I am working on an android application where I have integrated google map and added marker on it at user's current location. I have used location API for tracking users location. Now client wants me to show this marker in the middle of the country where user resides instead of his location.
I haven't found any way of doing that yet. Is it possible to achieve that? Any help would be greatly appreciated.
Thanks
Upvotes: 2
Views: 408
Reputation: 1007296
Step #1: Create yourself a database of the locations of middles of countries, for whatever your definition is of "middle".
Step #2: Ask the user in which country she resides.
Step #3: Look up the location of the middle of that country in the database from Step #1.
Step #4: Put a marker at that location.
Upvotes: 1