ericnewton76 / gmaps-api-net

C# google maps api interface for interacting with the backend web services for Google Maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PlaceType enum not converted to snake case and missing "(cities)" and "(regions)" collection types

paviad opened this issue · comments

When creating a places API request, you can specify a types parameter which can be one of the supported place types (or a subset thereof for each particular API call).

In the code there is the PlaceType enum which represent these types parameter values, and when the request object is translated to a URI, the enum type is not converted properly from PascalCase to snake_case.

Also, some places APIs allow for special types parameter values which are collection types, such as (cities) or (regions) - these special parameter values have no representation in the PlaceType enum.