/// <summary> /// Gets all features around the given location as geojson. /// </summary> public static string GetGeoJsonAround(this RouterDb db, float latitude, float longitude, float distanceInMeter = 250, bool includeEdges = true, bool includeVertices = true) { var coordinate = new Coordinate(latitude, longitude); var north = coordinate.OffsetWithDirection(distanceInMeter, Navigation.Directions.DirectionEnum.North); var south = coordinate.OffsetWithDirection(distanceInMeter, Navigation.Directions.DirectionEnum.South); var east = coordinate.OffsetWithDirection(distanceInMeter, Navigation.Directions.DirectionEnum.East); var west = coordinate.OffsetWithDirection(distanceInMeter, Navigation.Directions.DirectionEnum.West); return(db.GetGeoJsonIn(south.Latitude, west.Longitude, north.Latitude, east.Longitude, includeEdges, includeVertices)); }