Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

This method is available to developers from the Locate.asmx Web Service and returns a list of nearest points for the Layer to the supplied co-ordinates. With this method you may override the default maximum number of results and the distance values.

Syntax
http://localhost/isharemaps_internal/locate.asmx/GetFindNearest_b?mapsource=Workshop/AllMaps&layerToSearch=Primary%20Schools&x=

Parameters

 

Name

Requirement

Description

mapsource

mandatory

A list can be obtained from the GetMapSources method

layerToSearch

mandatory

A list can be obtained from the GetFindNearestSources method

x

mandatory

Easting in British National Grid coordinates for the search to take place from.

y

mandatory

Northing in British National Grid coordinates for the search to take place from.

includeMap

mandatory

Either true or false whether a map image byte stream is returned

maxResults

mandatory

Must be an integer (0 if null).  If null then default used

maxDistance

mandatory

Must be an integer (0 if null).  Specified in metres.  If null then default used

width

mandatory

Width in pixels for the map image

height

mandatory

Height in pixels for the map image

Returns

An array of Base Layer Definitions.  Can be zero in length.

Errors

Raises error – Invalid Map Source

Raises error – Invalid Find Nearest Source

  • No labels