Plotting geolocations in map

Is it possible to get latitudes and longitudes from the user and plot those in a map.If yes can someone help me with the code.