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:
Eg: Restaurante Come come \n https://url/mapa/c0009080
(I made a nice game: split
in http
and good!)
How do I get this information (like WhatsApp does) from a link coming from Google Maps?