Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks Joost, (blabla, handover informal stuff!) | |
I'm Ben, I'm part of OSM Belgium a board member of HOT and occasionally I contribute to missing maps but I'm also a member of the LCCWG and the OSMF. | |
I've been a part of the OSM community for more than 10 years now and from the beginning when we started with OSM Belgium we have been thinking about how we can reach mappers to help them get started and introduce them to our local community. | |
Basically our efforts were all about showing first time mappers OSM Belgium existed and OSM is not just a website where you can map the world but that there is entire community behind this. | |
The strategy here is two-fold, we need to inform new mappers that a community exists and we need the OSM enviroment to better reflect the way OSM works. |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Layers": [ | |
{ | |
"Version": 2, | |
"Name": "pand", | |
"Features": [ | |
{ | |
"Id": 0, | |
"Tags": [ | |
0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc; | |
using Nancy; | |
using Nancy.Security; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace Anyways.Nancy.API | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.DependencyInjection; | |
using Nancy.Owin; | |
using Microsoft.Extensions.Configuration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string value; | |
if(!routerDb.Meta.TryGetValue("bounds", out value)) | |
{ | |
throw new ConfigurationErrorsException("No bounds geometry configured."); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add way_id. | |
var eventsFilter = new OsmSharp.Streams.Filters.OsmStreamFilterDelegate(); | |
eventsFilter.MoveToNextEvent += (OsmSharp.OsmGeo osmGeo, object param) => | |
{ | |
if (osmGeo.Type == OsmSharp.OsmGeoType.Way) | |
{ | |
osmGeo.Tags.Add("way_id", osmGeo.Id.ToString()); | |
} | |
return osmGeo; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Searches for the closest point on the routing network that's routable for the given profiles. | |
/// </summary> | |
/// <returns></returns> | |
public static Result<RouterPoint> TryResolve2(this Router router, IProfileInstance[] profileInstances, float latitude, float longitude, | |
Func<RoutingEdge, bool> isBetter, float maxSearchDistance = Constants.SearchDistanceInMeter) | |
{ | |
try | |
{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"LineString","coordinates":[[-1.4125920534133911,52.999755859375],[-1.4130163192749023,52.999832153320312],[-1.413424015045166,52.999912261962891],[-1.4138739109039307,53.000026702880859],[-1.4142826795578003,53.000141143798828],[-1.4145554304122925,53.000209808349609],[-1.4150642156600952,53.000316619873047]]},"properties":{"edge_id":"55682","maxspeed":"30 mph","name":"Main Street","highway":"primary"}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[-1.4150642156600952,53.000316619873047],[-1.415223240852356,53.000347137451172],[-1.4153405427932739,53.0003662109375]]},"properties":{"edge_id":"55681","maxspeed":"30 mph","name":"Main Street","highway":"primary"}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[-1.4153405427932739,53.0003662109375],[-1.4154219627380371,53.000381469726562],[-1.4157880544662476,53.000442504882812],[-1.4160195589065552,53.000480651855469],[-1.41636323928833,53.00053024 |
NewerOlder