remove some useless "/" in URIs
parse the lat/lon for JSON