blob: 442e3bbc71fc558c5da69af7c54baa4388cc9746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
using System.Text.Json.Serialization;
namespace Enmarcha.Backend.Types.Nominatim;
public class NominatimSearchResult
{
[JsonPropertyName("place_id")]
public long PlaceId { get; set; }
[JsonPropertyName("licence")]
public string? Licence { get; set; }
[JsonPropertyName("osm_type")]
public string? OsmType { get; set; }
[JsonPropertyName("osm_id")]
public long OsmId { get; set; }
[JsonPropertyName("lat")]
public string? Lat { get; set; }
[JsonPropertyName("lon")]
public string? Lon { get; set; }
[JsonPropertyName("display_name")]
public string? DisplayName { get; set; }
[JsonPropertyName("address")]
public NominatimAddress? Address { get; set; }
[JsonPropertyName("extratags")]
public Dictionary<string, string>? ExtraTags { get; set; }
[JsonPropertyName("category")]
public string? Category { get; set; }
[JsonPropertyName("type")]
public string? Type { get; set; }
[JsonPropertyName("importance")]
public double Importance { get; set; }
}
public class NominatimAddress
{
[JsonPropertyName("house_number")]
public string? HouseNumber { get; set; }
[JsonPropertyName("road")]
public string? Road { get; set; }
[JsonPropertyName("suburb")]
public string? Suburb { get; set; }
[JsonPropertyName("city")]
public string? City { get; set; }
[JsonPropertyName("municipality")]
public string? Municipality { get; set; }
[JsonPropertyName("county")]
public string? County { get; set; }
[JsonPropertyName("state")]
public string? State { get; set; }
[JsonPropertyName("postcode")]
public string? Postcode { get; set; }
[JsonPropertyName("country")]
public string? Country { get; set; }
[JsonPropertyName("country_code")]
public string? CountryCode { get; set; }
}
|