Receiving information shared by Google Maps

1

I have an application where you can share links! I do this by taking information from meta og with Jsoup:

  final Document doc = Jsoup.connect(url).get();

            final Elements itens = doc.select("meta[property^=og:]");

            if (itens.size() <= 0) {
                return null;
            }

            final ObjectPreview objectPreview = new ObjectPreview();
            objectPreview.url = url;

            for (int i = 0; i < itens.size(); i++) {
                Element tag = itens.get(i);

                String text = tag.attr("property");
                if ("og:image".equals(text)) {
                    objectPreview.image = tag.attr("content");
                } else if ("og:description".equals(text)) {
                    objectPreview.description = tag.attr("content");
                } else if ("og:title".equals(text)) {
                    objectPreview.title = tag.attr("content");
                }
            } 

I would like to get this information through the Google Maps App:

  • When shared with Maps in addition to the url, comes the name of the Location.
  • Eg: Restaurante Come come \n https://url/mapa/c0009080

    So far so good!

    (I made a nice game: split in http and good!)

  • When I try to get the elements (code above) I can not access this information!
  • How do I get this information (like WhatsApp does) from a link coming from Google Maps?

        
    asked by anonymous 11.01.2017 / 21:17

    0 answers