abpframework / abp

Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
https://abp.io
GNU Lesser General Public License v3.0
12.86k stars 3.43k forks source link

Geolocation support #4120

Closed vd3d closed 4 years ago

vd3d commented 4 years ago

Hi,

Is there a way to support Geolocation data & geolocation queries.

For now, abp support basic types, but both:

Are specific by data provider, I mean that for Mongo it is GeoJsonPointby example. If I use GeoJsonPoint it is no more generic.

Also, by using linq, how can I do some geolocation based queries, by example get the closest item etc.

any idea ?

leonkosak commented 4 years ago

https://www.markopapic.com/finding-nearby-users-using-ef-core-spatial-data/

wjkhappy14 commented 4 years ago

Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite

Configure(options => { options.UseSqlServer(x => x.UseNetTopologySuite()); });

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.