/// <summary> /// Returns the osm hash as a string. /// </summary> /// <param name="latitude"></param> /// <param name="longitude"></param> /// <returns></returns> public static string GetOsmHashAsString(double latitude, double longitude) { Tile tile = Tile.CreateAroundLocation(latitude, longitude, 15); return(OsmHash.GetOsmHashAsString( tile.X, tile.Y)); }
/// <summary> /// Returns the osm hash as a string. /// </summary> /// <param name="coordinate"></param> /// <returns></returns> public static string GetOsmHashAsString(GeoCoordinate coordinate) { return(OsmHash.GetOsmHashAsString(coordinate.Latitude, coordinate.Longitude)); }
public static string GetOsmHashAsString(double latitude, double longitude) { return(OsmHash.GetOsmHashAsString( OsmHash.lon2x(longitude), OsmHash.lat2y(latitude))); }