Project using Gps stream

I’m using arduino mega, esp8266.
Is it necessary to use gps module to create a gps stream?

Not if your phone has GPS.

Depends on what you want to do ? For example if you want to make a tracker for your car, then yes you need a GPS module. The Arduino and ESP don’t come with a standard GPS module