I want to know how to create a custom post type

hello I want to know how to create a custom post type in wordpress webcam picture.
Empower users to publish photo taken by the webcam and publish.
if it's possible to also add their geolocation.

  thank you