code: def data_url(contents, domain=DEFAULT_DOMAIN):
      
      url = (domain + '#data=data:application/json,' +
             urllib.parse.quote(contents))
      return url
docs: Return the URL for embedding the GeoJSON data in the URL hash
  
      Parameters
      ----------
      contents - string of GeoJSON
      domain - string, default http://geojson.io