Bing Maps Spatial Data Services is now giving you even more options for managing and querying your data source entity data. Check out these new features.
- Stage your data source before you publish. Two new data source upload operations – CompleteStaging (for overwrites or new data sources) and IncrementalStaging (for updates) – offer you the opportunity to stage and verify your data source entity data before you publish it. To query a staged data source, include isStaging=1 in your query URL. When you are ready to publish the data source, use the $commit URL described in Publish a Staged Data Source. You can also delete a staged version. [Load Data Source Dataflow, Query API, Publish a Staged Data Source, Delete a Data Source]
- Rollback to previous data source versions. Spatial Data Services now keeps up to two previous versions of your data source with the option to rollback your data source to a previous version in a matter of minutes. You can also download previous versions. [Rollback a Data Source Dataflow, Download a Data Source Dataflow]
- Query near an address by specifying an address string. You can now query for entities near an address by specifying the address string and the address is geocoded to get the latitude and longitude for you. [Query by Area]
Example: This example shows how you can query around an address.
http://spatial.virtualearth.net/REST/v1/data/20181f26d9e94c81acdf9496133d4f23/FourthCoffeeSample/FourthCoffeeShops?spatialFilter=nearby(’1Microsoft Way, Redmond, WA 98052′,5)&$filter=IsWifiHotSpot%20eq%201&$select=*,__Distance&key=queryKey
Note that querying near an address with an address string will incur a geocoding usage transaction (RESTLocations) as well as a Query API transaction (RESTSpatialDataService:Query)