location tracking

I'm doing a project for my university degree and i was wanting to know about location sharing on my application.

2 Users open up my application, both users are able to share each others location. if 5 people open up the app, all 5 people can see each others location. 10 people open the app, all 10 people can see each others locations.

this is an out doors app, if you are in the mountains and want to track other trampers locations for safety reasons

You are able to do this in goggle maps with location sharing, can this API be moved into a custom app.