I was coming from work and noticed a Pittsburg City Cop ahead of me getting on the freeway from the city of Martinez on ramp, he stayed on the right lanes because his exit would be coming next in order to exit freeway 680 into Hiway 4 to go back to the City of Pittsburg Ca. which it is located approx 5 to 10 miles away. He was obviously returning from Martinez California where the Contra Costa County jail and County court resides.
Since I was merging into the left side of the freeway I punched the gas and my car got up pretty fast to 85mph. I passed him while his lanes were slowing down due to exiting traffic, I looked back in the mirror and noticed that he had pulled out of the right lanes and decided to follow me and turn on his lights. Gave me a ticket after I exited the freeway. The ticket indicates that I have to appear in the city of Pittsburg courthouse. Is he within his rights to issue a ticket that far away from his city, and why is the city of Pittsburg collecting on an infraction that happened in a state freeway.
Thanks.

