Converts a JSON with locations into a map with points.