1: \begin{abstract}
2: The knot coloring polynomial defined by Eisermann for a finite pointed group
3: is generalized to an infinite pointed group as the {\it longitudinal mapping invariant} of a knot. In turn this can be
4: thought of as a generalization of the quandle 2-cocycle invariant for finite quandles.
5: If the group is a topological group then this invariant can be thought of a topological
6: generalization of the 2-cocycle invariant.
7: The longitudinal mapping invariant is based on a meridian-longitude pair in the knot group. We also give an interpretation of the invariant in terms of quandle colorings of a 1-tangle for generalized Alexander quandles without use of a meridian-longitude pair in the knot group.
8: The invariant values are concretely evaluated for the torus knots $T(2,n)$, their mirror images, and the figure eight knot for the group $\SU$.
9: \end{abstract}
10: