private string displayMap(string address, int zoom, string mapStyle, int width, int height) { GeocodeServices.Location latlong = GeocodeAddress(address); double latitude = latlong.Latitude; double longitude = latlong.Longitude; return(GetMapUri(latitude, longitude, zoom, mapStyle, width, height)); }
private string MapAddress(string address, int zoom, string mapStyle, int width, int height) { GeocodeServices.Location latlong = GeocodeAddress(address); if (latlong == null) { double latitude = 0; double longitude = 0; return(GetMapUri(latitude, longitude, zoom, mapStyle, width, height)); } else { double latitude = latlong.Latitude; double longitude = latlong.Longitude; return(GetMapUri(latitude, longitude, zoom, mapStyle, width, height)); } }