public string obtenerLatLng_PorDir(string Direccion)
{
string HTML = string.Empty;
string resaux = string.Empty;
HTML = obtenerHTMLdeunaURl("https://www.google.com.ar/maps/place/" + Direccion);
if (HTML != null)
{
HTML = Regex.Split(HTML, "viewport:{center:{").ToList()[1];
resaux = HTML.Substring(0, HTML.IndexOf("},span:{lat:"));
resaux = Regex.Replace(resaux, "lat:", "");
resaux = Regex.Replace(resaux, "lng:", "");
}
return resaux;
}
obtiene latitud y longitud consultando por dirección con google maps
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.