@@ -238,7 +238,7 @@ public async Task<Relation[]> GetRelationHistory(long id)
238238 /// <see href="https://wiki.openstreetmap.org/wiki/API_v0.6#Version:_GET_.2Fapi.2F0.6.2F.5Bnode.7Cway.7Crelation.5D.2F.23id.2F.23version">
239239 /// GET /api/0.6/node/#id/#version</see>.
240240 /// </summary>
241- public async Task < Node > GetNodeVersion ( long id , int version )
241+ public async Task < Node > GetNodeVersion ( long id , long version )
242242 {
243243 return await GetElementVersion < Node > ( id , version ) ;
244244 }
@@ -248,7 +248,7 @@ public async Task<Node> GetNodeVersion(long id, int version)
248248 /// <see href="https://wiki.openstreetmap.org/wiki/API_v0.6#Version:_GET_.2Fapi.2F0.6.2F.5Bnode.7Cway.7Crelation.5D.2F.23id.2F.23version">
249249 /// GET /api/0.6/way/#id/#version</see>.
250250 /// </summary>
251- public async Task < Way > GetWayVersion ( long id , int version )
251+ public async Task < Way > GetWayVersion ( long id , long version )
252252 {
253253 return await GetElementVersion < Way > ( id , version ) ;
254254 }
@@ -258,7 +258,7 @@ public async Task<Way> GetWayVersion(long id, int version)
258258 /// <see href="https://wiki.openstreetmap.org/wiki/API_v0.6#Version:_GET_.2Fapi.2F0.6.2F.5Bnode.7Cway.7Crelation.5D.2F.23id.2F.23version">
259259 /// GET /api/0.6/relation/#id/#version</see>.
260260 /// </summary>
261- public async Task < Relation > GetRelationVersion ( long id , int version )
261+ public async Task < Relation > GetRelationVersion ( long id , long version )
262262 {
263263 return await GetElementVersion < Relation > ( id , version ) ;
264264 }
@@ -268,7 +268,7 @@ public async Task<Relation> GetRelationVersion(long id, int version)
268268 /// <see href="https://wiki.openstreetmap.org/wiki/API_v0.6#Version:_GET_.2Fapi.2F0.6.2F.5Bnode.7Cway.7Crelation.5D.2F.23id.2F.23version">
269269 /// GET /api/0.6/[node|way|relation]/#id/#version</see>.
270270 /// </summary>
271- private async Task < TOsmGeo > GetElementVersion < TOsmGeo > ( long id , int version ) where TOsmGeo : OsmGeo , new ( )
271+ private async Task < TOsmGeo > GetElementVersion < TOsmGeo > ( long id , long version ) where TOsmGeo : OsmGeo , new ( )
272272 {
273273 var type = new TOsmGeo ( ) . Type . ToString ( ) . ToLower ( ) ;
274274 var address = BaseAddress + $ "0.6/{ type } /{ id } /{ version } ";
@@ -308,7 +308,7 @@ public async Task<Relation[]> GetRelations(params long[] ids)
308308
309309 private async Task < TOsmGeo [ ] > GetElements < TOsmGeo > ( params long [ ] ids ) where TOsmGeo : OsmGeo , new ( )
310310 {
311- var idVersions = ids . Select ( id => new KeyValuePair < long , int ? > ( id , null ) ) ;
311+ var idVersions = ids . Select ( id => new KeyValuePair < long , long ? > ( id , null ) ) ;
312312 return await GetElements < TOsmGeo > ( idVersions ) ;
313313 }
314314
@@ -317,7 +317,7 @@ public async Task<Relation[]> GetRelations(params long[] ids)
317317 /// <see href="https://wiki.openstreetmap.org/wiki/API_v0.6#Multi_fetch:_GET_.2Fapi.2F0.6.2F.5Bnodes.7Cways.7Crelations.5D.3F.23parameters">
318318 /// GET /api/0.6/nodes?#parameters</see>.
319319 /// </summary>
320- public async Task < Node [ ] > GetNodes ( IEnumerable < KeyValuePair < long , int ? > > idVersions )
320+ public async Task < Node [ ] > GetNodes ( IEnumerable < KeyValuePair < long , long ? > > idVersions )
321321 {
322322 return await GetElements < Node > ( idVersions ) ;
323323 }
@@ -327,7 +327,7 @@ public async Task<Node[]> GetNodes(IEnumerable<KeyValuePair<long, int?>> idVersi
327327 /// <see href="https://wiki.openstreetmap.org/wiki/API_v0.6#Multi_fetch:_GET_.2Fapi.2F0.6.2F.5Bnodes.7Cways.7Crelations.5D.3F.23parameters">
328328 /// GET /api/0.6/ways?#parameters</see>.
329329 /// </summary>
330- public async Task < Way [ ] > GetWays ( IEnumerable < KeyValuePair < long , int ? > > idVersions )
330+ public async Task < Way [ ] > GetWays ( IEnumerable < KeyValuePair < long , long ? > > idVersions )
331331 {
332332 return await GetElements < Way > ( idVersions ) ;
333333 }
@@ -337,7 +337,7 @@ public async Task<Way[]> GetWays(IEnumerable<KeyValuePair<long, int?>> idVersion
337337 /// <see href="https://wiki.openstreetmap.org/wiki/API_v0.6#Multi_fetch:_GET_.2Fapi.2F0.6.2F.5Bnodes.7Cways.7Crelations.5D.3F.23parameters">
338338 /// GET /api/0.6/relations?#parameters</see>.
339339 /// </summary>
340- public async Task < Relation [ ] > GetRelations ( IEnumerable < KeyValuePair < long , int ? > > idVersions )
340+ public async Task < Relation [ ] > GetRelations ( IEnumerable < KeyValuePair < long , long ? > > idVersions )
341341 {
342342 return await GetElements < Relation > ( idVersions ) ;
343343 }
@@ -347,7 +347,7 @@ public async Task<Relation[]> GetRelations(IEnumerable<KeyValuePair<long, int?>>
347347 /// <see href="https://wiki.openstreetmap.org/wiki/API_v0.6#Multi_fetch:_GET_.2Fapi.2F0.6.2F.5Bnodes.7Cways.7Crelations.5D.3F.23parameters">
348348 /// GET /api/0.6/[nodes|ways|relations]?#parameters</see>.
349349 /// </summary>
350- private async Task < TOsmGeo [ ] > GetElements < TOsmGeo > ( IEnumerable < KeyValuePair < long , int ? > > idVersions ) where TOsmGeo : OsmGeo , new ( )
350+ private async Task < TOsmGeo [ ] > GetElements < TOsmGeo > ( IEnumerable < KeyValuePair < long , long ? > > idVersions ) where TOsmGeo : OsmGeo , new ( )
351351 {
352352 var type = new TOsmGeo ( ) . Type . ToString ( ) . ToLower ( ) ;
353353 // For exmple: "12,13,14v1,15v1"
@@ -494,7 +494,7 @@ public virtual async Task<Stream> GetTrackPoints(Bounds bounds, int pageNumber =
494494 /// <see href="https://wiki.openstreetmap.org/wiki/API_v0.6#Download_Metadata:_GET_.2Fapi.2F0.6.2Fgpx.2F.23id.2Fdetails">
495495 /// GET /api/0.6/gpx/#id/details</see>.
496496 /// </summary>
497- public async Task < GpxFile > GetTraceDetails ( int id )
497+ public async Task < GpxFile > GetTraceDetails ( long id )
498498 {
499499 var address = BaseAddress + $ "0.6/gpx/{ id } /details";
500500 var osm = await Get < Osm > ( address , c => AddAuthentication ( c , address ) ) ;
@@ -508,7 +508,7 @@ public async Task<GpxFile> GetTraceDetails(int id)
508508 /// This will return exactly what was uploaded, which might not be a gpx file (it could be a zip etc.)
509509 /// </summary>
510510 /// <returns>A stream of a GPX (version 1.0) file.</returns>
511- public async Task < TypedStream > GetTraceData ( int id )
511+ public async Task < TypedStream > GetTraceData ( long id )
512512 {
513513 var address = BaseAddress + $ "0.6/gpx/{ id } /data";
514514 var content = await Get ( address , c => AddAuthentication ( c , address ) ) ;
0 commit comments