mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-20 14:35:07 +00:00
Add combined lat lng field to ev chargers response (#222)
This commit is contained in:
@@ -2,6 +2,7 @@ package handler
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strconv"
|
||||
@@ -211,6 +212,7 @@ func (e *Evchargers) Search(ctx context.Context, request *evchargers.SearchReque
|
||||
AccessComments: result.Address.AccessComments,
|
||||
Postcode: result.Address.Postcode,
|
||||
CountryId: strconv.Itoa(int(result.Address.CountryID)),
|
||||
LatLng: fmt.Sprintf("%v, %v", result.Address.Latitude, result.Address.Longitude),
|
||||
},
|
||||
Connections: marshalConnections(result.Connections),
|
||||
NumPoints: int64(result.NumberOfPoints),
|
||||
|
||||
Reference in New Issue
Block a user