Widespread adoption of electric vehicles (EVs) relies on a dependable public charging station (CS) network. CS locations should assure that vehicle users can reach the CS within the EV driving area. This study introduces a technique for optimal location and sizing of fast CSs (FCSs) that considers transportation loss, grid power loss and build-up costs. Google Maps API, battery state of charge, road traffic density and grid power losses are considered in the suggested method. A recently introduced binary lightning search algorithm is also implemented as an optimisation technique for FCS planning. The capability of the suggested method was tested in an urban area. Results reveal that the suggested technique can obtain the optimal location and sizing of FCS that can aid EV drivers, FCS builders and the utility grid. Furthermore, the suggested method obtained more realistic results compared with the traditional methods.