how to get your own location like google map?

I've just started building basic project and codes on Raspberry Pi. as I'm kinda new to Linux concepts and IOT related things. So I just want to know is there a way to get your own location as the one google map gives you. (eg: 1000 5th Ave, New York, NY 10028, USA). any python script, c++ code will work fine or is there any Google map API which I can use in my python, c, c++ code.