Example #1
0
        /// <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));
        }
Example #2
0
 /// <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));
 }
Example #3
0
 public static string GetOsmHashAsString(double latitude, double longitude)
 {
     return(OsmHash.GetOsmHashAsString(
                OsmHash.lon2x(longitude),
                OsmHash.lat2y(latitude)));
 }