add json endpoint into location model