none
How can we find if any point on map is a junction ? RRS feed

  • Question

  • HI,

    I am using bing maps api, i have 2 questions:

    1. I need to know if we have any way to find if a point is in junction/crossway. 

        I am getting the address using REST service but i need Junction entitytype suggesed at:

        I have used the option Junction in my req url:
        'http://dev.virtualearth.net/REST/v1/Locations/' + location.latitude + ',' + location.longitude + '?includeEntityTypes=Address,Junction,River&key=[KEY]&jsonp=?'

        http://msdn.microsoft.com/en-us/library/ff728811.aspx

    2. Is there any way we can find point by distance for e.g. geocode of a point 100 feet from current point.

    Please help ASAP

    -Thanks,

    ANSH


    • Edited by ANSH.KHANNA Friday, November 29, 2013 7:58 PM
    Friday, November 29, 2013 7:40 PM

Answers

  • There is no method for doing this that will work on a regular basis.

    http://rbrundritt.wordpress.com

    Friday, November 29, 2013 10:20 PM
  • This would require a lot of custom code to do. However it could be done. You could geocode the intersections (i.e. "Jane st & Finch ave, Torontopoint route that goes from point A to B to a to c and so on will allow you to do a single request that returns you the a cross type line. From here you can either go through and do a bung of calculations to buffer the road or you can make use of the spatial library available in SQL Server 200, or 2012 and use the buffer method in there to then buffer the line into the polygon you are looking to create. Note you don't need to have SQL server installed to use the spatial library, it can be used in .NET applications.

    As for the Bing Maps API needing to grow more, I've never had anyone request this functionality. And any requests that were somewhat similar where all solved using the SQL spatial library.


    http://rbrundritt.wordpress.com

    Friday, December 13, 2013 11:37 AM

All replies

  • There is no method for doing this that will work on a regular basis.

    http://rbrundritt.wordpress.com

    Friday, November 29, 2013 10:20 PM
  • Hi Ricky,

    Thanks for the reply. It seems the bing api still has got some work to do... :)

    Can u suggest me any work around I am trying to create a junction on map like below image:

    I need to draw 100 ft top and bottom and 30 ft left and right of the point i click.

    How can i estimate distance (as this is not given by the api)

    Thanks Again,

    Ansh

    Saturday, November 30, 2013 6:06 AM
  • This would require a lot of custom code to do. However it could be done. You could geocode the intersections (i.e. "Jane st & Finch ave, Torontopoint route that goes from point A to B to a to c and so on will allow you to do a single request that returns you the a cross type line. From here you can either go through and do a bung of calculations to buffer the road or you can make use of the spatial library available in SQL Server 200, or 2012 and use the buffer method in there to then buffer the line into the polygon you are looking to create. Note you don't need to have SQL server installed to use the spatial library, it can be used in .NET applications.

    As for the Bing Maps API needing to grow more, I've never had anyone request this functionality. And any requests that were somewhat similar where all solved using the SQL spatial library.


    http://rbrundritt.wordpress.com

    Friday, December 13, 2013 11:37 AM