The ultimate direction.
Is first recorded in his treatise “Against the Heresies” by St Irenaeus of Lyon, written towards the end of the second century, that there could be only four Gospels which authentically witness to the life of Christ because the Earth had four zones where people lived and there were also four principal winds coming from the cardinal points. Irenaeus thus identified the Evangelists, Matthew, Mark, Luke, and John, as the four pillars of the Church, the four authors of the true Gospels.
It seems to me that this is the first Christian document, we still do have, where the very fact that directions should follow theological ideas is brought about.
Today we have Google Maps and Mapbox that give us areas of interest, local events, trendy restaurants, things to do, or notable locations but they don’t give insights into the theological question, so I was surprised to read about Dan Gibson and his work: “Early Islamic Qiblas: A survey of mosques built between 1AH/622 C.E. and 263 AH/876 C.E.” where new archeological findings demonstrate that early Islamic mosques were not oriented toward Makkah. Using this data, modern technology, and satellite imaging, Gibson has discovered that early Islamic mosques were oriented to four different places.
Get Mauro Ghiani’s stories in your inbox
Join Medium for free to get updates from this writer.
So in order to display the data is possible to use React along with mapbox-gl with node.js and for the json a controller web.api .Net Core 2.2.
.Net Core has a build-in engine of dependency injection that allows to inject every controller with an particular implementation of an interface.
// get the HTTP context in any class that is managed by the ASP.NET // Core dependency injection system services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
services
.AddSingleton<IMosqueRepository, MosqueRepository>()
.AddSingleton<IFeatureService, FeatureService>()
.AddSingleton(configuration);
AutoMapperConfig.RegisterMappings();Remembering that “a dependency” is an object that another object requires, why is needed dependency injection?
- To replace the dependency with a different implementation, a class must be modified.
- If the dependency has dependencies, they must be configured by the class. In a large project with multiple classes, complexity grows and the code base becomes illegible.
- Without dependency injection is difficult to unit test any class with any dependency.
So the controller that gives out the location of each point is quite slim:
private readonly IFeatureService featureService;
public MarkerController(IFeatureService featureService) {this.featureService = featureService;} [HttpGet]
[Route("[action]")]
public Geo List() {return featureService.Get();}
you don’t need to know how the featureService Get is implemented as far as the IFeatureService interface is enforced.
And for the different direction given by the early Qiblas only god knows.
All the code is provided here:







