microsoft / bingmapssdstoolkit Goto Github PK
View Code? Open in Web Editor NEWThis toolkit makes it easy to use the Bing Maps Spatial Data Services (SDS) in .NET
License: MIT License
This toolkit makes it easy to use the Bing Maps Spatial Data Services (SDS) in .NET
License: MIT License
There are important files that Microsoft projects should all have that are not present in this repository. A pull request has been opened to add the missing file(s). When the pr is merged this issue will be closed automatically.
Microsoft teams can learn more about this effort and share feedback within the open source guidance available internally.
In GeoManager.cs, the latitude and longitude strings are not correctly rendered if CurrentCulture is for example IT (Italian) such that the decimal separator is "," rather than ".".
One workaround is to set the separator to "." before calling GetBoundary(), and set it back after if necessary.
Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator = ".";
List<GeodataResult> results = await GeodataManager.GetBoundary(request, bingMapsKey);
When I tried to get the best view of polygons, I found that the source has a small bug when getting the best view box by parsing the EntityMetadata.BestMapViewBox. As the GeoDataApi Doc says, the BestMapViewBox is provided in the format of a MULTIPOINT ((WestLongitude SouthLatitude), (EastLongitude NorthLatitude)). But the when the code try to parse the string and get the north west coordinate and south east coordinate, it uses the wrong data with the index. Some fix should be like
Hi there,
I have been exploring this SDS API since it can list the x closest entities from a given geopoint. I'm particularly interested in looking for grocery store entities from the NAVTEQNA data source (https://msdn.microsoft.com/en-us/library/hh478192.aspx). However, it seems that some stores are not available in this database. For instance, in Canada there is a chain of stores called "Real Canadian Superstore". This is not found in the database when using the following query
http://spatial.virtualearth.net/REST/v1/data/f22876ec257b474b82fe2ffcb8393150/NavteqNA/NavteqPOIs?spatialFilter=nearby({my location})&$filter=EntityTypeID%20eq%20'5400'&$select=EntityID,DisplayName,Latitude,Longitude,__Distance,AddressLine,Locality,CountryRegion&$top=6&key={bingMapsKey}
How would one go about getting the NAVTEQNA data source updated with new entity data?
Cheers,
Daniel
My project requires strong named assemblies and this has not been signed.
When attempting to use BingMapsSDSToolkit.1.0.3 with Xamarin.iOS, I get this nuget error:
Could not install package 'Microsoft.Bcl.Build 1.0.14'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Steps to reproduce:
It does work with Xamarin.Mac Full profile but does not work with Modern for the same exact reason.
Hello guys,
I noticed that the link to class "GeocodeFeed" lead to 404.
The good link is : https://github.com/microsoft/BingMapsSDSToolkit/blob/master/Docs/ApiReference/GeocodeDataFlowApiReference.md#geocodefeed-class
Kr,
Ali
Repro steps:
<MainRoot>
<xs:schema id="shopsBingSDSDataSource_dev" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="shopsBingSDSDataSource_dev" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Shop">
<xs:complexType>
<xs:sequence>
<xs:element name="shopId" type="xs:string" />
<xs:element name="shopLocation" msdata:DataType="Microsoft.SqlServer.Types.SqlGeography, Microsoft.SqlServer.Types, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" type="xs:anyType" minOccurs="0" />
<xs:element name="__deleteEntity" type="xs:boolean" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//Shop" />
<xs:field xpath="shopId" />
</xs:unique>
</xs:element>
</xs:schema>
<Offering>
<shopId>8df24e6f-d877-45bd-9256-bc9933d1b154</shopId>
<shopLocation>POINT (0 0)</shopLocation>
<__deleteEntity>true</__deleteEntity>
</Offering>
</MainRoot>```
3. Use the below method from the toolkit to upload a job (Create a console application to test this. Take reference to the Bing SDS toolkit source code project)
`public async Task<DataflowJob> Upload(DataSource dataSource, LoadOperation loadOperation, bool setPublic, bool skipEmptyLocations)`
Expected: Job on Bing SDS should get created
Actual result: Exception thrown at Line 1440 in Datasource.cs
`var deleteInfo = (string)row[deleteIdx];`
Possible Solution: Use ToString() in above code as follows. This did not give me exception.
`var deleteInfo = row[deleteIdx].ToString();`
It would be great to have Netstandard2 support (See #2) instead of a a handful of supported platforms.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.