Table of Contents

Class NominatimController

Namespace
GastroSky.Controllers.V1
Assembly
GastroSky.dll

Endpoint that calls on external Nominatim API and caches the results

[ApiController]
[AllowAnonymous]
[Route("api/v1/nominatim")]
[Produces("application/json", new string[] { })]
public class NominatimController : GastroSkyControllerBase
Inheritance
NominatimController
Inherited Members

Constructors

NominatimController(ILocationService)

Endpoint that calls on external Nominatim API and caches the results

public NominatimController(ILocationService locationService)

Parameters

locationService ILocationService

Methods

GetNominatim(string?, string?, string?, string?, string?)

[HttpGet]
[AllowAnonymous]
[Route("")]
[ProducesResponseType<EchoResponseDto>(200)]
public Task<IActionResult> GetNominatim(string? street, string? city, string? postalCode, string? state, string? country)

Parameters

street string
city string
postalCode string
state string
country string

Returns

Task<IActionResult>