Recently the Fermi Gamma-ray Space Telescope recorded the most energetic Gamma Ray burst (GRB 130427A) yet observed with a peak $\gamma \mathrm{-ray}$ energy of $94\, \mathrm{GeV}$. Various sources have reported that the burst was determined to be $3.6 \times 10^9\, \mathrm{lightyears}$ away.
How can a distance measurement like this be made so quickly? It has only been a few days since the GRB. No articles mention any supernova remnant being seen yet or anything else besides just the GRB. I don't see how the photons in a GRB could have absorption or emission spectra that would help and there isn't any mention of the GRB being localized to a particular galaxy.
The burst subsequently was detected in optical, infrared and radio wavelengths by ground-based observatories, based on the rapid accurate position from Swift. Astronomers quickly learned that the GRB was located about 3.6 billion light-years away, which for these events is relatively close.
How are distance measurement like this made so quickly and what sort of accuracy do they have?